X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fgui%2Fbuttonselector.h;h=d5c69807edecc73cc3dc59c981a0d06e6c3cd69a;hb=d93782e7a5ae0fc072d094fd645cf415a34a2244;hp=b2a20fcd7d2cc09e626f257dd80dc9a6591f5d3f;hpb=2136f257ebff2370bdfe7572e0c87ef50705feb2;p=jenirok diff --git a/src/gui/buttonselector.h b/src/gui/buttonselector.h index b2a20fc..d5c6980 100644 --- a/src/gui/buttonselector.h +++ b/src/gui/buttonselector.h @@ -35,12 +35,23 @@ public: void addItem(QString const& text); void addItem(QString const& text, QVariant const& value); void clear(); - void setCurrentIndex(int index); + void setCurrentIndex(unsigned int index); + int indexOfValue(QVariant const& value) const; bool selectByValue(QVariant const& value); int currentIndex() const; + bool changeItem(unsigned int index, QString const& text); + bool changeItem(unsigned int index, QString const& text, QVariant const& value); + bool removeItem(unsigned int index); + bool setValue(unsigned int index); QString text() const; QVariant value() const; +signals: + void selected(unsigned int index, QString const& text, QVariant const& value); + +private slots: + void onSelected(QString const& text); + private: QMaemo5ListPickSelector* selector_; QStandardItemModel* model_;