hydrogen
1.2.6
WidgetWithHighlightedList.h
Go to the documentation of this file.
1
/*
2
* Hydrogen
3
* Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
4
*
5
* http://www.hydrogen-music.org
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY, without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
*
21
*/
22
23
#ifndef WIDGET_WITH_HIGHLIGHTED_LIST_H
24
#define WIDGET_WITH_HIGHLIGHTED_LIST_H
25
30
class
WidgetWithHighlightedList
{
31
public
:
52
enum class
RowSelection
{
56
None
,
61
Popup
,
66
Dialog
67
};
68
69
protected
:
70
WidgetWithHighlightedList
() :
m_nRowClicked
( 0 )
71
,
m_rowSelection
(
RowSelection
::
None
) {};
72
76
int
m_nRowClicked
;
80
RowSelection
m_rowSelection
;
81
82
};
83
84
#endif
WidgetWithHighlightedList::m_nRowClicked
int m_nRowClicked
Helper variable remembering for row was clicked last.
Definition
WidgetWithHighlightedList.h:76
WidgetWithHighlightedList::m_rowSelection
RowSelection m_rowSelection
Determines the highlighting of the row associated with m_nRowClicked.
Definition
WidgetWithHighlightedList.h:80
WidgetWithHighlightedList::WidgetWithHighlightedList
WidgetWithHighlightedList()
Definition
WidgetWithHighlightedList.h:70
WidgetWithHighlightedList::RowSelection
RowSelection
Specifies whether the row corresponding to m_nRowClicked should be highlighted and determines the lif...
Definition
WidgetWithHighlightedList.h:52
WidgetWithHighlightedList::RowSelection::Popup
@ Popup
The m_nRowClicked row was right-clicked and a popup dialog did open and is still shown.
Definition
WidgetWithHighlightedList.h:61
WidgetWithHighlightedList::RowSelection::None
@ None
No highlighting will be drawn for the row last clicked.
Definition
WidgetWithHighlightedList.h:56
WidgetWithHighlightedList::RowSelection::Dialog
@ Dialog
The popup dialog is already closed but the user clicked an associated action and its dialog is still ...
Definition
WidgetWithHighlightedList.h:66
src
gui
src
Widgets
WidgetWithHighlightedList.h
Generated by
1.13.2