Switch to Gtk::Builder for all UI in GTK client (#3781)

* Move CSS definitions to resources

* Add Gtk::Builder helpers

* Switch StatsDialog to Gtk::Builder

* Switch RelocateDialog to Gtk::Builder

* Switch OptionsDialog to Gtk::Builder

* Switch MakeDialog to Gtk::Builder

* Switch FilterBar to Gtk::Builder

* Switch MainWindow to Gtk::Builder

* Switch MessageLogWindow to Gtk::Builder

* Switch DetailsDialog to Gtk::Builder

* Switch PrefsDialog to Gtk::Builder

* Fixup translatable strings

Since this branch was brewing for a while, changes happened in the meantime.
This commit is contained in:
Mike Gelfand
2022-09-08 01:25:04 +03:00
committed by GitHub
parent c000311b80
commit b41501eeb8
43 changed files with 7058 additions and 1691 deletions

View File

@@ -16,6 +16,12 @@ class Session;
class MainWindow : public Gtk::ApplicationWindow
{
public:
MainWindow(
BaseObjectType* cast_item,
Glib::RefPtr<Gtk::Builder> const& builder,
Gtk::Application& app,
Glib::RefPtr<Gio::ActionGroup> const& actions,
Glib::RefPtr<Session> const& core);
~MainWindow() override;
TR_DISABLE_COPY_MOVE(MainWindow)
@@ -30,9 +36,6 @@ public:
void set_busy(bool isBusy);
void refresh();
protected:
MainWindow(Gtk::Application& app, Glib::RefPtr<Gio::ActionGroup> const& actions, Glib::RefPtr<Session> const& core);
private:
class Impl;
std::unique_ptr<Impl> const impl_;