KDEUI
Go to the documentation of this file.
19 #ifndef _KACTION_SELECTOR_H_
20 #define _KACTION_SELECTOR_H_
23 #include <QtGui/QWidget>
26 class QListWidgetItem;
31 class KActionSelectorPrivate;
83 Q_PROPERTY(
bool moveOnDoubleClick READ moveOnDoubleClick WRITE setMoveOnDoubleClick )
84 Q_PROPERTY(
bool keyboardEnabled READ keyboardEnabled WRITE setKeyboardEnabled )
85 Q_PROPERTY( QString availableLabel READ availableLabel WRITE setAvailableLabel )
86 Q_PROPERTY( QString selectedLabel READ selectedLabel WRITE setSelectedLabel )
87 Q_PROPERTY(
InsertionPolicy availableInsertionPolicy READ availableInsertionPolicy WRITE setAvailableInsertionPolicy )
88 Q_PROPERTY(
InsertionPolicy selectedInsertionPolicy READ selectedInsertionPolicy WRITE setSelectedInsertionPolicy )
89 Q_PROPERTY(
bool showUpDownButtons READ showUpDownButtons WRITE setShowUpDownButtons )
142 bool moveOnDoubleClick()
const;
148 void setMoveOnDoubleClick(
bool enable );
168 bool keyboardEnabled()
const;
174 void setKeyboardEnabled(
bool enable );
179 QString availableLabel()
const;
187 void setAvailableLabel(
const QString & text );
192 QString selectedLabel()
const;
200 void setSelectedLabel(
const QString & text );
207 InsertionPolicy availableInsertionPolicy()
const;
213 void setAvailableInsertionPolicy( InsertionPolicy policy );
220 InsertionPolicy selectedInsertionPolicy()
const;
226 void setSelectedInsertionPolicy( InsertionPolicy policy );
231 bool showUpDownButtons()
const;
237 void setShowUpDownButtons(
bool show );
243 void setButtonIcon(
const QString &icon, MoveButton button );
251 void setButtonIconSet(
const QIcon &iconset, MoveButton button );
256 void setButtonTooltip(
const QString &tip, MoveButton button );
261 void setButtonWhatsThis(
const QString &text, MoveButton button );
270 void setButtonsEnabled();
276 void added( QListWidgetItem *item );
309 void keyPressEvent( QKeyEvent * );
314 bool eventFilter(
QObject *, QEvent * );
320 Q_PRIVATE_SLOT(d,
void buttonAddClicked())
325 Q_PRIVATE_SLOT(d,
void buttonRemoveClicked())
330 Q_PRIVATE_SLOT(d,
void buttonUpClicked())
335 Q_PRIVATE_SLOT(d,
void buttonDownClicked())
340 Q_PRIVATE_SLOT(d,
void itemDoubleClicked( QListWidgetItem *item ))
345 Q_PRIVATE_SLOT(d,
void slotCurrentChanged( QListWidgetItem * ))
352 friend class KActionSelectorPrivate;
353 KActionSelectorPrivate * const d;
358 #endif // _KACTION_SELECTOR_H_
MoveButton
This enum indentifies the moving buttons.
void added(QListWidgetItem *item)
Emitted when an item is moved to the "selected" listbox.
void movedUp(QListWidgetItem *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.
void movedDown(QListWidgetItem *item)
Emitted when an item is moved downwards in the "selected" listbox.
void removed(QListWidgetItem *item)
Emitted when an item is moved out of the "selected" listbox.
A widget for selecting and arranging actions/objects.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.