OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scrollwindow.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_SCROLLWINDOW_H
2 #define MWGUI_SCROLLWINDOW_H
3 
4 #include "windowbase.hpp"
5 
6 #include "../mwworld/ptr.hpp"
7 
8 namespace Gui
9 {
10  class ImageButton;
11 }
12 
13 namespace MWGui
14 {
15  class ScrollWindow : public WindowBase
16  {
17  public:
18  ScrollWindow ();
19 
20  void openScroll (MWWorld::Ptr scroll, bool showTakeButton);
21  virtual void exit();
22  void setInventoryAllowed(bool allowed);
23 
24  protected:
25  void onCloseButtonClicked (MyGUI::Widget* _sender);
26  void onTakeButtonClicked (MyGUI::Widget* _sender);
27  void setTakeButtonShow(bool show);
28 
29  private:
32  MyGUI::ScrollView* mTextView;
33 
35 
38 
39  };
40 
41 }
42 
43 #endif
MyGUI::ScrollView * mTextView
Definition: scrollwindow.hpp:32
MWWorld::Ptr mScroll
Definition: scrollwindow.hpp:34
void setTakeButtonShow(bool show)
Definition: scrollwindow.cpp:86
void setInventoryAllowed(bool allowed)
Definition: scrollwindow.cpp:92
bool mTakeButtonAllowed
Definition: scrollwindow.hpp:37
void onTakeButtonClicked(MyGUI::Widget *_sender)
Definition: scrollwindow.cpp:103
void onCloseButtonClicked(MyGUI::Widget *_sender)
Definition: scrollwindow.cpp:98
Definition: scrollwindow.hpp:15
Definition: windowbase.hpp:16
allows using different image textures depending on the button state
Definition: imagebutton.hpp:12
Gui::ImageButton * mCloseButton
Definition: scrollwindow.hpp:30
void openScroll(MWWorld::Ptr scroll, bool showTakeButton)
Definition: scrollwindow.cpp:53
Gui::ImageButton * mTakeButton
Definition: scrollwindow.hpp:31
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual void exit()
Gracefully exits the window.
Definition: scrollwindow.cpp:79
bool mTakeButtonShow
Definition: scrollwindow.hpp:36
ScrollWindow()
Definition: scrollwindow.cpp:34