2024-10-29 17:44:21 +01:00
|
|
|
#ifndef LEARNGTK4_APP_WIN_2_BACK_HPP
|
|
|
|
#define LEARNGTK4_APP_WIN_2_BACK_HPP
|
|
|
|
|
2024-10-29 18:00:04 +01:00
|
|
|
#include <gtkmm/application.h>
|
|
|
|
#include <glibmm/refptr.h>
|
2024-10-29 17:44:21 +01:00
|
|
|
|
|
|
|
namespace learn_gtkmm4 {
|
|
|
|
class HelloWorld;
|
|
|
|
}
|
|
|
|
|
2024-10-29 20:23:15 +01:00
|
|
|
namespace Gtk {
|
2024-12-18 22:53:32 +01:00
|
|
|
class Builder;
|
2024-10-29 20:23:15 +01:00
|
|
|
class Switch;
|
|
|
|
}
|
|
|
|
|
2024-10-29 17:44:21 +01:00
|
|
|
namespace gui_to_app {
|
|
|
|
class AppWin2Back final : public Gtk::Application {
|
|
|
|
public:
|
|
|
|
~AppWin2Back() noexcept final = default;
|
|
|
|
|
|
|
|
static Glib::RefPtr<AppWin2Back> create();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
AppWin2Back();
|
|
|
|
|
|
|
|
void on_startup() final;
|
|
|
|
|
|
|
|
void on_activate() final;
|
|
|
|
|
|
|
|
private:
|
2024-10-29 22:51:14 +01:00
|
|
|
void on_quit() noexcept;
|
2024-10-29 18:00:04 +01:00
|
|
|
|
2024-12-18 22:53:32 +01:00
|
|
|
Glib::RefPtr<Gtk::Builder> app_builder;
|
2024-10-29 17:44:21 +01:00
|
|
|
learn_gtkmm4::HelloWorld *main_window{ nullptr };
|
2024-10-29 20:23:15 +01:00
|
|
|
Gtk::Switch *sword_switch{ nullptr };
|
|
|
|
Gtk::Switch *lance_switch{ nullptr };
|
|
|
|
Gtk::Switch *morgen_switch{ nullptr };
|
|
|
|
Gtk::Switch *bow_switch{ nullptr };
|
|
|
|
|
|
|
|
Gtk::Switch *chainmail_switch{ nullptr };
|
|
|
|
Gtk::Switch *cookpot_switch{ nullptr };
|
|
|
|
Gtk::Switch *pamphlet_switch{ nullptr };
|
|
|
|
Gtk::Switch *medkit_switch{ nullptr };
|
|
|
|
|
|
|
|
Gtk::Switch *fourche_switch{ nullptr };
|
|
|
|
Gtk::Switch *dagger_switch{ nullptr };
|
|
|
|
Gtk::Switch *rock_kit_switch{ nullptr };
|
|
|
|
Gtk::Switch *sack_switch{ nullptr };
|
2024-10-29 17:44:21 +01:00
|
|
|
};
|
|
|
|
} // gui_to_app
|
|
|
|
|
|
|
|
#endif //LEARNGTK4_APP_WIN_2_BACK_HPP
|