mkRPG
src/editor/GUI/tabbar.h
Go to the documentation of this file.
00001 #ifndef TABBAR_H
00002 #define TABBAR_H
00003 
00004 #include "tabacces.h"
00005 #include "Tabs/tabwidget.h"
00006 #include <QPixmap>
00007 
00019 class TabBar : public QWidget
00020 {
00021     Q_OBJECT
00022 public:
00023     explicit TabBar(QWidget *parent = 0);
00024     void addTabAcces(const QString &n, const QPixmap &p, TabWidget *w);
00025     inline int currentTab() const{return tab;}
00026     void setTabsEnabled(bool e);
00027 
00028 signals:
00029     void currentTabChanged(int);
00030 
00031 public slots:
00032     void setCurrentTab(int t);
00033 
00034 private slots:
00035     void tabAccesActivated(int t);
00036 
00037 private:
00038 
00039     int tab;
00040     int nbTab;
00041     QList<TabAcces*> tabs;
00042     QVBoxLayout* lay;
00043 };
00044 
00045 #endif // TABBAR_H
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines