12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef QFDAPP_H
- #define QFDAPP_H
- #include <QMainWindow>
- #include <QGraphicsDropShadowEffect>
- #include <QSizeGrip>
- class CustomGrip;
- namespace Ui {
- class QFDApp;
- }
- class QFDApp : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit QFDApp(QWidget *parent = nullptr);
- ~QFDApp();
- private slots:
- void toggleMenu();
- void maximizeRestore();
- void leftMenuButtonClick();
- void openCloseLeftBox();
- void openCloseRightBox();
- private:
- Ui::QFDApp *ui;
- QPoint dragPos;
- CustomGrip *m_leftGrip;
- CustomGrip *m_rightGrip;
- CustomGrip *m_topGrip;
- CustomGrip *m_bottomGrip;
- QGraphicsDropShadowEffect *shadow;
- QSizeGrip *sizegrip;
- void init();
- void loadTheme(const QString &file, bool useCustomTheme);
- void setThemeHack();
- /**
- * @brief START - GUI DEFINITIONS
- */
- void uiDefinitions();
- bool returStatus();
- void setStatus(bool status);
- QString selectMenu(const QString &getStyle);
- QString deselectMenu(const QString &getStyle);
- void selectStandardMenu(const QString &widget);
- void resetStyle(const QString &widget);
- void resizeGrips();
- void startBoxAnimation(int leftBoxWidth, int rightBoxWidth, const QString &direction);
- // QWidget interface
- protected:
- void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
- void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
- bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
- };
- #endif // QFDAPP_H
|