-
Notifications
You must be signed in to change notification settings - Fork 1
/
Basic.h
36 lines (30 loc) · 930 Bytes
/
Basic.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
#ifndef WIDGET_H
#define WIDGET_H
#include <QPainter>
#include <QWidget>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QDesktopWidget>
#include <QApplication>
#include <QRect>
#include "Item.h"
class Basic : public QWidget
{
Q_OBJECT
public:
Basic(QWidget *parent = 0);
Basic(QWidget *parent = 0,bool s = 1);
~Basic();
void getWindowSize(); //获得窗口大小
void setWindowSize(int w, int h);//设置窗口大小
void controlAdaptive(); //
void setScene(Item &item); //设置item
bool openPackage(QString packName); //设置梦蝶工程包
void setPrePath(QString path); //安卓下设置预目录
void setFixed(bool s = 1); //在固定窗口与全屏自适应之间切换 默认固定
QString getPrePath();
QString titleName = "梦蝶";
private:
void autoZoom(Item &item); // 图元的自动缩放
};
#endif // WIDGET_H