30 lines
651 B
C++
30 lines
651 B
C++
#ifndef MAINWINDOWX_H
|
|
#define MAINWINDOWX_H
|
|
|
|
#include <QMainWindow>
|
|
|
|
/**
|
|
* an eXtension of QMainWindow;
|
|
* It is intended to be generic,
|
|
* for use with other projects.
|
|
*/
|
|
class MainWindowX : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindowX(QWidget* parent = 0);
|
|
|
|
void sortWidgetsByTitle(QList<QDockWidget*>& list);
|
|
void sortWidgetsByTitle(QList<QToolBar*>& list);
|
|
|
|
public slots:
|
|
void toggleRightDockArea(bool state);
|
|
void toggleLeftDockArea(bool state);
|
|
void toggleTopDockArea(bool state);
|
|
void toggleBottomDockArea(bool state);
|
|
void toggleFloatingDockwidgets(bool state);
|
|
};
|
|
|
|
#endif // MAINWINDOWX_H
|