blob: 0bfe5cdd69d8f10bfcb837a2882c5d36386a36e1 (
plain)
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
|
#include <QStringList>
class Widget{
public:
Widget(int _widgetType, QRectF _loc, QString _currText, int _maxLen, int _contentType) : widgetType(_widgetType), loc(_loc), currText(_currText), maxLen(_maxLen), contentType(_contentType) { }
virtual ~Widget() { }
virtual int getWidgetType() { return widgetType; }
virtual QRectF getLocation() { return loc; }
virtual QString getCurrentText() { return currText; }
virtual int getMaxLength() { return maxLen; }
virtual int getContentType() { return contentType; }
virtual QStringList getOptionList() { return optionList; }
virtual QStringList getExportList() { return exportList; }
virtual void setOptions(QStringList _optionList) { optionList = _optionList; }
virtual void setExports(QStringList _exportList) { exportList = _exportList; }
private:
int widgetType;
QRectF loc;
QString currText;
int maxLen;
int contentType;
QStringList optionList;
QStringList exportList;
};
|