18#ifndef _KO_PALETTE_MANAGER_
19#define _KO_PALETTE_MANAGER_
22#include <tqdockwindow.h>
26#include <tqvaluestack.h>
28#include <tqsignalmapper.h>
29#include <tqstringlist.h>
31#include <koffice_export.h>
41enum enumKoDockability {
47enum enumKoPaletteStyle {
116 virtual void addWidget(TQWidget * widget, const TQString & name, const TQString & paletteName, int position = -1,
117 enumKoPaletteStyle style = PALETTE_DOCKER, bool shown = true);
123 virtual TQWidget * widget( const TQString & name);
128 virtual void showWidget( const TQString & name);
133 virtual void hideWidget( const TQString & name);
141 virtual void removeWidget( const TQString & name);
148 virtual KoPalette * createPalette( const TQString & name, const TQString & caption, enumKoPaletteStyle style = PALETTE_DOCKER);
155 virtual void placePalette( const TQString & name, Dock location = DockRight);
161 virtual void addPalette( KoPalette * palette, const TQString & name, Dock location = DockRight);
166 virtual void setFixedWidth( int w);
170 void slotTogglePalette( int paletteIndex);
171 void slotToggleAllPalettes();
172 void showAllPalettes( bool shown);
178 virtual void slotReset();
183 virtual void slotResetFont();
188 bool eventFilter( TQObject *o, TQEvent *e );
205 enumKoDockability m_dockability;
207 TQStringList * m_widgetNames;
209 TQDict<TQWidget> * m_widgets;
210 TQDict<KoPalette> * m_palettes;
211 TQValueStack<TQString> m_hiddenWidgets;
212 TQDict<TDEToggleAction> * m_actions;
213 TQSignalMapper * m_mapper;
215 TQMap<TQString, TQString> * m_defaultMapping;
216 TQStringList m_defaultPaletteOrder;
217 TQStringList m_defaultWidgetOrder;
218 TQMap<TQString, TQString> * m_currentMapping;
220 bool m_setFixedWidth;
Manages the set of dockwindow palettes and their widgets.
A floating palette that allows the adding and removing of widgets to its organzing principle.
This class is used to display a KoDocument.
|