mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
switch to gtkmm
This commit is contained in:
parent
058aabce26
commit
d3e894e0ac
28 changed files with 50 additions and 1413 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue