GNU Octave
4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Menu.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2011-2018 Michael Goffioul
4
5
This file is part of Octave.
6
7
Octave is free software: you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
11
12
Octave is distributed in the hope that it will be useful, but
13
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 Octave; see the file COPYING. If not, see
19
<https://www.gnu.org/licenses/>.
20
21
*/
22
23
#if ! defined (octave_Menu_h)
24
#define octave_Menu_h 1
25
26
#include "
MenuContainer.h
"
27
#include "
Object.h
"
28
29
class
QAction;
30
class
QMenu
;
31
class
QWidget
;
32
33
namespace
QtHandles
34
{
35
36
class
Menu
:
public
Object
,
public
MenuContainer
37
{
38
Q_OBJECT
39
40
public
:
41
Menu
(
const
graphics_object
& go, QAction *action,
Object
*parent);
42
~Menu
(
void
);
43
44
static
Menu
*
create
(
const
graphics_object
& go);
45
46
Container
*
innerContainer
(
void
) {
return
nullptr
; }
47
48
QWidget
*
menu
(
void
);
49
50
protected
:
51
void
update
(
int
pId);
52
53
private
slots:
54
void
actionTriggered
(
void
);
55
void
actionHovered
(
void
);
56
57
private
:
58
void
updateSiblingPositions
(
void
);
59
60
private
:
61
QWidget
*
m_parent
;
62
QAction *
m_separator
;
63
};
64
65
}
66
67
#endif
QtHandles::Object
Definition:
Object.h:40
QWidget
QtHandles::Menu::~Menu
~Menu(void)
Definition:
Menu.cc:158
QtHandles::Menu::innerContainer
Container * innerContainer(void)
Definition:
Menu.h:46
QtHandles::Menu::actionHovered
void actionHovered(void)
Definition:
Menu.cc:293
QtHandles::Menu::m_separator
QAction * m_separator
Definition:
Menu.h:62
QtHandles::Menu::update
void update(int pId)
Definition:
Menu.cc:162
MenuContainer.h
QtHandles::Menu::m_parent
QWidget * m_parent
Definition:
Menu.h:61
QtHandles::Menu::create
static Menu * create(const graphics_object &go)
Definition:
Menu.cc:61
QtHandles
Definition:
__init_qt__.cc:44
QtHandles::Menu
Definition:
Menu.h:36
QtHandles::Menu::menu
QWidget * menu(void)
Definition:
Menu.cc:265
QtHandles::Menu::Menu
Menu(const graphics_object &go, QAction *action, Object *parent)
Definition:
Menu.cc:76
QtHandles::Container
Definition:
Container.h:39
QtHandles::Menu::updateSiblingPositions
void updateSiblingPositions(void)
Definition:
Menu.cc:299
QMenu
QtHandles::MenuContainer
Definition:
MenuContainer.h:31
Object.h
QtHandles::Menu::actionTriggered
void actionTriggered(void)
Definition:
Menu.cc:283
graphics_object
Definition:
graphics.in.h:2660
libgui
graphics
Menu.h
Generated on Sat Sep 1 2018 14:01:37 for GNU Octave by
1.8.14