19 #ifndef _KEDITTOOLBAR_H
20 #define _KEDITTOOLBAR_H
23 #include <kxmlguiclient.h>
24 #include <kdialogbase.h>
34 class KEditToolbarPrivate;
35 class KEditToolbarWidgetPrivate;
36 namespace KEditToolbarInternal
39 class ToolbarListView;
145 const TQString& xmlfile = TQString::null,
bool global =
true,
146 TQWidget* parent = 0,
const char* name = 0);
161 const TQString& xmlfile = TQString::null,
bool global =
true,
162 TQWidget* parent = 0,
const char* name = 0);
199 TQWidget* parent = 0,
const char* name = 0);
209 static void setDefaultToolbar(
const char *toolbarName);
224 void acceptOK(
bool b);
243 virtual void virtual_hook(
int id,
void* data );
245 KEditToolbarPrivate *d;
247 static const char *s_defaultToolbar;
304 const TQString& xmlfile = TQString::null,
305 bool global =
true, TQWidget *parent = 0L);
320 const TQString& file = TQString::null,
322 TQWidget *parent = 0L);
357 TQWidget *parent = 0L);
385 void rebuildKXMLGUIClients();
394 void slotToolbarSelected(
const TQString& text);
396 void slotInactiveSelected(TQListViewItem *item);
397 void slotActiveSelected(TQListViewItem *item);
399 void slotDropped(
KListView *list, TQDropEvent *e, TQListViewItem *after);
401 void slotInsertButton();
402 void slotRemoveButton();
404 void slotDownButton();
406 void slotChangeIcon();
409 void slotProcessExited(
KProcess* );
414 void insertActive(KEditToolbarInternal::ToolbarItem *item, TQListViewItem *before,
bool prepend =
false);
415 void removeActive(KEditToolbarInternal::ToolbarItem *item);
416 void moveActive(KEditToolbarInternal::ToolbarItem *item, TQListViewItem *before);
417 void initNonKPart(
KActionCollection *collection,
const TQString& file,
bool global);
419 void loadToolbarCombo(
const TQString& defaultToolbar = TQString::null);
420 void loadActionList(TQDomElement& elem);
421 void updateLocal(TQDomElement& elem);
424 KEditToolbarInternal::ToolbarListView *m_inactiveList;
425 KEditToolbarInternal::ToolbarListView *m_activeList;
426 TQComboBox *m_toolbarCombo;
428 TQToolButton *m_upAction;
429 TQToolButton *m_removeAction;
430 TQToolButton *m_insertAction;
431 TQToolButton *m_downAction;
434 virtual void virtual_hook(
int id,
void* data );
436 KEditToolbarWidgetPrivate *d;
A managed set of KAction objects.
A dialog base class with standard buttons and predefined layouts.
virtual void slotApply()
Activated when the Apply button has been clicked.
virtual void slotDefault()
Activated when the Default button has been clicked.
virtual void slotOk()
Activated when the Ok button has been clicked.
This Widget extends the functionality of TQListView to honor the system wide settings for Single Clic...
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...