2013-11-05 18:50:24 +00:00
|
|
|
#ifndef OPENMW_MWGUI_SAVEGAMEDIALOG_H
|
|
|
|
#define OPENMW_MWGUI_SAVEGAMEDIALOG_H
|
|
|
|
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
|
2013-11-21 19:24:58 +00:00
|
|
|
namespace MWState
|
|
|
|
{
|
|
|
|
class Character;
|
|
|
|
}
|
|
|
|
|
2013-11-05 18:50:24 +00:00
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class SaveGameDialog : public MWGui::WindowModal
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SaveGameDialog();
|
|
|
|
|
|
|
|
virtual void open();
|
|
|
|
|
|
|
|
void setLoadOrSave(bool load);
|
|
|
|
|
|
|
|
void onCancelButtonClicked (MyGUI::Widget* sender);
|
|
|
|
void onOkButtonClicked (MyGUI::Widget* sender);
|
2013-11-21 19:24:58 +00:00
|
|
|
void onCharacterSelected (MyGUI::ComboBox* sender, size_t pos);
|
|
|
|
void onSlotSelected (MyGUI::ListBox* sender, size_t pos);
|
2014-01-25 21:30:25 +00:00
|
|
|
void onSlotActivated (MyGUI::ListBox* sender, size_t pos);
|
2014-01-26 14:22:31 +00:00
|
|
|
void onEditSelectAccept (MyGUI::EditBox* sender);
|
2013-11-21 19:24:58 +00:00
|
|
|
|
|
|
|
void fillSaveList();
|
2013-11-05 18:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
MyGUI::ImageBox* mScreenshot;
|
2013-11-21 19:24:58 +00:00
|
|
|
bool mSaving;
|
2013-11-05 18:50:24 +00:00
|
|
|
|
|
|
|
MyGUI::ComboBox* mCharacterSelection;
|
|
|
|
MyGUI::EditBox* mInfoText;
|
|
|
|
MyGUI::Button* mOkButton;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
MyGUI::ListBox* mSaveList;
|
|
|
|
MyGUI::EditBox* mSaveNameEdit;
|
|
|
|
MyGUI::Widget* mSpacer;
|
|
|
|
|
2013-11-21 19:24:58 +00:00
|
|
|
const MWState::Character* mCurrentCharacter;
|
|
|
|
|
2013-11-05 18:50:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|