MagicSmoke  $VERSION$
tabwin.h
Go to the documentation of this file.
1 //
2 // C++ Interface: overview
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2007-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_TABWIN_H
14 #define MAGICSMOKE_TABWIN_H
15 
16 #include <QMainWindow>
17 #include <QMap>
18 #include <QPointer>
19 #include <QTimer>
20 
21 #include "smokeexport.h"
22 
23 class QTabWidget;
24 class QStackedWidget;
25 
26 class MSInterface;
27 
29 class MAGICSMOKE_EXPORT MTabWin:public QMainWindow
30 {
31  Q_OBJECT
32  public:
34  MTabWin(QString,QWidget*parent=0);
35  ~MTabWin();
36  protected slots:
38  virtual void tabChanged(int tabid=-1);
39 
40  public slots:
42  virtual void addTab(QWidget*tab,QString title,QList<QMenu*>menu=QList<QMenu*>());
43 
45  virtual QMenu* addMenu(QString);
46 
48  QMenu*helpMenu()const;
49 
51  void setTabEnabled(QWidget*,bool);
52 
54  QWidget* currentTab()const;
55 
57  void setCurrentTab(QWidget*);
58 
60  void setWindowTitle(const QString&);
61 
62  protected:
63  //the profile associated with this session
64  QString profilekey;
65  private:
66  //widgets
67  QTabWidget*tabw;
68  QMap<int,QList<QMenu*> >tabmenu;
69  QPointer<QAction>helpseparator,leftseparator;
70  QPointer<QMenu>helpmenu;
71 };
72 
73 #endif
#define MAGICSMOKE_EXPORT
Definition: smokeexport.h:7
QString profilekey
Definition: tabwin.h:64
Main Overview Window.
Definition: tabwin.h:29
the MagicSmoke specific interface class - enhances the basic interface by some functionality needed i...
Definition: msinterface.h:29