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);
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(
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(ToolbarItem *item, TQListViewItem *before,
bool prepend =
false);
415 void removeActive(ToolbarItem *item);
416 void moveActive(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 ToolbarListView *m_inactiveList;
425 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