~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Tools/FontEditor/EditorState.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
        @file
 
3
        @author         Albert Semenov
 
4
        @date           08/2010
 
5
*/
 
6
 
 
7
#ifndef _9242b3ed_2b1a_44f5_b31d_6a24f2db0fe2_
 
8
#define _9242b3ed_2b1a_44f5_b31d_6a24f2db0fe2_
 
9
 
 
10
#include "StateController.h"
 
11
#include "Control.h"
 
12
#include "OpenSaveFileDialog.h"
 
13
#include "MessageBox/MessageBox.h"
 
14
#include "SettingsWindow.h"
 
15
#include "sigslot.h"
 
16
 
 
17
namespace tools
 
18
{
 
19
 
 
20
        class EditorState :
 
21
                public StateController,
 
22
                public sigslot::has_slots<>
 
23
        {
 
24
        public:
 
25
                EditorState();
 
26
                virtual ~EditorState();
 
27
 
 
28
                virtual void initState();
 
29
                virtual void cleanupState();
 
30
 
 
31
                virtual void pauseState();
 
32
                virtual void resumeState();
 
33
 
 
34
        private:
 
35
                void notifyMessageBoxResultLoad(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result);
 
36
                void notifyMessageBoxResultClear(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result);
 
37
                void notifyMessageBoxResultQuit(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result);
 
38
                void notifyMessageBoxResultLoadDropFile(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result);
 
39
 
 
40
                void notifyEndDialog(Dialog* _sender, bool _result);
 
41
                void notifyChanges();
 
42
                void notifySettingsWindowEndDialog(Dialog* _dialog, bool _result);
 
43
 
 
44
                void commandFileDrop(const MyGUI::UString& _commandName, bool& _result);
 
45
                void commandLoad(const MyGUI::UString& _commandName, bool& _result);
 
46
                void commandSave(const MyGUI::UString& _commandName, bool& _result);
 
47
                void commandSaveAs(const MyGUI::UString& _commandName, bool& _result);
 
48
                void commandExport(const MyGUI::UString& _commandName, bool& _result);
 
49
                void commandClear(const MyGUI::UString& _commandName, bool& _result);
 
50
                void commandSettings(const MyGUI::UString& _commandName, bool& _result);
 
51
                void commandRecentFiles(const MyGUI::UString& _commandName, bool& _result);
 
52
                void commandQuit(const MyGUI::UString& _commandName, bool& _result);
 
53
                void commandUndo(const MyGUI::UString& _commandName, bool& _result);
 
54
                void commandRedo(const MyGUI::UString& _commandName, bool& _result);
 
55
 
 
56
                void clear();
 
57
                bool save();
 
58
                void load();
 
59
                void loadDropFile();
 
60
                void exportFile(const MyGUI::UString& _fileName);
 
61
 
 
62
                void showLoadWindow();
 
63
                void showSaveAsWindow();
 
64
                void showExportWindow();
 
65
 
 
66
                void updateCaption();
 
67
 
 
68
                bool checkCommand();
 
69
 
 
70
        private:
 
71
                MyGUI::UString mFileName;
 
72
                MyGUI::UString mDefaultFileName;
 
73
                MyGUI::UString mDropFileName;
 
74
 
 
75
                Control* mMainPane;
 
76
                OpenSaveFileDialog* mOpenSaveFileDialog;
 
77
                SettingsWindow* mSettingsWindow;
 
78
        };
 
79
 
 
80
}
 
81
 
 
82
#endif