18 #ifndef _KEDITTOOLBAR_H
19 #define _KEDITTOOLBAR_H
22 #include <kxmlguiclient.h>
23 #include <kdialogbase.h>
33 class KEditToolbarPrivate;
34 class KEditToolbarWidgetPrivate;
35 namespace KEditToolbarInternal
38 class ToolbarListView;
144 const TQString& xmlfile = TQString::null,
bool global =
true,
145 TQWidget* parent = 0,
const char* name = 0);
160 const TQString& xmlfile = TQString::null,
bool global =
true,
161 TQWidget* parent = 0,
const char* name = 0);
198 TQWidget* parent = 0,
const char* name = 0);
208 static void setDefaultToolbar(
const char *toolbarName);
223 void acceptOK(
bool b);
242 virtual void virtual_hook(
int id,
void* data );
244 KEditToolbarPrivate *d;
246 static const char *s_defaultToolbar;
303 const TQString& xmlfile = TQString::null,
304 bool global =
true, TQWidget *parent = 0L);
319 const TQString& file = TQString::null,
321 TQWidget *parent = 0L);
356 TQWidget *parent = 0L);
384 void rebuildKXMLGUIClients();
393 void slotToolbarSelected(
const TQString& text);
395 void slotInactiveSelected(TQListViewItem *item);
396 void slotActiveSelected(TQListViewItem *item);
398 void slotDropped(
TDEListView *list, TQDropEvent *e, TQListViewItem *after);
400 void slotInsertButton();
401 void slotRemoveButton();
403 void slotDownButton();
405 void slotChangeIcon();
413 void insertActive(KEditToolbarInternal::ToolbarItem *item, TQListViewItem *before,
bool prepend =
false);
414 void removeActive(KEditToolbarInternal::ToolbarItem *item);
415 void moveActive(KEditToolbarInternal::ToolbarItem *item, TQListViewItem *before);
418 void loadToolbarCombo(
const TQString& defaultToolbar = TQString::null);
419 void loadActionList(TQDomElement& elem);
420 void updateLocal(TQDomElement& elem);
423 KEditToolbarInternal::ToolbarListView *m_inactiveList;
424 KEditToolbarInternal::ToolbarListView *m_activeList;
425 TQComboBox *m_toolbarCombo;
427 TQToolButton *m_upAction;
428 TQToolButton *m_removeAction;
429 TQToolButton *m_insertAction;
430 TQToolButton *m_downAction;
433 virtual void virtual_hook(
int id,
void* data );
435 KEditToolbarWidgetPrivate *d;
438 #endif // _KEDITTOOLBAR_H
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
virtual void slotApply()
Activated when the Apply button has been clicked.
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
virtual void slotDefault()
Activated when the Default button has been clicked.
A dialog base class with standard buttons and predefined layouts.
This Widget extends the functionality of TQListView to honor the system wide settings for Single Clic...
virtual TDEActionCollection * actionCollection() const
Retrieves the entire action collection for the GUI client.
A managed set of TDEAction objects.
virtual void slotOk()
Activated when the Ok button has been clicked.