aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/Widget.h
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2018-04-27 17:26:02 -0400
committerZackaryWelch <welch.zackary@gmail.com>2018-04-27 17:26:02 -0400
commit253bacc6ee0d825564bef6aa507296e79b2611ff (patch)
tree0d87304383654f25f83259cdb0ae776706250c23 /src-qt5/desktop-utils/lumina-pdf/Widget.h
parentMerge branch 'master' of http://github.com/trueos/lumina (diff)
downloadlumina-253bacc6ee0d825564bef6aa507296e79b2611ff.tar.gz
lumina-253bacc6ee0d825564bef6aa507296e79b2611ff.tar.bz2
lumina-253bacc6ee0d825564bef6aa507296e79b2611ff.zip
Added more annotation and widget support. Currently incomplete. Updated to MuPDF 1.13.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/Widget.h')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/Widget.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/Widget.h b/src-qt5/desktop-utils/lumina-pdf/Widget.h
new file mode 100644
index 00000000..0bfe5cdd
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-pdf/Widget.h
@@ -0,0 +1,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;
+};
bgstack15