| 1 | // SPDX-FileCopyrightText: 2009 Ingo Ruhnke <[email protected]> |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | #ifndef HEADER_JSTEST_GTK_MAIN_HPP |
| 5 | #define HEADER_JSTEST_GTK_MAIN_HPP |
| 6 | |
| 7 | #include <gtkmm.h> |
| 8 | |
| 9 | extern bool m_verbose; |
| 10 | |
| 11 | class Main : public Gtk::Application |
| 12 | { |
| 13 | private: |
| 14 | static Main* current_; |
| 15 | public: |
| 16 | static Main* current() { return current_; } |
| 17 | static Glib::RefPtr<Main> create(); |
| 18 | |
| 19 | private: |
| 20 | std::string datadir; |
| 21 | bool m_simple_ui; |
| 22 | |
| 23 | public: |
| 24 | Main(); |
| 25 | ~Main(); |
| 26 | |
| 27 | int run(int argc, char** argv); |
| 28 | |
| 29 | std::string get_data_directory() const { return datadir; } |
| 30 | }; |
| 31 | |
| 32 | #endif |
| 33 | |
| 34 | /* EOF */ |