19 #ifndef _KEDITTOOLBAR_H 20 #define _KEDITTOOLBAR_H 23 #include <kxmlguiclient.h> 24 #include <kdialogbase.h> 34 class KEditToolbarPrivate;
35 class KEditToolbarWidgetPrivate;
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);
215 virtual void slotOk();
219 virtual void slotApply();
224 void acceptOK(
bool b);
237 void newToolbarConfig();
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(
TDEListView *list, TQDropEvent *e, TQListViewItem *after);
401 void slotInsertButton();
402 void slotRemoveButton();
404 void slotDownButton();
406 void slotChangeIcon();
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);
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;
439 #endif // _KEDITTOOLBAR_H A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document...
A managed set of TDEAction objects.
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...
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...