diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-22 14:14:17 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-22 14:14:17 (GMT) |
| commit | 9abe51526cac2634af0541c3de69834dd30e9f78 (patch) | |
| tree | 6ae4deadfe00a83094b9d288d8c11d8ce823577a /src/preview/PreviewView.h | |
| parent | 2c311b9a36a88fadd96f3d39acb1ab2590835d81 (diff) | |
| download | powder-9abe51526cac2634af0541c3de69834dd30e9f78.zip powder-9abe51526cac2634af0541c3de69834dd30e9f78.tar.gz | |
Move all GUI source files into gui/
Diffstat (limited to 'src/preview/PreviewView.h')
| -rw-r--r-- | src/preview/PreviewView.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/src/preview/PreviewView.h b/src/preview/PreviewView.h deleted file mode 100644 index c9025fd..0000000 --- a/src/preview/PreviewView.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef PREVIEWVIEW_H_ -#define PREVIEWVIEW_H_ - -#include <vector> -#include "Comment.h" -#include "interface/Window.h" -#include "preview/PreviewController.h" -#include "preview/PreviewModel.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/Textbox.h" - -namespace ui -{ - class ScrollPanel; - class AvatarButton; -} - -class VideoBuffer; -class PreviewModel; -class PreviewController; -class PreviewView: public ui::Window { - class SubmitCommentAction; - class LoginAction; - class AutoCommentSizeAction; - PreviewController * c; - VideoBuffer * 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::AvatarButton * avatarButton; - ui::Label * pageInfo; - ui::Label * saveDescriptionLabel; - ui::Label * viewsLabel; - ui::Textbox * saveIDTextbox; - ui::ScrollPanel * commentsPanel; - std::vector<ui::Component*> commentComponents; - std::vector<ui::Component*> commentTextComponents; - int votesUp; - int votesDown; - bool doOpen; - bool showAvatars; - - int commentBoxHeight; - float commentBoxPositionX; - float commentBoxPositionY; - float commentBoxSizeX; - float commentBoxSizeY; - - void displayComments(); - void commentBoxAutoHeight(); - void submitComment(); -public: - void AttachController(PreviewController * controller); - PreviewView(); - 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); - virtual void OnTryExit(ExitMethod method); - virtual void OnMouseWheel(int x, int y, int d); - virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt); - virtual ~PreviewView(); -}; - -#endif /* PREVIEWVIEW_H_ */ |
