GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
QGoNavigationDockWidget.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 __QGoNavigationDockWidget_h
36 #define __QGoNavigationDockWidget_h
37 
38 #include <QComboBox>
39 #include "ui_NavigationDockWidget.h"
41 #include "QGoDockWidget.h"
42 
43 #include "QGoGUILibConfigure.h"
44 
45 class QHBoxLayout;
46 class QVBoxLayout;
47 
48 class QPushButton;
49 class QCheckBox;
50 
55 class QGOGUILIB_EXPORT QGoNavigationDockWidget:
56  public QGoDockWidget,
57  private Ui::NavigationDockWidget
58 {
59  Q_OBJECT
60 public:
62  explicit QGoNavigationDockWidget(
63  QWidget *parent = 0,
65 
68 
73  void SetXMinimumAndMaximum(const int & iMin, const int & iMax);
74 
79  void SetYMinimumAndMaximum(const int & iMin, const int & iMax);
80 
85  void SetZMinimumAndMaximum(const int & iMin, const int & iMax);
86 
91  void SetTMinimumAndMaximum(const int & iMin, const int & iMax);
92 
93  // new channels representation
94  void AddChannel(const QString& iName, const QColor& iColor,const unsigned int& iNumber,
95  const bool& iChecked);
96 
97  void ModifyChannel(QString iName, QColor iColor);
98 
99  void VisibilityListChannels(const bool& iVisibility);
100 
101  void AddDoppler(const QString& iName, const QColor& iColor,const unsigned int& iNumber,
102  const bool& iChecked);
103 
104  void VisibilityListDoppler(const bool& iVisibility);
105 
106  void setChannelName(QString iChannelName);
107 
108  void DeleteDopplerWidgets();
109 
110 public slots:
112  void SetXSlice(int iSlice);
113 
115  void SetYSlice(int iSlice);
116 
118  void SetZSlice(int iSlice);
119 
121  void SetTSlice(int iSlice);
122 
124  void MoveToPreviousTimePoint();
125 
127  void MoveToNextTimePoint();
128 
129  void UpdateWidget(int);
130 
131  void visibilityChanged(bool);
132 
133  int GetFirstVisibleChannel();
134 
135 signals:
136  void XSliceChanged(int Slice);
137 
138  void YSliceChanged(int Slice);
139 
140  void ZSliceChanged(int Slice);
141 
142  void TSliceChanged(int Slice);
143 
144  void ModeChanged(int Mode);
145 
146  void StepChanged(int Step);
147 
148  void visibilityChanged(QString, bool);
149 
150  void openTransferFunctionEditor(QString);
151 
152  void DopplerSizeChanged(int iSize);
153 
154 protected:
156 
157 private:
161 
162  bool m_Classic;
163 };
164 #endif
void visibilityChanged(bool visible)
QList< QCheckBox * > m_ListCheckBoxes
QList< QPushButton * > m_ListPushButtons
Dock Widget for browsing images (changing slice, time point...)
QList< QCheckBox * > m_ListDoppler
GoFigure::TabDimensionType m_Dimension
inherits from Qt QDockWidget.toggle action reimplemented in order the state is saved when changing ta...
Definition: QGoDockWidget.h:47