This commit is contained in:
Chenwenxuan
2024-03-06 14:54:30 +08:00
commit edac2715f0
1525 changed files with 809982 additions and 0 deletions

29
main/mainwindowx.h Normal file
View File

@@ -0,0 +1,29 @@
#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