kwidgetlister.cpp
46 KWidgetLister::KWidgetLister( int minWidgets, int maxWidgets, TQWidget *parent, const char* name )
60 mBtnMore = new KPushButton( KGuiItem( i18n( "more widgets", "More" ), "button_more" ), mButtonBox );
63 mBtnFewer = new KPushButton( KGuiItem( i18n( "fewer widgets", "Fewer" ), "button_fewer" ), mButtonBox );
69 // FIXME: We need a KStdGuiItem::clear here and in other locations to be automagically RTL aware - Martijn
70 mBtnClear = new KPushButton( KGuiItem( i18n( "clear widgets", "Clear" ), "locationbar_erase" ), mButtonBox );
virtual void slotMore()
Called whenever the user clicks on the 'more' button.
Definition: kwidgetlister.cpp:88
int mMaxWidgets
The maximum number of widgets that are to be shown on screen.
Definition: kwidgetlister.h:132
virtual void removeLastWidget()
Removes a single (always the last) widget.
Definition: kwidgetlister.cpp:136
void clearWidgets()
This signal is emitted whenever the clear button is clicked.
virtual void setNumberOfShownWidgetsTo(int aNum)
Sets the number of widgets on scrren to exactly aNum.
Definition: kwidgetlister.cpp:154
virtual void slotClear()
Called whenever the user clicks on the 'clear' button.
Definition: kwidgetlister.cpp:110
virtual TQWidget * createWidget(TQWidget *parent)
Because QT 2.x does not support signals/slots in template classes, we are forced to emulate this by f...
Definition: kwidgetlister.cpp:149
void widgetRemoved()
This signal is emitted whenever a widget was removed.
virtual void clearWidget(TQWidget *)
Called to clear a given widget.
Definition: kwidgetlister.cpp:145
int mMinWidgets
The minimum number of widgets that are to stay on screen.
Definition: kwidgetlister.h:130
virtual void slotFewer()
Called whenever the user clicks on the 'fewer' button.
Definition: kwidgetlister.cpp:99