#include <KoZoomAction.h>
Public Slots | |
| void | setZoom (const TQString &zoom) |
| void | setZoom (int zoom) |
| Public Slots inherited from TDESelectAction | |
| virtual void | setCurrentItem (int index) |
| virtual void | setItems (const TQStringList &lst) |
| virtual void | clear () |
| virtual void | setEditable (bool) |
| virtual void | setComboWidth (int width) |
| Public Slots inherited from TDEAction | |
| virtual void | setText (const TQString &text) |
| virtual bool | setShortcut (const TDEShortcut &) |
| virtual void | setWhatsThis (const TQString &text) |
| virtual void | setToolTip (const TQString &) |
| virtual void | setIconSet (const TQIconSet &iconSet) |
| virtual void | setEnabled (bool enable) |
| void | setDisabled (bool disable) |
| virtual void | setShortcutConfigurable (bool) |
| virtual void | activate () |
Signals | |
| void | zoomChanged (const TQString &zoom) |
| Signals inherited from TDESelectAction | |
| void | activated (int index) |
| void | activated (const TQString &text) |
| Signals inherited from TDEAction | |
| void | activated () |
| void | activated (TDEAction::ActivationReason reason, TQt::ButtonState state) |
Public Member Functions | |
| KoZoomAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| KoZoomAction (const TQString &text, const TQString &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| Public Member Functions inherited from TDESelectAction | |
| TDESelectAction (const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDESelectAction (const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDESelectAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDESelectAction (const TQString &text, const TQString &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDESelectAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDESelectAction (const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDESelectAction (TQObject *parent=0, const char *name=0) | |
| virtual int | plug (TQWidget *widget, int index=-1) |
| virtual bool | isEditable () const |
| virtual TQStringList | items () const |
| virtual void | changeItem (int index, const TQString &text) |
| virtual TQString | currentText () const |
| virtual int | currentItem () const |
| virtual int | comboWidth () const |
| void | setMaxComboViewCount (int n) |
| TQPopupMenu * | popupMenu () const |
| void | setRemoveAmpersandsInCombo (bool b) TDE_DEPRECATED |
| bool | removeAmpersandsInCombo () const |
| void | setMenuAccelsEnabled (bool b) |
| bool | menuAccelsEnabled () const |
| virtual bool | isShortcutConfigurable () const |
| Public Member Functions inherited from TDEAction | |
| TDEAction (const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name) | |
| TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name) | |
| TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name) | |
| TDEAction (const KGuiItem &item, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name) | |
| TDEAction (const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDEAction (const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDEAction (TQObject *parent=0, const char *name=0) | |
| virtual void | plugAccel (TDEAccel *accel, bool configurable=true) TDE_DEPRECATED |
| virtual void | unplug (TQWidget *w) |
| virtual void | unplugAccel () TDE_DEPRECATED |
| virtual bool | isPlugged () const |
| bool | isPlugged (const TQWidget *container) const |
| virtual bool | isPlugged (const TQWidget *container, int id) const |
| virtual bool | isPlugged (const TQWidget *container, const TQWidget *_representative) const |
| uint | tdeaccelCount () const |
| virtual TQString | text () const |
| virtual const TDEShortcut & | shortcut () const |
| virtual const TDEShortcut & | shortcutDefault () const |
| virtual bool | isEnabled () const |
| virtual TQString | whatsThis () const |
| virtual TQString | toolTip () const |
| virtual TQIconSet | iconSet (TDEIcon::Group group, int size=0) const |
| TQIconSet | iconSet () const |
| int | accel () const TDE_DEPRECATED |
| void | setAccel (int key) TDE_DEPRECATED |
| void | setStatusText (const TQString &text) |
| int | menuId (int i) |
Protected Slots | |
| void | activated (const TQString &text) |
| Protected Slots inherited from TDEAction | |
| void | slotPopupActivated () |
| void | slotButtonClicked (int, TQt::ButtonState state) |
Protected Member Functions | |
| void | init () |
| Protected Member Functions inherited from TDESelectAction | |
| TQStringList | comboItems () const |
| Protected Member Functions inherited from TDEAction | |
| const KGuiItem & | guiItem () const |
Additional Inherited Members | |
| Public Types inherited from TDEAction | |
| enum | ActivationReason |
| Static Public Member Functions inherited from TDEAction | |
| static int | getToolButtonID () |
Detailed Description
Class KoZoomAction implements an action to provide zoom values.
In a toolbar, KoZoomAction will show a dropdown list, also with the possibility for the user to enter arbritrary zoom value (must be an integer). The values shown on the list are alwalys sorted.
Definition at line 31 of file KoZoomAction.h.
Constructor & Destructor Documentation
◆ KoZoomAction() [1/2]
| KoZoomAction::KoZoomAction | ( | const TQString & | text, |
| const TQIconSet & | pix, | ||
| const TDEShortcut & | cut = TDEShortcut(), | ||
| TQObject * | parent = 0, | ||
| const char * | name = 0 ) |
Creates a new zoom action.
Definition at line 28 of file KoZoomAction.cpp.
◆ KoZoomAction() [2/2]
| KoZoomAction::KoZoomAction | ( | const TQString & | text, |
| const TQString & | pix, | ||
| const TDEShortcut & | cut = TDEShortcut(), | ||
| TQObject * | parent = 0, | ||
| const char * | name = 0 ) |
Creates a new zoom action.
Definition at line 35 of file KoZoomAction.cpp.
Member Function Documentation
◆ activated
|
protectedslot |
Definition at line 84 of file KoZoomAction.cpp.
◆ init()
|
protected |
Definition at line 90 of file KoZoomAction.cpp.
◆ setZoom [1/2]
|
slot |
Sets the zoom.
If it's not yet on the list of zoom values, it will be inserted into the list at proper place so that the the values remain sorted.
Definition at line 43 of file KoZoomAction.cpp.
◆ setZoom [2/2]
|
slot |
Sets the zoom.
If it's not yet on the list of zoom values, it will be inserted into the list at proper place so that the the values remain sorted.
Definition at line 79 of file KoZoomAction.cpp.
◆ zoomChanged
|
signal |
Signal zoomChanged is triggered when user changes the zoom value, either by choosing it from the list or by entering new value.
The documentation for this class was generated from the following files:
