OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
savegamedialog.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MWGUI_SAVEGAMEDIALOG_H
2 #define OPENMW_MWGUI_SAVEGAMEDIALOG_H
3 
4 #include "windowbase.hpp"
5 
6 namespace MWState
7 {
8  class Character;
9  struct Slot;
10 }
11 
12 namespace MWGui
13 {
14 
16  {
17  public:
19 
20  virtual void open();
21 
22  virtual void exit();
23 
24  void setLoadOrSave(bool load);
25 
26  private:
27  void confirmDeleteSave();
28 
29  void onKeyButtonPressed(MyGUI::Widget* _sender, MyGUI::KeyCode key, MyGUI::Char character);
30  void onCancelButtonClicked (MyGUI::Widget* sender);
31  void onOkButtonClicked (MyGUI::Widget* sender);
32  void onDeleteButtonClicked (MyGUI::Widget* sender);
33  void onCharacterSelected (MyGUI::ComboBox* sender, size_t pos);
34  // Slot selected (mouse click or arrow keys)
35  void onSlotSelected (MyGUI::ListBox* sender, size_t pos);
36  // Slot activated (double click or enter key)
37  void onSlotActivated (MyGUI::ListBox* sender, size_t pos);
38  // Slot clicked with mouse
39  void onSlotMouseClick(MyGUI::ListBox* sender, size_t pos);
40 
41  void onDeleteSlotConfirmed();
42 
43  void onEditSelectAccept (MyGUI::EditBox* sender);
44  void onSaveNameChanged (MyGUI::EditBox* sender);
45  void onConfirmationGiven();
46 
47  void accept(bool reallySure=false);
48 
49  void fillSaveList();
50 
51  std::auto_ptr<MyGUI::ITexture> mScreenshotTexture;
52  MyGUI::ImageBox* mScreenshot;
53  bool mSaving;
54 
55  MyGUI::ComboBox* mCharacterSelection;
56  MyGUI::EditBox* mInfoText;
57  MyGUI::Button* mOkButton;
58  MyGUI::Button* mCancelButton;
59  MyGUI::Button* mDeleteButton;
60  MyGUI::ListBox* mSaveList;
61  MyGUI::EditBox* mSaveNameEdit;
62  MyGUI::Widget* mSpacer;
63 
66 
67  };
68 
69 }
70 
71 #endif
const MWState::Character * mCurrentCharacter
Definition: savegamedialog.hpp:64
void onDeleteSlotConfirmed()
Definition: savegamedialog.cpp:85
MyGUI::EditBox * mSaveNameEdit
Definition: savegamedialog.hpp:61
Definition: character.hpp:19
void accept(bool reallySure=false)
Definition: savegamedialog.cpp:233
void onKeyButtonPressed(MyGUI::Widget *_sender, MyGUI::KeyCode key, MyGUI::Char character)
Definition: savegamedialog.cpp:271
const MWState::Slot * mCurrentSlot
Definition: savegamedialog.hpp:65
MyGUI::Widget * mSpacer
Definition: savegamedialog.hpp:62
void onConfirmationGiven()
Definition: savegamedialog.cpp:228
bool mSaving
Definition: savegamedialog.hpp:53
void onSlotActivated(MyGUI::ListBox *sender, size_t pos)
Definition: savegamedialog.cpp:62
void onOkButtonClicked(MyGUI::Widget *sender)
Definition: savegamedialog.cpp:277
void fillSaveList()
Definition: savegamedialog.cpp:300
MyGUI::ListBox * mSaveList
Definition: savegamedialog.hpp:60
void onEditSelectAccept(MyGUI::EditBox *sender)
Definition: savegamedialog.cpp:115
void onSlotMouseClick(MyGUI::ListBox *sender, size_t pos)
Definition: savegamedialog.cpp:68
MyGUI::Button * mDeleteButton
Definition: savegamedialog.hpp:59
virtual void open()
Notify that window has been made visible.
Definition: savegamedialog.cpp:120
MyGUI::Button * mOkButton
Definition: savegamedialog.hpp:57
int load(Arguments &info)
Definition: esmtool.cpp:302
MyGUI::ImageBox * mScreenshot
Definition: savegamedialog.hpp:52
MyGUI::Button * mCancelButton
Definition: savegamedialog.hpp:58
void onCharacterSelected(MyGUI::ComboBox *sender, size_t pos)
Definition: savegamedialog.cpp:282
Definition: savegamedialog.hpp:15
SaveGameDialog()
Definition: savegamedialog.cpp:35
virtual void exit()
Gracefully exits the window.
Definition: savegamedialog.cpp:193
std::auto_ptr< MyGUI::ITexture > mScreenshotTexture
Definition: savegamedialog.hpp:51
MyGUI::ComboBox * mCharacterSelection
Definition: savegamedialog.hpp:55
void onSaveNameChanged(MyGUI::EditBox *sender)
Definition: savegamedialog.cpp:108
void onDeleteButtonClicked(MyGUI::Widget *sender)
Definition: savegamedialog.cpp:222
MyGUI::EditBox * mInfoText
Definition: savegamedialog.hpp:56
void setLoadOrSave(bool load)
Definition: savegamedialog.cpp:198
void confirmDeleteSave()
Definition: savegamedialog.cpp:76
KeyCode
Keyboard scan codes.
Definition: OISCompat.hpp:10
void onSlotSelected(MyGUI::ListBox *sender, size_t pos)
Definition: savegamedialog.cpp:337
Definition: character.hpp:10
Definition: windowbase.hpp:41
void onCancelButtonClicked(MyGUI::Widget *sender)
Definition: savegamedialog.cpp:217