-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwidgetmanager.h
More file actions
24 lines (21 loc) · 988 Bytes
/
widgetmanager.h
File metadata and controls
24 lines (21 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef WIDGETMANAGER_H
#define WIDGETMANAGER_H
#include <QWidget>
#include "utilsexport.h"
class UTILS_EXPORT WidgetManager
{
public:
static WidgetManager *instance(); // TODO: implement (for signals)
static void raiseWidget(QWidget *AWidget);
static void showActivateRaiseWindow(QWidget *AWindow);
static void setWindowSticky(QWidget *AWindow, bool ASticky);
static void alertWidget(QWidget *AWidget);
static bool isWidgetAlertEnabled();
static void setWidgetAlertEnabled(bool AEnabled);
static Qt::Alignment windowAlignment(const QWidget *AWindow);
static bool alignWindow(QWidget *AWindow, Qt::Alignment AAlign);
static QRect alignRect(const QRect &ARect, const QRect &ABoundary, Qt::Alignment AAlign=Qt::AlignCenter);
static QRect alignGeometry(const QSize &ASize, const QWidget *AWidget=NULL, Qt::Alignment AAlign=Qt::AlignCenter);
static QRect correctWindowGeometry(const QRect &AGeometry, QWidget *AWindow=NULL);
};
#endif //WIDGETMANAGER_H