Compare commits
No commits in common. "92db466083b1f0be0bede64fad692971ce18dcd2" and "87d2db22436178f2d9c8bc096959d5d38e23bf54" have entirely different histories.
92db466083
...
87d2db2243
3 changed files with 117 additions and 204 deletions
|
|
@ -4,9 +4,7 @@
|
||||||
#include <billy_objects.hpp>
|
#include <billy_objects.hpp>
|
||||||
|
|
||||||
#include <glibmm/miscutils.h>
|
#include <glibmm/miscutils.h>
|
||||||
#include <gtkmm/button.h>
|
#include <gtkmm/switch.h>
|
||||||
#include <gtkmm/label.h>
|
|
||||||
|
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
|
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
|
|
@ -17,7 +15,6 @@ namespace gui_to_app {
|
||||||
|
|
||||||
AppWin2Back::AppWin2Back() : Gtk::Application("org.billy_adventures.character_sheet", Flags::HANDLES_OPEN) {
|
AppWin2Back::AppWin2Back() : Gtk::Application("org.billy_adventures.character_sheet", Flags::HANDLES_OPEN) {
|
||||||
Glib::set_application_name("Billy's character sheet");
|
Glib::set_application_name("Billy's character sheet");
|
||||||
selection_buttons.reserve(signal_handlers.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppWin2Back::on_startup() {
|
void AppWin2Back::on_startup() {
|
||||||
|
|
@ -44,42 +41,45 @@ namespace gui_to_app {
|
||||||
return Glib::make_refptr_for_instance(new AppWin2Back());
|
return Glib::make_refptr_for_instance(new AppWin2Back());
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppWin2Back::SwitchSignalHelper::signal_handler() noexcept {
|
void AppWin2Back::on_activate() {
|
||||||
if (switch_ != nullptr && !on_stack) {
|
Application::on_activate();
|
||||||
if (switch_->get_active()) {
|
|
||||||
if (!app.insert_obj(obj)) {
|
|
||||||
on_stack = true;
|
|
||||||
switch_->set_active(false);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (!app.erase_obj(obj)) {
|
|
||||||
on_stack = true;
|
|
||||||
switch_->set_active(true);
|
|
||||||
spdlog::warn(
|
|
||||||
"Erasing object {} was not successful",
|
|
||||||
character::BillyObjects::billy_object_to_string(obj).data()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (on_stack) {
|
|
||||||
on_stack = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AppWin2Back::switches_procedure() {
|
app_builder = [this] -> Glib::RefPtr<Gtk::Builder> {
|
||||||
sword_switch = app_builder->get_widget<selection_button>("sword_button");
|
try {
|
||||||
lance_switch = app_builder->get_widget<selection_button>("lance_button");
|
return Gtk::Builder::create_from_file("window_ui.ui");
|
||||||
morgen_switch = app_builder->get_widget<selection_button>("morgenstern_button");
|
} catch (const std::exception &e) {
|
||||||
bow_switch = app_builder->get_widget<selection_button>("arc_button");
|
spdlog::critical("Error occurred while loading Window's UI: {}", e.what());
|
||||||
chainmail_switch = app_builder->get_widget<selection_button>("chainmail_button");
|
quit();
|
||||||
cookpot_switch = app_builder->get_widget<selection_button>("cookingpot_button");
|
return nullptr;
|
||||||
pamphlet_switch = app_builder->get_widget<selection_button>("pamphlet_tourist_button");
|
}
|
||||||
medkit_switch = app_builder->get_widget<selection_button>("medkit_button");
|
}();
|
||||||
fourche_switch = app_builder->get_widget<selection_button>("fourche_button");
|
if (!app_builder) {
|
||||||
dagger_switch = app_builder->get_widget<selection_button>("dagger_button");
|
spdlog::critical("Error while loading UI");
|
||||||
rock_kit_switch = app_builder->get_widget<selection_button>("rock_kit_button");
|
quit();
|
||||||
sack_switch = app_builder->get_widget<selection_button>("sack_button");
|
return;
|
||||||
|
}
|
||||||
|
main_window = Gtk::Builder::get_widget_derived<learn_gtkmm4::HelloWorld>(app_builder, "main_window");
|
||||||
|
if (main_window != nullptr) {
|
||||||
|
add_window(*main_window);
|
||||||
|
main_window->set_show_menubar(true);
|
||||||
|
main_window->set_visible(true);
|
||||||
|
} else {
|
||||||
|
spdlog::critical("Error while getting window from builder");
|
||||||
|
on_quit();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
sword_switch = app_builder->get_widget<Gtk::Switch>("sword_switch");
|
||||||
|
lance_switch = app_builder->get_widget<Gtk::Switch>("lance_switch");
|
||||||
|
morgen_switch = app_builder->get_widget<Gtk::Switch>("morgenstern_switch");
|
||||||
|
bow_switch = app_builder->get_widget<Gtk::Switch>("arc_switch");
|
||||||
|
chainmail_switch = app_builder->get_widget<Gtk::Switch>("chainmail_switch");
|
||||||
|
cookpot_switch = app_builder->get_widget<Gtk::Switch>("cookingpot_switch");
|
||||||
|
pamphlet_switch = app_builder->get_widget<Gtk::Switch>("pamphlet_tourist_switch");
|
||||||
|
medkit_switch = app_builder->get_widget<Gtk::Switch>("medkit_switch");
|
||||||
|
fourche_switch = app_builder->get_widget<Gtk::Switch>("fourche_switch");
|
||||||
|
dagger_switch = app_builder->get_widget<Gtk::Switch>("dagger_switch");
|
||||||
|
rock_kit_switch = app_builder->get_widget<Gtk::Switch>("rock_kit_switch");
|
||||||
|
sack_switch = app_builder->get_widget<Gtk::Switch>("sack_switch");
|
||||||
|
|
||||||
const auto test_result = ranges::to<std::vector<const char *> >(
|
const auto test_result = ranges::to<std::vector<const char *> >(
|
||||||
std::array{
|
std::array{
|
||||||
|
|
@ -106,9 +106,9 @@ namespace gui_to_app {
|
||||||
spdlog::critical(result);
|
spdlog::critical(result);
|
||||||
}
|
}
|
||||||
on_quit();
|
on_quit();
|
||||||
return true;
|
return;
|
||||||
}
|
}
|
||||||
|
// TODO: interaction avec la CharacterSheet
|
||||||
ranges::for_each(views::zip(std::array{
|
ranges::for_each(views::zip(std::array{
|
||||||
sword_switch,
|
sword_switch,
|
||||||
lance_switch,
|
lance_switch,
|
||||||
|
|
@ -124,53 +124,13 @@ namespace gui_to_app {
|
||||||
sack_switch,
|
sack_switch,
|
||||||
},
|
},
|
||||||
signal_handlers),
|
signal_handlers),
|
||||||
[this](const std::tuple<selection_button *, SwitchSignalHelper &> &vals) {
|
[](const std::tuple<Gtk::Switch *, SwitchSignalHelper &> &vals) {
|
||||||
const auto &[switch_val, signal_handle] = vals;
|
const auto &[switch_val, signal_handle] = vals;
|
||||||
signal_handle.switch_ = switch_val;
|
signal_handle.switch_ = switch_val;
|
||||||
selection_buttons.emplace(switch_val);
|
switch_val->signal_state_set().connect(
|
||||||
switch_val->signal_toggled().connect(
|
|
||||||
sigc::mem_fun(signal_handle, &SwitchSignalHelper::signal_handler),
|
sigc::mem_fun(signal_handle, &SwitchSignalHelper::signal_handler),
|
||||||
false);
|
false);
|
||||||
});
|
});
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AppWin2Back::on_activate() {
|
|
||||||
Application::on_activate();
|
|
||||||
|
|
||||||
app_builder = [] -> Glib::RefPtr<Gtk::Builder> {
|
|
||||||
try {
|
|
||||||
return Gtk::Builder::create_from_file("window_ui.ui");
|
|
||||||
} catch (const std::exception &e) {
|
|
||||||
spdlog::critical("Error occurred while loading Window's UI: {}", e.what());
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
}();
|
|
||||||
if (!app_builder) {
|
|
||||||
spdlog::critical("Error while loading UI");
|
|
||||||
quit();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
main_window = Gtk::Builder::get_widget_derived<learn_gtkmm4::HelloWorld>(app_builder, "main_window");
|
|
||||||
if (main_window != nullptr) {
|
|
||||||
add_window(*main_window);
|
|
||||||
main_window->set_show_menubar(true);
|
|
||||||
main_window->set_visible(true);
|
|
||||||
} else {
|
|
||||||
spdlog::critical("Error while getting window from builder");
|
|
||||||
on_quit();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (switches_procedure()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
debug_button = app_builder->get_widget<Gtk::Button>("debug_button");
|
|
||||||
hab_base = app_builder->get_widget<Gtk::Label>("habilete_label_base");
|
|
||||||
hab_carac = app_builder->get_widget<Gtk::Label>("habilete_label_carac");
|
|
||||||
hab_mat = app_builder->get_widget<Gtk::Label>("habilete_label_materiel");
|
|
||||||
hab_total = app_builder->get_widget<Gtk::Label>("habilete_label_total");
|
|
||||||
|
|
||||||
debug_button->signal_clicked().connect(sigc::mem_fun(*this, &AppWin2Back::debug_button_clicked), false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppWin2Back::on_quit() noexcept {
|
void AppWin2Back::on_quit() noexcept {
|
||||||
|
|
@ -185,19 +145,4 @@ namespace gui_to_app {
|
||||||
bool AppWin2Back::switch_signal_handler(const bool flag, const character::billyEnums &obj) noexcept {
|
bool AppWin2Back::switch_signal_handler(const bool flag, const character::billyEnums &obj) noexcept {
|
||||||
return flag ? gestionnaire.insert_object(sheet, obj) : !gestionnaire.erase_object(sheet, obj);
|
return flag ? gestionnaire.insert_object(sheet, obj) : !gestionnaire.erase_object(sheet, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppWin2Back::debug_button_clicked() const noexcept {
|
|
||||||
spdlog::info("Display objects");
|
|
||||||
for (const auto &obj: sheet.get_objects() | views::values) {
|
|
||||||
spdlog::info("Object: {}", obj->to_string());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AppWin2Back::insert_obj(const character::billyEnums &obj) noexcept {
|
|
||||||
return gestionnaire.insert_object(sheet, obj);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AppWin2Back::erase_obj(const character::billyEnums &obj) noexcept {
|
|
||||||
return gestionnaire.erase_object(sheet, obj);
|
|
||||||
}
|
|
||||||
} // gui_to_app
|
} // gui_to_app
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@
|
||||||
|
|
||||||
#include <glibmm/refptr.h>
|
#include <glibmm/refptr.h>
|
||||||
#include <gtkmm/application.h>
|
#include <gtkmm/application.h>
|
||||||
#include <gtkmm/checkbutton.h>
|
|
||||||
|
|
||||||
#include <billy_objects.hpp>
|
#include <billy_objects.hpp>
|
||||||
#include <character_sheet.hpp>
|
#include <character_sheet.hpp>
|
||||||
|
#include <gtkmm/switch.h>
|
||||||
|
|
||||||
namespace learn_gtkmm4 {
|
namespace learn_gtkmm4 {
|
||||||
class HelloWorld;
|
class HelloWorld;
|
||||||
|
|
@ -16,8 +16,7 @@ namespace learn_gtkmm4 {
|
||||||
|
|
||||||
namespace Gtk {
|
namespace Gtk {
|
||||||
class Builder;
|
class Builder;
|
||||||
class Label;
|
class Switch;
|
||||||
class Button;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace gui_to_app {
|
namespace gui_to_app {
|
||||||
|
|
@ -35,60 +34,39 @@ namespace gui_to_app {
|
||||||
void on_activate() final;
|
void on_activate() final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using selection_button = Gtk::CheckButton;
|
|
||||||
using buttons_obj_container = std::unordered_set<selection_button *>;
|
|
||||||
|
|
||||||
|
|
||||||
struct SwitchSignalHelper {
|
struct SwitchSignalHelper {
|
||||||
AppWin2Back &app;
|
AppWin2Back &app;
|
||||||
const character::billyEnums obj;
|
const character::billyEnums obj;
|
||||||
selection_button *switch_{ nullptr };
|
Gtk::Switch *switch_{ nullptr };
|
||||||
bool on_stack{ false };
|
|
||||||
|
|
||||||
void signal_handler() noexcept;
|
[[nodiscard]] bool signal_handler(const bool flag) const noexcept {
|
||||||
|
switch_->set_state(app.switch_signal_handler(flag, obj));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
friend struct SwitchSignalHelper;
|
friend struct SwitchSignalHelper;
|
||||||
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
* @return true: failed, false: success
|
|
||||||
*/
|
|
||||||
bool switches_procedure();
|
|
||||||
|
|
||||||
void on_quit() noexcept;
|
void on_quit() noexcept;
|
||||||
|
|
||||||
bool switch_signal_handler(bool flag, const character::billyEnums &obj) noexcept;
|
bool switch_signal_handler(bool flag, const character::billyEnums &obj) noexcept;
|
||||||
|
|
||||||
void debug_button_clicked() const noexcept;
|
|
||||||
|
|
||||||
bool insert_obj(const character::billyEnums &obj) noexcept;
|
|
||||||
|
|
||||||
bool erase_obj(const character::billyEnums &obj) noexcept;
|
|
||||||
|
|
||||||
Glib::RefPtr<Gtk::Builder> app_builder;
|
Glib::RefPtr<Gtk::Builder> app_builder;
|
||||||
learn_gtkmm4::HelloWorld *main_window{ nullptr };
|
learn_gtkmm4::HelloWorld *main_window{ nullptr };
|
||||||
selection_button *sword_switch{ nullptr };
|
Gtk::Switch *sword_switch{ nullptr };
|
||||||
selection_button *lance_switch{ nullptr };
|
Gtk::Switch *lance_switch{ nullptr };
|
||||||
selection_button *morgen_switch{ nullptr };
|
Gtk::Switch *morgen_switch{ nullptr };
|
||||||
selection_button *bow_switch{ nullptr };
|
Gtk::Switch *bow_switch{ nullptr };
|
||||||
|
|
||||||
selection_button *chainmail_switch{ nullptr };
|
Gtk::Switch *chainmail_switch{ nullptr };
|
||||||
selection_button *cookpot_switch{ nullptr };
|
Gtk::Switch *cookpot_switch{ nullptr };
|
||||||
selection_button *pamphlet_switch{ nullptr };
|
Gtk::Switch *pamphlet_switch{ nullptr };
|
||||||
selection_button *medkit_switch{ nullptr };
|
Gtk::Switch *medkit_switch{ nullptr };
|
||||||
|
|
||||||
selection_button *fourche_switch{ nullptr };
|
Gtk::Switch *fourche_switch{ nullptr };
|
||||||
selection_button *dagger_switch{ nullptr };
|
Gtk::Switch *dagger_switch{ nullptr };
|
||||||
selection_button *rock_kit_switch{ nullptr };
|
Gtk::Switch *rock_kit_switch{ nullptr };
|
||||||
selection_button *sack_switch{ nullptr };
|
Gtk::Switch *sack_switch{ nullptr };
|
||||||
|
|
||||||
Gtk::Label *hab_base{ nullptr };
|
|
||||||
Gtk::Label *hab_carac{ nullptr };
|
|
||||||
Gtk::Label *hab_mat{ nullptr };
|
|
||||||
Gtk::Label *hab_total{ nullptr };
|
|
||||||
|
|
||||||
Gtk::Button *debug_button{ nullptr };
|
|
||||||
|
|
||||||
std::array<SwitchSignalHelper, 12> signal_handlers{
|
std::array<SwitchSignalHelper, 12> signal_handlers{
|
||||||
SwitchSignalHelper{ .app = *this, .obj = character::weapons::Sword },
|
SwitchSignalHelper{ .app = *this, .obj = character::weapons::Sword },
|
||||||
|
|
@ -107,8 +85,6 @@ namespace gui_to_app {
|
||||||
SwitchSignalHelper{ .app = *this, .obj = character::tools::SackOfGrain },
|
SwitchSignalHelper{ .app = *this, .obj = character::tools::SackOfGrain },
|
||||||
};
|
};
|
||||||
|
|
||||||
buttons_obj_container selection_buttons;
|
|
||||||
|
|
||||||
character::BillyObjects gestionnaire{};
|
character::BillyObjects gestionnaire{};
|
||||||
character::CharacterSheet sheet{};
|
character::CharacterSheet sheet{};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
122
window_ui.ui
122
window_ui.ui
|
|
@ -1,7 +1,5 @@
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Created with Cambalache 0.96.3 -->
|
|
||||||
<interface>
|
<interface>
|
||||||
<!-- interface-name window_ui.ui -->
|
|
||||||
<requires lib="gtk" version="4.6"/>
|
<requires lib="gtk" version="4.6"/>
|
||||||
<object class="GtkApplicationWindow" id="main_window">
|
<object class="GtkApplicationWindow" id="main_window">
|
||||||
<property name="default-height">500</property>
|
<property name="default-height">500</property>
|
||||||
|
|
@ -19,7 +17,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="label" translatable="yes">HABILETÉ</property>
|
<property name="label" translatable="1">HABILETÉ</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">0</property>
|
<property name="row">0</property>
|
||||||
|
|
@ -53,7 +51,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Carac.</property>
|
<property name="label" translatable="1">Carac.</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">1</property>
|
<property name="row">1</property>
|
||||||
|
|
@ -72,7 +70,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Matériel</property>
|
<property name="label" translatable="1">Matériel</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">2</property>
|
<property name="row">2</property>
|
||||||
|
|
@ -124,7 +122,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="label" translatable="yes">ENDURANCE</property>
|
<property name="label" translatable="1">ENDURANCE</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">0</property>
|
<property name="row">0</property>
|
||||||
|
|
@ -158,7 +156,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Carac.</property>
|
<property name="label" translatable="1">Carac.</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">1</property>
|
<property name="row">1</property>
|
||||||
|
|
@ -177,7 +175,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Matériel</property>
|
<property name="label" translatable="1">Matériel</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">2</property>
|
<property name="row">2</property>
|
||||||
|
|
@ -231,7 +229,7 @@
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="hexpand">1</property>
|
<property name="hexpand">1</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="label" translatable="yes">MATÉRIEL</property>
|
<property name="label" translatable="1">MATÉRIEL</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">0</property>
|
<property name="row">0</property>
|
||||||
|
|
@ -244,7 +242,7 @@
|
||||||
<object class="GtkListBoxRow">
|
<object class="GtkListBoxRow">
|
||||||
<property name="child">
|
<property name="child">
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Armes</property>
|
<property name="label" translatable="1">Armes</property>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -256,13 +254,13 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="justify">fill</property>
|
<property name="justify">fill</property>
|
||||||
<property name="label" translatable="yes">Épée</property>
|
<property name="label" translatable="1">Épée</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="sword_button">
|
<object class="GtkSwitch" id="sword_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -275,13 +273,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Lance</property>
|
<property name="label" translatable="1">Lance</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="lance_button">
|
<object class="GtkSwitch" id="lance_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -294,13 +292,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Morgenstern</property>
|
<property name="label" translatable="1">Morgenstern</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="morgenstern_button">
|
<object class="GtkSwitch" id="morgenstern_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -313,13 +311,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Arc</property>
|
<property name="label" translatable="1">Arc</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="arc_button">
|
<object class="GtkSwitch" id="arc_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -330,7 +328,7 @@
|
||||||
<object class="GtkListBoxRow">
|
<object class="GtkListBoxRow">
|
||||||
<property name="child">
|
<property name="child">
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Équipements</property>
|
<property name="label" translatable="1">Équipements</property>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -341,13 +339,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Cote de maille</property>
|
<property name="label" translatable="1">Cote de maille</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="chainmail_button">
|
<object class="GtkSwitch" id="chainmail_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -360,13 +358,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Faitout cuisine</property>
|
<property name="label" translatable="1">Faitout cuisine</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="cookingpot_button">
|
<object class="GtkSwitch" id="cookingpot_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -379,13 +377,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Guide touristique</property>
|
<property name="label" translatable="1">Guide touristique</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="pamphlet_tourist_button">
|
<object class="GtkSwitch" id="pamphlet_tourist_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -398,13 +396,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Trousse de soin</property>
|
<property name="label" translatable="1">Trousse de soin</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="medkit_button">
|
<object class="GtkSwitch" id="medkit_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -415,7 +413,7 @@
|
||||||
<object class="GtkListBoxRow">
|
<object class="GtkListBoxRow">
|
||||||
<property name="child">
|
<property name="child">
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Outils</property>
|
<property name="label" translatable="1">Outils</property>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -426,13 +424,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Fourche</property>
|
<property name="label" translatable="1">Fourche</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="fourche_button">
|
<object class="GtkSwitch" id="fourche_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -445,13 +443,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Dague</property>
|
<property name="label" translatable="1">Dague</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="dagger_button">
|
<object class="GtkSwitch" id="dagger_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -464,13 +462,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Kit d'escalade</property>
|
<property name="label" translatable="1">Kit d'escalade</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="rock_kit_button">
|
<object class="GtkSwitch" id="rock_kit_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -483,13 +481,13 @@
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Bourse de graines</property>
|
<property name="label" translatable="1">Bourse de graines</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="sack_button">
|
<object class="GtkSwitch" id="sack_switch">
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">1</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -514,7 +512,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="label" translatable="yes">ADRESSE</property>
|
<property name="label" translatable="1">ADRESSE</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">0</property>
|
<property name="row">0</property>
|
||||||
|
|
@ -548,7 +546,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Carac.</property>
|
<property name="label" translatable="1">Carac.</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">1</property>
|
<property name="row">1</property>
|
||||||
|
|
@ -567,7 +565,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Matériel</property>
|
<property name="label" translatable="1">Matériel</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">2</property>
|
<property name="row">2</property>
|
||||||
|
|
@ -619,7 +617,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="label" translatable="yes">CHANCE</property>
|
<property name="label" translatable="1">CHANCE</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">0</property>
|
<property name="row">0</property>
|
||||||
|
|
@ -653,7 +651,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Carac.</property>
|
<property name="label" translatable="1">Carac.</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">1</property>
|
<property name="row">1</property>
|
||||||
|
|
@ -672,7 +670,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Matériel</property>
|
<property name="label" translatable="1">Matériel</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">2</property>
|
<property name="row">2</property>
|
||||||
|
|
@ -719,12 +717,6 @@
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkButton" id="debug_button">
|
|
||||||
<property name="halign">center</property>
|
|
||||||
<property name="label">Print Sheet</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
|
@ -735,7 +727,7 @@
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="hexpand">1</property>
|
<property name="hexpand">1</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="label" translatable="yes">STAT. SECONDAIRES</property>
|
<property name="label" translatable="1">STAT. SECONDAIRES</property>
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
|
|
@ -755,7 +747,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">center</property>
|
<property name="halign">center</property>
|
||||||
<property name="label" translatable="yes">Dégâts</property>
|
<property name="label" translatable="1">Dégâts</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">0</property>
|
<property name="row">0</property>
|
||||||
|
|
@ -785,7 +777,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="halign">center</property>
|
<property name="halign">center</property>
|
||||||
<property name="label" translatable="yes">Armure</property>
|
<property name="label" translatable="1">Armure</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">0</property>
|
<property name="row">0</property>
|
||||||
|
|
@ -813,7 +805,7 @@
|
||||||
<object class="GtkGrid">
|
<object class="GtkGrid">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Critique</property>
|
<property name="label" translatable="1">Critique</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
<property name="row">0</property>
|
<property name="row">0</property>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue