summaryrefslogtreecommitdiff
path: root/src/preview/PreviewView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-26 20:51:30 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-26 20:51:30 (GMT)
commitf8ca8af387b8611c18ca7c5357efd19c8bc28941 (patch)
treefe790e2abede326949bb299b564ba8e75a979ecf /src/preview/PreviewView.h
parent121e7c772cfc7b3e1305a03144264fc5b66564c2 (diff)
downloadpowder-f8ca8af387b8611c18ca7c5357efd19c8bc28941.zip
powder-f8ca8af387b8611c18ca7c5357efd19c8bc28941.tar.gz
Scroll Panel
Diffstat (limited to 'src/preview/PreviewView.h')
-rw-r--r--src/preview/PreviewView.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/preview/PreviewView.h b/src/preview/PreviewView.h
index 2e94b85..312d438 100644
--- a/src/preview/PreviewView.h
+++ b/src/preview/PreviewView.h
@@ -18,6 +18,11 @@
#include "interface/Label.h"
#include "interface/Textbox.h"
+namespace ui
+{
+ class ScrollPanel;
+}
+
class PreviewModel;
class PreviewController;
class PreviewView: public ui::Window {
@@ -36,6 +41,7 @@ class PreviewView: public ui::Window {
ui::Label * authorDateLabel;
ui::Label * pageInfo;
ui::Label * saveDescriptionLabel;
+ ui::ScrollPanel * commentsPanel;
std::vector<SaveComment> comments;
std::vector<ui::Component*> commentComponents;
std::vector<ui::Component*> commentTextComponents;
@@ -43,19 +49,13 @@ class PreviewView: public ui::Window {
int votesDown;
bool doOpen;
- bool commentsEnd;
- bool commentsBegin;
- int maxOffset;
- float commentsOffset;
- float commentsVel;
-
int commentBoxHeight;
float commentBoxPositionX;
float commentBoxPositionY;
float commentBoxSizeX;
float commentBoxSizeY;
- void displayComments(int yOffset);
+ void displayComments();
void commentBoxAutoHeight();
void submitComment();
public: