switch to gtkmm

This commit is contained in:
yggverse 2024-08-08 12:44:27 +03:00
parent 058aabce26
commit d3e894e0ac
28 changed files with 50 additions and 1413 deletions

View file

@ -1,53 +1,32 @@
#pragma once
#ifndef APP_BROWSER_H
#define APP_BROWSER_H
// Dependencies
#include "../main.h"
// Requirements
#include "browser/header.h"
#include "browser/container.h"
#include <gtkmm/window.h>
#include <gtkmm/headerbar.h>
#include <gtkmm/notebook.h>
namespace app
{
namespace browser
{
class Header;
class Container;
}
class Browser
class Browser : public Gtk::Window
{
public:
// GTK
GtkWidget *gtk;
// Dependencies
GtkApplication *app;
// Requirements
browser::Header *header;
browser::Container *container;
// Defaults
const char* TITLE = "Basic application";
const guint WIDTH = 640;
const guint HEIGHT = 480;
// Constructor
Browser(
GtkApplication *application
);
Browser();
private:
class Header : Gtk::HeaderBar
{
// Events
static void _shutdown(
GtkApplication *application
);
};
class Container : Gtk::Notebook
{
};
};
};
}
#endif
#endif // APP_BROWSER_H