GNU Octave
6.2.0
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-2021 The Octave Project Developers
4
//
5
// See the file COPYRIGHT.md in the top-level directory of this
6
// distribution or <https://octave.org/copyright/>.
7
//
8
// This file is part of Octave.
9
//
10
// Octave is free software: you can redistribute it and/or modify it
11
// under the terms of the GNU General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
14
//
15
// Octave is distributed in the hope that it will be useful, but
16
// WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
// GNU General Public License for more details.
19
//
20
// You should have received a copy of the GNU General Public License
21
// along with Octave; see the file COPYING. If not, see
22
// <https://www.gnu.org/licenses/>.
23
//
24
////////////////////////////////////////////////////////////////////////
25
26
#if ! defined (octave_Menu_h)
27
#define octave_Menu_h 1
28
29
#include "
MenuContainer.h
"
30
#include "
Object.h
"
31
32
class
QAction;
33
class
QMenu
;
34
class
QWidget
;
35
36
namespace
octave
37
{
38
class
base_qobject;
39
class
interpreter;
40
}
41
42
namespace
QtHandles
43
{
44
45
class
Menu
:
public
Object
,
public
MenuContainer
46
{
47
Q_OBJECT
48
49
public
:
50
Menu
(
octave::base_qobject
& oct_qobj,
octave::interpreter
& interp,
51
const
graphics_object
& go, QAction *action,
Object
*parent);
52
~Menu
(
void
);
53
54
static
Menu
*
55
create
(
octave::base_qobject
& oct_qobj,
octave::interpreter
& interp,
56
const
graphics_object
& go);
57
58
Container
*
innerContainer
(
void
) {
return
nullptr
; }
59
60
QWidget
*
menu
(
void
);
61
62
protected
:
63
void
update
(
int
pId);
64
65
private
slots:
66
void
actionTriggered
(
void
);
67
void
actionHovered
(
void
);
68
69
private
:
70
void
updateSiblingPositions
(
void
);
71
72
private
:
73
QWidget
*
m_parent
;
74
QAction *
m_separator
;
75
};
76
77
}
78
79
#endif
MenuContainer.h
Object.h
QMenu
QWidget
QtHandles::Container
Definition:
Container.h:49
QtHandles::MenuContainer
Definition:
MenuContainer.h:35
QtHandles::Menu
Definition:
Menu.h:46
QtHandles::Menu::updateSiblingPositions
void updateSiblingPositions(void)
Definition:
Menu.cc:308
QtHandles::Menu::~Menu
~Menu(void)
Definition:
Menu.cc:167
QtHandles::Menu::actionHovered
void actionHovered(void)
Definition:
Menu.cc:302
QtHandles::Menu::Menu
Menu(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QAction *action, Object *parent)
Definition:
Menu.cc:83
QtHandles::Menu::innerContainer
Container * innerContainer(void)
Definition:
Menu.h:58
QtHandles::Menu::create
static Menu * create(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go)
Definition:
Menu.cc:66
QtHandles::Menu::menu
QWidget * menu(void)
Definition:
Menu.cc:274
QtHandles::Menu::m_parent
QWidget * m_parent
Definition:
Menu.h:73
QtHandles::Menu::update
void update(int pId)
Definition:
Menu.cc:171
QtHandles::Menu::actionTriggered
void actionTriggered(void)
Definition:
Menu.cc:292
QtHandles::Menu::m_separator
QAction * m_separator
Definition:
Menu.h:74
QtHandles::Object
Definition:
Object.h:51
graphics_object
Definition:
graphics.in.h:2696
octave::base_qobject
Base class for Octave interfaces that use Qt.
Definition:
octave-qobject.h:80
octave::interpreter
Definition:
interpreter.h:113
QtHandles
Definition:
BaseControl.cc:43
octave
Definition:
aepbalance.cc:41
libgui
graphics
Menu.h
Generated on Tue Apr 13 2021 15:27:43 for GNU Octave by
1.9.1