ba19f3c1dd
git-svn-id: svn://localhost/gambas/trunk@893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
#ifndef __GTABSTRIP_H
|
|
#define __GTABSTRIP_H
|
|
|
|
class gTabStripPage;
|
|
|
|
class gTabStrip : public gContainer
|
|
{
|
|
friend class gTabStripPage;
|
|
|
|
public:
|
|
gTabStrip(gContainer *parent);
|
|
~gTabStrip();
|
|
|
|
//"Properties"
|
|
int count() { return _pages->len; }
|
|
int index();
|
|
int orientation();
|
|
void setOrientation(int vl);
|
|
bool tabEnabled(int ind);
|
|
gPicture* tabPicture(int ind);
|
|
bool tabVisible(int ind);
|
|
char *tabText(int ind);
|
|
int tabCount(int ind);
|
|
gControl *tabChild(int ind, int n);
|
|
|
|
bool setCount(int vl);
|
|
void setIndex(int vl);
|
|
void setTabPicture(int ind, gPicture *pic);
|
|
void setTabEnabled(int ind, bool vl);
|
|
void setTabText(int ind, char *txt);
|
|
void setTabVisible(int ind, bool vl);
|
|
bool removeTab(int ind);
|
|
|
|
virtual int childCount();
|
|
virtual gControl *child(int index);
|
|
|
|
virtual void setRealBackground(gColor color);
|
|
virtual void setRealForeground(gColor color);
|
|
|
|
//"Events"
|
|
void (*onClick)(gTabStrip *sender);
|
|
|
|
//"Private"
|
|
virtual GtkWidget *getContainer();
|
|
|
|
private:
|
|
GPtrArray *_pages;
|
|
gTabStripPage *get(int ind);
|
|
int getRealIndex(GtkWidget *page);
|
|
void destroyTab(int ind);
|
|
};
|
|
|
|
#endif
|