19 #ifndef _TDEACTION_SELECTOR_H_
20 #define _TDEACTION_SELECTOR_H_
24 #include <tdelibs_export.h>
32 class TDEActionSelectorPrivate;
82 TQ_PROPERTY(
bool moveOnDoubleClick READ moveOnDoubleClick WRITE setMoveOnDoubleClick )
83 TQ_PROPERTY(
bool keyboardEnabled READ keyboardEnabled WRITE setKeyboardEnabled )
84 TQ_PROPERTY( TQString availableLabel READ availableLabel WRITE setAvailableLabel )
85 TQ_PROPERTY( TQString selectedLabel READ selectedLabel WRITE setSelectedLabel )
86 TQ_PROPERTY(
ButtonIconSize buttonIconSize READ buttonIconSize WRITE setButtonIconSize )
87 TQ_PROPERTY(
InsertionPolicy availableInsertionPolicy READ availableInsertionPolicy WRITE setAvailableInsertionPolicy )
88 TQ_PROPERTY(
InsertionPolicy selectedInsertionPolicy READ selectedInsertionPolicy WRITE setSelectedInsertionPolicy )
89 TQ_PROPERTY(
bool showUpDownButtons READ showUpDownButtons WRITE setShowUpDownButtons )
98 TQListBox *availableListBox()
const;
103 TQListBox *selectedListBox()
const;
159 bool moveOnDoubleClick()
const;
165 void setMoveOnDoubleClick(
bool enable );
185 bool keyboardEnabled()
const;
191 void setKeyboardEnabled(
bool enable );
196 TQString availableLabel()
const;
204 void setAvailableLabel(
const TQString & text );
209 TQString selectedLabel()
const;
217 void setSelectedLabel(
const TQString & text );
222 ButtonIconSize buttonIconSize()
const;
228 void setButtonIconSize( ButtonIconSize size );
235 InsertionPolicy availableInsertionPolicy()
const;
241 void setAvailableInsertionPolicy( InsertionPolicy policy );
248 InsertionPolicy selectedInsertionPolicy()
const;
254 void setSelectedInsertionPolicy( InsertionPolicy policy );
259 bool showUpDownButtons()
const;
265 void setShowUpDownButtons(
bool show );
271 void setButtonIcon(
const TQString &icon, MoveButton button );
279 void setButtonIconSet(
const TQIconSet &iconset, MoveButton button );
284 void setButtonTooltip(
const TQString &tip, MoveButton button );
289 void setButtonWhatsThis(
const TQString &text, MoveButton button );
298 void setButtonsEnabled();
337 void keyPressEvent( TQKeyEvent * );
342 bool eventFilter( TQObject *, TQEvent * );
348 void buttonAddClicked();
353 void buttonRemoveClicked();
358 void buttonUpClicked();
363 void buttonDownClicked();
368 void itemDoubleClicked( TQListBoxItem *item );
373 void slotCurrentChanged( TQListBoxItem * ) { setButtonsEnabled(); }
380 void moveItem( TQListBoxItem *item );
394 int insertionIndex( TQListBox *lb, InsertionPolicy policy );
399 TDEActionSelectorPrivate *d;
A widget for selecting and arranging actions/objects.
void movedUp(TQListBoxItem *item)
Emitted when an item is moved upwards in the "selected" listbox.
InsertionPolicy
This enum defines policies for where to insert moved items in a listbox.
MoveButton
This enum indentifies the moving buttons.
void movedDown(TQListBoxItem *item)
Emitted when an item is moved downwards in the "selected" listbox.
ButtonIconSize
This enum identifies the icon sizes, used for the move buttons.
void added(TQListBoxItem *item)
Emitted when an item is moved to the "selected" listbox.
void removed(TQListBoxItem *item)
Emitted when an item is moved out of the "selected" listbox.