VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
utilityBar.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <widgets/dllExport.h>
13 #include <QtGui/QDockWidget>
14 #include <QtGui/QWidget>
15 #include <QtCore/QHash>
16 
17 class QTabWidget;
18 class QScrollArea;
19 class QMainWindow;
20 
21 namespace MAKVrExchange
22 {
23 
25  { Q_OBJECT;
26  public:
27 
29  DtUtilityBar( QWidget* parent, bool scroll = false );
30  ~DtUtilityBar();
31 
34  virtual QWidget* addTab( const QString& key, const QString& caption );
35 
39  virtual QDockWidget* addDockWindow( const QString& tabKey, const QString& caption );
40 
42  QTabWidget* tabWidget() const;
43 
44  signals:
45 
46  void ticked();
47 
49  void tabAdded( const QString& );
50 
53  void dockWindowAdded( const QString&, int, const QString& );
54 
55  protected:
56 
57  virtual void init();
58 
59  protected:
60 
61  int myNumTabs;
62  QScrollArea* myScrollArea;
63  QTabWidget* myTabWidget;
64 
67 
68  QHash<QString, QMainWindow*> myTabIndex;
69  QHash<QString, QDockWidget*> myDockAreas;
70 
71  };
72 
73 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)