SMILX  1.01
milxQtManager.h
1 /*=========================================================================
2  The Software is copyright (c) Commonwealth Scientific and Industrial Research Organisation (CSIRO)
3  ABN 41 687 119 230.
4  All rights reserved.
5 
6  Licensed under the CSIRO BSD 3-Clause License
7  You may not use this file except in compliance with the License.
8  You may obtain a copy of the License in the file LICENSE.md or at
9 
10  https://stash.csiro.au/projects/SMILI/repos/smili/browse/license.txt
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 =========================================================================*/
18 #ifndef MILXQTMANAGER_H
19 #define MILXQTMANAGER_H
20 
21 #include <QtGui/QtGui>
22 //milxQt Specific
23 #include "milxQtAliases.h"
24 
31 class MILXQT_EXPORT milxQtManager : public QTabWidget
32 {
33  Q_OBJECT
34 
35 public:
40  milxQtManager(QWidget *theParent = 0);
41  virtual ~milxQtManager();
42 
43 public slots:
50  int newTab(QString tabTitle, QStringList headings);
53  void closeTab(int index);
56  void clearTab();
61  void clearTab(int tabIndex);
66  void exportTab(QString filename = "");
72  void addItem(QStringList entries, Qt::ItemFlags flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable);
79  void addItem(int tabIndex, QStringList entries, Qt::ItemFlags flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable);
87  void addItem(int tabIndex, QStringList entries, QWidget *itemWidgetToAdd, int widgetColumn);
94  void addTreeItem(int tabIndex, QStringList topLevelName, QList<QStringList> entryList, Qt::ItemFlags flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable);
95 
96 protected:
97  QAction* actionExportTab;
98  QAction* actionClearTab;
99  QAction* actionClear;
100 
105  void createActions();
110  void createConnections();
115  void contextMenuEvent(QContextMenuEvent *event);
116 
117 private:
118 
119 };
120 
121 #endif // MILXQTMANAGER_H
QAction * actionClearTab
clear tab action
Definition: milxQtManager.h:98
QAction * actionExportTab
export tab action
Definition: milxQtManager.h:97
This file defines all the defines, aliases and frequently used functions and variables.
A manager (tabbed) widget class for displaying information about data such as case ID etc...
Definition: milxQtManager.h:31
QAction * actionClear
clear manager action
Definition: milxQtManager.h:99
#define MILXQT_EXPORT
Define Windows DLL importing.
Definition: milxQtAliases.h:80