summaryrefslogtreecommitdiff
path: root/library/menubutton.h
Side-by-side diff
Diffstat (limited to 'library/menubutton.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/menubutton.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/menubutton.h b/library/menubutton.h
index 6582b1e..ee5dcf1 100644
--- a/library/menubutton.h
+++ b/library/menubutton.h
@@ -22,42 +22,48 @@
#include <qpushbutton.h>
#include <qstringlist.h>
class MenuButton : public QPushButton {
Q_OBJECT
public:
MenuButton( QWidget* parent, const char* name=0);
MenuButton( const QStringList& items, QWidget* parent, const char* name=0);
void clear();
+
int currentItem() const;
QString currentText() const;
void insertItems( const QStringList& items );
void insertItem( const QIconSet& icon, const QString& text=QString::null );
void insertItem( const QString& text );
void insertSeparator();
void setLabel(const QString& label);
+ int count();
+ void remove(int id);
+ QString text(int id);
+ void setUseLabel(bool b);
signals:
void selected(int);
void selected(const QString&);
public slots:
void select(int);
void select(const QString&);
private:
+ bool useLabel;
void init();
QStringList txts;
QPopupMenu* pop;
int nitems;
int cur;
QString lab;
void updateLabel();
};
#endif