#include #include #include #include #include #include #include #include using namespace nall; #include using namespace ruby; #include using namespace phoenix; struct TopLevelWindow : Window { string name; string position; }; #include "interface.hpp" #include "config.hpp" #include "general/general.hpp" #include "settings/settings.hpp" #include "tools/tools.hpp" #include "input/input.hpp" #include "utility/utility.hpp" #include "cartridge/cartridge.hpp" #if defined(DEBUGGER) #include "debugger/debugger.hpp" #endif struct Application { Font proportionalFont; Font proportionalFontBold; Font monospaceFont; bool pause; bool quit; void main(int argc, char **argv); void addWindow(TopLevelWindow *window, const string &name, const string &position); Application(); private: array windows; configuration geometryConfig; void loadGeometry(); void saveGeometry(); }; extern Application application; struct Style { enum : unsigned { #if defined(PHOENIX_WINDOWS) ButtonHeight = 25, CheckBoxHeight = 15, ComboBoxHeight = 22, EditBoxHeight = 22, LabelHeight = 15, SliderHeight = 25, TextBoxHeight = 22, #elif defined(PHOENIX_GTK) ButtonHeight = 25, CheckBoxHeight = 15, ComboBoxHeight = 22, EditBoxHeight = 22, LabelHeight = 15, SliderHeight = 22, TextBoxHeight = 22, #elif defined(PHOENIX_QT) ButtonHeight = 25, CheckBoxHeight = 15, ComboBoxHeight = 22, EditBoxHeight = 22, LabelHeight = 15, SliderHeight = 22, TextBoxHeight = 22, #endif }; };