26 #ifndef QTXWORKSTACK_H
27 #define QTXWORKSTACK_H
53 #pragma warning( disable:4251 )
62 enum { SplitVertical = 0x01,
63 SplitHorizontal = 0x02,
66 All = SplitVertical | SplitHorizontal |
70 enum { VersionMarker = 0x01,
92 QWidgetList windowList(
QWidget* = 0 )
const;
93 QWidgetList splitWindowList()
const;
96 void setActiveWindow(
QWidget* );
98 int accel(
const int )
const;
99 void setAccel(
const int,
const int );
101 QIcon icon(
const int )
const;
102 void setIcon(
const int,
const QIcon& );
104 void setMenuActions(
const int );
105 int menuActions()
const;
108 void split(
const int );
113 QByteArray saveState(
int )
const;
114 bool restoreState(
const QByteArray&,
int );
116 void setOpaqueResize(
bool =
true );
117 bool opaqueResize()
const;
119 void splittersVisible(
QWidget*,
bool =
true );
124 void SetRelativePositionInSplitter(
QWidget* wid,
const double pos );
129 void windowActivated(
QWidget* );
132 void splitVertical();
133 void splitHorizontal();
137 void onCloseWindow();
139 void onWindowActivated(
QWidget* );
140 void onContextMenuRequested(
QWidget*, QPoint );
144 virtual void customEvent(
QEvent* );
146 QAction* action(
const int )
const;
148 void saveState( QDataStream& )
const;
149 bool restoreState( QDataStream& );
175 void distributeSpace(
QSplitter* )
const;
178 const int need_pos,
const int splitter_pos );
206 bool restoreState( QDataStream&, QMap<QString, QtxWorkstackChild*>& );
221 bool isEmpty()
const;
224 void removeWidget(
QWidget*,
const bool =
true );
230 void setActiveWidget(
QWidget* );
232 bool contains(
QWidget* )
const;
234 QWidgetList widgetList()
const;
237 bool isActive()
const;
238 void updateActiveState();
244 QRect floatRect()
const;
245 QRect floatTab(
const int )
const;
247 int tabAt(
const QPoint& )
const;
249 void saveState( QDataStream& )
const;
250 bool restoreState( QDataStream&, QMap<QString, QtxWorkstackChild*>& );
252 void showTabBar(
bool =
true);
256 void contextMenuRequested(
QWidget*, QPoint );
261 void onCurrentChanged(
int );
263 void onChildDestroyed(
QObject* );
269 void onDragActiveTab();
270 void onContextMenuRequested( QPoint );
273 virtual void customEvent(
QEvent* );
274 virtual void focusInEvent( QFocusEvent* );
275 virtual void mousePressEvent( QMouseEvent* );
279 enum { ActivateWidget = QEvent::User,
287 void updateCurrent();
290 QWidget* widget(
const int )
const;
291 int widgetId(
QWidget* )
const;
296 void setWidgetActive(
QWidget* );
298 int generateId()
const;
323 void setId(
const int );
359 int tabId(
const int )
const;
360 int indexOf(
const int )
const;
361 void setTabId(
const int,
const int );
416 #pragma warning( default:4251 )
419 #endif // QTXWORKSTACK_H