summaryrefslogtreecommitdiff
path: root/src/preview/PreviewView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-17 18:14:05 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-17 18:14:05 (GMT)
commit2479b8664d5c4cdd47208bdbca970828ba1a2520 (patch)
treed453fa8de5272d83d03a4a72f776c6808c5f641e /src/preview/PreviewView.h
parent2329f98f0af9dffda5375aca7b05f9e76a84d06a (diff)
downloadpowder-2479b8664d5c4cdd47208bdbca970828ba1a2520.zip
powder-2479b8664d5c4cdd47208bdbca970828ba1a2520.tar.gz
Add comment box to save preview - doesn't work yet
Diffstat (limited to 'src/preview/PreviewView.h')
-rw-r--r--src/preview/PreviewView.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/preview/PreviewView.h b/src/preview/PreviewView.h
index fbc2adc..f6be29f 100644
--- a/src/preview/PreviewView.h
+++ b/src/preview/PreviewView.h
@@ -16,16 +16,20 @@
#include "interface/Button.h"
#include "search/Thumbnail.h"
#include "interface/Label.h"
+#include "interface/Textbox.h"
class PreviewModel;
class PreviewController;
class PreviewView: public ui::Window {
+ class LoginAction;
PreviewController * c;
Thumbnail * savePreview;
ui::Button * openButton;
ui::Button * browserOpenButton;
ui::Button * favButton;
ui::Button * reportButton;
+ ui::Button * submitCommentButton;
+ ui::Textbox * addCommentBox;
ui::Label * saveNameLabel;
ui::Label * authorDateLabel;
ui::Label * pageInfo;
@@ -43,6 +47,8 @@ class PreviewView: public ui::Window {
float commentsOffset;
float commentsVel;
+ int commentBoxHeight;
+
void displayComments(int yOffset);
public:
void AttachController(PreviewController * controller) { c = controller;}
@@ -50,6 +56,7 @@ public:
void NotifySaveChanged(PreviewModel * sender);
void NotifyCommentsChanged(PreviewModel * sender);
void NotifyCommentsPageChanged(PreviewModel * sender);
+ void NotifyCommentBoxEnabledChanged(PreviewModel * sender);
virtual void OnDraw();
virtual void DoDraw();
virtual void OnTick(float dt);