20#ifndef __VDOCUMENTDOCKER_H__
21#define __VDOCUMENTDOCKER_H__
23#include <tqlistview.h>
40class VDocumentPreview :
public TQWidget
46 VDocumentPreview( KarbonView* view, TQWidget* parent = 0 );
52 void paintEvent( TQPaintEvent* e );
53 virtual bool eventFilter( TQObject*
object, TQEvent* event );
61 TQPixmap *m_docpixmap;
64class VDocumentTab :
public TQWidget
70 VDocumentTab( KarbonView* view, TQWidget* parent );
74 void updateDocumentInfo();
75 void slotCommandAdded(
VCommand* command );
76 void slotZoomChanged(
double );
77 void slotViewportChanged();
78 void slotCommandExecuted();
81 VDocumentPreview* m_documentPreview;
94class VLayerListViewItem :
public TQCheckListItem
97 VLayerListViewItem( TQListView* parent,
VLayer* layer,
VDocument *doc, TQPtrDict<VLayerListViewItem> *map );
98 virtual ~VLayerListViewItem();
100 VLayer* layer() {
return m_layer; }
103 virtual TQString key(
int column,
bool ascending )
const;
104 virtual int compare( TQListViewItem *i,
int col,
bool ascending )
const;
105 void setKey( uint key ) { m_key = key; }
108 virtual void stateChange(
bool on );
114 TQPtrDict<VLayerListViewItem> *m_map;
117class VObjectListViewItem :
public TQListViewItem
120 VObjectListViewItem( TQListViewItem* parent,
VObject*
object,
VDocument *doc, uint key, TQPtrDict<VObjectListViewItem> *map );
121 virtual ~VObjectListViewItem();
123 VObject* object() {
return m_object; }
125 virtual TQString key(
int column,
bool ascending )
const;
126 virtual int compare( TQListViewItem *i,
int col,
bool ascending )
const;
127 void setKey( uint key ) { m_key = key; }
132 TQPtrDict<VObjectListViewItem> *m_map;
135class VLayersTab :
public TQWidget
141 VLayersTab( KarbonView* view, TQWidget* parent = 0 );
145 void updatePreviews();
148 void itemClicked( TQListViewItem* item,
const TQPoint&,
int col );
149 void selectionChangedFromList();
150 void selectionChangedFromTool();
151 void renameItem( TQListViewItem* item,
const TQPoint&,
int col );
156 void slotCommandExecuted(
VCommand* command );
159 void slotButtonClicked(
int ID );
160 void removeDeletedObjectsFromList();
161 void updateChildItems( TQListViewItem *item );
162 void toggleState(
VObject *obj,
int col );
165 VLayerListViewItem* listItem(
int pos );
166 void updateObjects(
VObject *
object, TQListViewItem *item );
167 void resetSelection();
168 void selectActiveLayer();
171 TQListView *m_layersListView;
172 TQHButtonGroup *m_buttonGroup;
175 TQPtrDict<VLayerListViewItem> m_layers;
176 TQPtrDict<VObjectListViewItem> m_objects;
185class VHistoryGroupItem :
public TQListViewItem
188 VHistoryGroupItem( VHistoryItem* item, TQListView* parent, TQListViewItem* after );
189 ~VHistoryGroupItem();
191 void paintCell( TQPainter* p,
const TQColorGroup& cg,
int column,
int width,
int align );
192 void paintFocus( TQPainter*,
const TQColorGroup&,
const TQRect& );
194 virtual TQString key(
int,
bool )
const {
return m_key; }
195 virtual int rtti()
const {
return 1001; }
201class VHistoryItem :
public TQListViewItem
204 VHistoryItem(
VCommand* command, TQListView* parent, TQListViewItem* after );
205 VHistoryItem(
VCommand* command, VHistoryGroupItem* parent, TQListViewItem* after );
208 VCommand* command() {
return m_command; }
210 void paintCell( TQPainter* p,
const TQColorGroup& cg,
int column,
int width,
int align );
211 void paintFocus( TQPainter*,
const TQColorGroup&,
const TQRect& );
213 virtual TQString key(
int,
bool )
const {
return m_key; }
214 virtual int rtti()
const {
return 1002; }
223class VHistoryTab :
public TQWidget
229 VHistoryTab(
KarbonPart* part, TQWidget* parent );
232 bool groupingEnabled();
235 void historyCleared();
236 void commandExecuted(
VCommand* command );
237 void slotCommandAdded(
VCommand* command );
238 void removeFirstCommand();
239 void removeLastCommand();
241 void commandClicked(
int button, TQListViewItem* item,
const TQPoint& point,
int col );
242 void groupingChanged(
int );
245 void undoCommand(
VCommand* command );
246 void redoCommand(
VCommand* command );
247 void undoCommandsTo(
VCommand* command );
248 void redoCommandsTo(
VCommand* command );
251 TQListView* m_history;
252 TQListViewItem* m_lastCommand;
253 TQCheckBox* m_groupCommands;
254 long m_lastCommandIndex;
Keeps track of visual per document properties.
The base class for all karbon commands.
All non-visual, static doc info is in here.
VLayer manages a set of vobjects.
The base class for all karbon objects.