GOFIGURE2
0.9.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Code
GUI
lib
QGoToolBarStatus.h
Go to the documentation of this file.
1
/*=========================================================================
2
Authors: The GoFigure Dev. Team.
3
at Megason Lab, Systems biology, Harvard Medical school, 2009-11
4
5
Copyright (c) 2009-11, President and Fellows of Harvard College.
6
All rights reserved.
7
8
Redistribution and use in source and binary forms, with or without
9
modification, are permitted provided that the following conditions are met:
10
11
Redistributions of source code must retain the above copyright notice,
12
this list of conditions and the following disclaimer.
13
Redistributions in binary form must reproduce the above copyright notice,
14
this list of conditions and the following disclaimer in the documentation
15
and/or other materials provided with the distribution.
16
Neither the name of the President and Fellows of Harvard College
17
nor the names of its contributors may be used to endorse or promote
18
products derived from this software without specific prior written
19
permission.
20
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33
=========================================================================*/
34
35
#ifndef __QGoToolBarStatus_h
36
#define __QGoToolBarStatus_h
37
38
#include <Qt>
39
#include <QObject>
40
#include <QAction>
41
#include <QToolBar>
42
#include <QMenu>
43
44
#include "QGoGUILibConfigure.h"
45
46
class
QGOGUILIB_EXPORT
QGoToolBarStatus
:
public
QObject
47
{
48
Q_OBJECT
49
public
:
50
explicit
QGoToolBarStatus
(
QWidget
* iParent = 0);
51
52
explicit
QGoToolBarStatus
(
const
QGoToolBarStatus
& iS);
53
54
explicit
QGoToolBarStatus
( Qt::ToolBarArea iArea,
55
const
bool
& iVisibility,
56
const
bool
& iAttached,
57
QWidget
* iParent = 0);
58
59
explicit
QGoToolBarStatus
(
QToolBar
* iToolBar,
QMenu
* iMenu,
60
Qt::ToolBarArea iArea,
61
const
bool
& iVisibility,
62
const
bool
& iAttached,
63
QWidget
* iParent = 0,
64
QWidget
* iWidget = 0);
65
66
virtual
~
QGoToolBarStatus
();
67
68
void
InitializeToolBarAndMenu(
QToolBar
* iToolBar,
QMenu
* iMenu);
69
72
void
ClearToolBar();
73
76
void
SetUpToolBar();
77
78
/*\\todo Nicolas why public??
79
*/
80
// variables - why public....?
81
QToolBar
*
m_ToolBar
;
82
QMenu
*
m_Menu
;
84
Qt::ToolBarArea
m_Area
;
85
Qt::ToolBarArea
m_DefaultArea
;
87
bool
m_Visibility
;
89
bool
m_Attached
;
90
91
std::vector< QAction* >
m_VectorAction
;
92
93
public
slots:
95
void
SetArea(Qt::ToolBarArea iArea);
96
98
void
SetVisibility(
bool
iVisibility);
99
101
void
SetAttached(
bool
iAttached);
102
103
protected
:
104
QWidget
*
m_Widget
;
107
//void Connect();
109
//void Disconnect();
110
};
111
#endif
QWidget
QGoToolBarStatus::m_Widget
QWidget * m_Widget
Definition:
QGoToolBarStatus.h:104
QGoToolBarStatus
Definition:
QGoToolBarStatus.h:46
QGoToolBarStatus::m_VectorAction
std::vector< QAction * > m_VectorAction
Definition:
QGoToolBarStatus.h:91
QObject
QGoToolBarStatus::m_Area
Qt::ToolBarArea m_Area
Position.
Definition:
QGoToolBarStatus.h:84
QGoToolBarStatus::m_Visibility
bool m_Visibility
is Visible
Definition:
QGoToolBarStatus.h:87
QMenu
QGoToolBarStatus::m_ToolBar
QToolBar * m_ToolBar
Definition:
QGoToolBarStatus.h:81
QGoToolBarStatus::m_Attached
bool m_Attached
Attached to QGoMainWindow.
Definition:
QGoToolBarStatus.h:89
QToolBar
QGoToolBarStatus::m_Menu
QMenu * m_Menu
Definition:
QGoToolBarStatus.h:82
QGoToolBarStatus::m_DefaultArea
Qt::ToolBarArea m_DefaultArea
Definition:
QGoToolBarStatus.h:85
Generated on Sat Apr 26 2014 11:38:13 for GOFIGURE2 by
1.8.6