-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformwindow.h
44 lines (41 loc) · 1.09 KB
/
formwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef FORMWINDOW_H
#define FORMWINDOW_H
#include "common.h"
#include "widgetselection.h"
#include "basewidget.h"
class EWindow : public QFrame
{
Q_OBJECT
public:
explicit EWindow(QWidget *parent = 0);
~EWindow();
void addWidget(QWidget *w);
void setCurrent(QWidget *w);
void remove(QWidget *w);
QWidgetList childWidgets() const;
static QWidgetList windowList();
protected:
void mouseMoveEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
private:
void getPropertyList();
signals:
void currentItemChanged(QWidget *now);
public slots:
void focusChanged(QWidget *old, QWidget *now);
void propertyChanged(QWidget *now);
public:
int Id;
QStringList m_propertyList;
private:
QWidgetList childs;
Selection *sel;
QPoint dragPosition; //鼠标拖动的位置
static QWidgetList winList;
public:
};
QString getWidgetProperty(QWidget *w, QString property);
void setWidgetProperty(QWidget *w, QString property, QString value);
uint QColorToEColor(QColor color);
int alignmentConvert(int align);
#endif // FORMWINDOW_H