OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
MWGui::BookWindow Class Reference

#include <bookwindow.hpp>

Inheritance diagram for MWGui::BookWindow:
Collaboration diagram for MWGui::BookWindow:

Public Member Functions

 BookWindow ()
 
void setPtr (const MWWorld::Ptr &book)
 Open this object in the GUI, for windows that support it. More...
 
void setInventoryAllowed (bool allowed)
 
void onResChange (int, int)
 Called when GUI viewport changes size. More...
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual MyGUI::Widget * getDefaultKeyFocus ()
 
virtual void onFrame (float duration)
 Called every frame if the window is in an active GUI mode. More...
 
virtual void onOpen ()
 Notify that window has been made visible. More...
 
virtual void onClose ()
 Notify that window has been hidden. More...
 
virtual bool exit ()
 Gracefully exits the window. More...
 
virtual void setVisible (bool visible)
 Sets the visibility of the window. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
virtual void clear ()
 Clear any state specific to the running game. More...
 
- Public Member Functions inherited from MWGui::Layout
 Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
virtual ~Layout ()
 
MyGUI::Widget * getWidget (const std::string &_name)
 
template<typename T >
void getWidget (T *&_widget, const std::string &_name)
 
void setCoord (int x, int y, int w, int h)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 

Protected Member Functions

void onNextPageButtonClicked (MyGUI::Widget *sender)
 
void onPrevPageButtonClicked (MyGUI::Widget *sender)
 
void onCloseButtonClicked (MyGUI::Widget *sender)
 
void onTakeButtonClicked (MyGUI::Widget *sender)
 
void onMouseWheel (MyGUI::Widget *_sender, int _rel)
 
void setTakeButtonShow (bool show)
 
void onKeyButtonPressed (MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character)
 
void nextPage ()
 
void prevPage ()
 
void updatePages ()
 
void clearPages ()
 
void adjustButton (Gui::ImageButton *button)
 

Private Types

typedef std::pair< int, intPage
 
typedef std::vector< PagePages
 

Private Attributes

Gui::ImageButtonmCloseButton
 
Gui::ImageButtonmTakeButton
 
Gui::ImageButtonmNextPageButton
 
Gui::ImageButtonmPrevPageButton
 
MyGUI::TextBox * mLeftPageNumber
 
MyGUI::TextBox * mRightPageNumber
 
MyGUI::Widget * mLeftPage
 
MyGUI::Widget * mRightPage
 
unsigned int mCurrentPage
 
Pages mPages
 
MWWorld::Ptr mBook
 
bool mTakeButtonShow
 
bool mTakeButtonAllowed
 

Additional Inherited Members

- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 
- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 
- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Member Typedef Documentation

typedef std::pair<int, int> MWGui::BookWindow::Page
private
typedef std::vector<Page> MWGui::BookWindow::Pages
private

Constructor & Destructor Documentation

MWGui::BookWindow::BookWindow ( )

Here is the call graph for this function:

Member Function Documentation

void MWGui::BookWindow::adjustButton ( Gui::ImageButton button)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::clearPages ( )
protected

Here is the caller graph for this function:

void MWGui::BookWindow::nextPage ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::onCloseButtonClicked ( MyGUI::Widget *  sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::onKeyButtonPressed ( MyGUI::Widget *  sender,
MyGUI::KeyCode  key,
MyGUI::Char  character 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::onMouseWheel ( MyGUI::Widget *  _sender,
int  _rel 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::onNextPageButtonClicked ( MyGUI::Widget *  sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::onPrevPageButtonClicked ( MyGUI::Widget *  sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::onResChange ( int  width,
int  height 
)
inlinevirtual

Called when GUI viewport changes size.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::BookWindow::onTakeButtonClicked ( MyGUI::Widget *  sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::prevPage ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BookWindow::setInventoryAllowed ( bool  allowed)

Here is the caller graph for this function:

void MWGui::BookWindow::setPtr ( const MWWorld::Ptr ptr)
virtual

Open this object in the GUI, for windows that support it.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::BookWindow::setTakeButtonShow ( bool  show)
protected

Here is the caller graph for this function:

void MWGui::BookWindow::updatePages ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

MWWorld::Ptr MWGui::BookWindow::mBook
private
Gui::ImageButton* MWGui::BookWindow::mCloseButton
private
unsigned int MWGui::BookWindow::mCurrentPage
private
MyGUI::Widget* MWGui::BookWindow::mLeftPage
private
MyGUI::TextBox* MWGui::BookWindow::mLeftPageNumber
private
Gui::ImageButton* MWGui::BookWindow::mNextPageButton
private
Pages MWGui::BookWindow::mPages
private
Gui::ImageButton* MWGui::BookWindow::mPrevPageButton
private
MyGUI::Widget* MWGui::BookWindow::mRightPage
private
MyGUI::TextBox* MWGui::BookWindow::mRightPageNumber
private
Gui::ImageButton* MWGui::BookWindow::mTakeButton
private
bool MWGui::BookWindow::mTakeButtonAllowed
private
bool MWGui::BookWindow::mTakeButtonShow
private

The documentation for this class was generated from the following files: