19#ifndef KIVIO_STACK_BAR_H
20#define KIVIO_STACK_BAR_H
22#include <tqdockwindow.h>
33class KivioStackBar : public TQDockWindow
38 KivioStackBar(KivioView* view, TQWidget* parent=0, const char* name=0);
41 TQWidget* findPage( const TQString& name);
42 TQWidget* findPage(DragBarButton*);
43 void insertPage(TQWidget*, const TQString&);
44 void removePage(TQWidget*);
45 void deletePageAndButton(DragBarButton*);
46 void showPage(TQWidget*);
48 TQWidget* visiblePage() const { return m_visiblePage; }
50 KivioView* view() const { return m_view; }
53 void aboutToShow(TQWidget*);
54 void beginDragPage(DragBarButton*);
55 void finishDragPage(DragBarButton*);
56 void deleteButton(DragBarButton*, TQWidget*, KivioStackBar*);
59 virtual void closeEvent(TQCloseEvent*);
62 void showButtonPage();
63 void buttonBeginDrag();
64 void buttonFinishDrag();
65 void slotDeleteButton(DragBarButton*);
66 void newPlace(TQDockWindow::Place place);
69 TQPtrDict<TQWidget> m_data;
70 TQWidget* m_visiblePage;
|