[GTK3] Move GTK widgets into gtk3/widgets
This commit is contained in:
parent
c125083a45
commit
6ce3016719
2
Makefile
2
Makefile
@ -226,7 +226,7 @@ all: cocoa sdl tester libretro
|
|||||||
|
|
||||||
CORE_SOURCES := $(shell ls Core/*.c)
|
CORE_SOURCES := $(shell ls Core/*.c)
|
||||||
SDL_SOURCES := $(shell ls SDL/*.c) $(OPEN_DIALOG) SDL/audio/$(SDL_AUDIO_DRIVER).c
|
SDL_SOURCES := $(shell ls SDL/*.c) $(OPEN_DIALOG) SDL/audio/$(SDL_AUDIO_DRIVER).c
|
||||||
GTK3_SOURCES := $(shell ls gtk3/*.c) gtk3/sameboy-gtk3-resources.c SDL/audio/$(SDL_AUDIO_DRIVER).c
|
GTK3_SOURCES := $(shell ls gtk3/*.c gtk3/**/*.c) gtk3/sameboy-gtk3-resources.c SDL/audio/$(SDL_AUDIO_DRIVER).c
|
||||||
TESTER_SOURCES := $(shell ls Tester/*.c)
|
TESTER_SOURCES := $(shell ls Tester/*.c)
|
||||||
|
|
||||||
ifeq ($(PLATFORM),Darwin)
|
ifeq ($(PLATFORM),Darwin)
|
||||||
|
10
gtk3/main.c
10
gtk3/main.c
@ -12,11 +12,11 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
#include "main_window.h"
|
#include "widgets/console_window.h"
|
||||||
#include "console_window.h"
|
#include "widgets/main_window.h"
|
||||||
#include "preferences_window.h"
|
#include "widgets/preferences_window.h"
|
||||||
#include "vram_viewer_window.h"
|
#include "widgets/printer_window.h"
|
||||||
#include "printer_window.h"
|
#include "widgets/vram_viewer_window.h"
|
||||||
|
|
||||||
// used for audio and game controllers
|
// used for audio and game controllers
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
|
10
gtk3/types.h
10
gtk3/types.h
@ -2,11 +2,11 @@
|
|||||||
#define types_h
|
#define types_h
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "main_window.h"
|
#include "widgets/console_window.h"
|
||||||
#include "console_window.h"
|
#include "widgets/main_window.h"
|
||||||
#include "preferences_window.h"
|
#include "widgets/preferences_window.h"
|
||||||
#include "vram_viewer_window.h"
|
#include "widgets/printer_window.h"
|
||||||
#include "printer_window.h"
|
#include "widgets/vram_viewer_window.h"
|
||||||
|
|
||||||
typedef struct{
|
typedef struct{
|
||||||
int16_t x, y;
|
int16_t x, y;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include "console_window.h"
|
#include "console_window.h"
|
||||||
#include "util.h"
|
#include "../util.h"
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
struct Selection {
|
struct Selection {
|
||||||
gint start;
|
gint start;
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <Core/gb.h>
|
#include <Core/gb.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#define CONSOLE_WINDOW_TYPE (console_window_get_type())
|
#define CONSOLE_WINDOW_TYPE (console_window_get_type())
|
||||||
G_DECLARE_FINAL_TYPE(ConsoleWindow, console_window, SAMEBOY, CONSOLE_WINDOW, GtkWindow)
|
G_DECLARE_FINAL_TYPE(ConsoleWindow, console_window, SAMEBOY, CONSOLE_WINDOW, GtkWindow)
|
@ -1,7 +1,6 @@
|
|||||||
#include "gb_screen.h"
|
#include "gb_screen.h"
|
||||||
#include "config.h"
|
#include "../config.h"
|
||||||
#include "util.h"
|
#include "../util.h"
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
struct _GbScreen {
|
struct _GbScreen {
|
||||||
GtkBin parent;
|
GtkBin parent;
|
@ -5,7 +5,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <Core/gb.h>
|
#include <Core/gb.h>
|
||||||
#include "shader.h"
|
#include "../shader.h"
|
||||||
|
|
||||||
#define GB_SCREEN_TYPE (gb_screen_get_type())
|
#define GB_SCREEN_TYPE (gb_screen_get_type())
|
||||||
G_DECLARE_FINAL_TYPE(GbScreen, gb_screen, SAMEBOY, GB_SCREEN, GtkBin)
|
G_DECLARE_FINAL_TYPE(GbScreen, gb_screen, SAMEBOY, GB_SCREEN, GtkBin)
|
@ -1,8 +1,7 @@
|
|||||||
#include "main_menu.h"
|
#include "main_menu.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "util.h"
|
|
||||||
#include "gb_screen.h"
|
#include "gb_screen.h"
|
||||||
#include "check_menu_radio_group.h"
|
#include "../check_menu_radio_group.h"
|
||||||
|
|
||||||
struct _MainMenu {
|
struct _MainMenu {
|
||||||
GtkMenuBar parent_instance;
|
GtkMenuBar parent_instance;
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <Core/gb.h>
|
#include <Core/gb.h>
|
||||||
#include "shader.h"
|
|
||||||
|
|
||||||
#define MAIN_MENU_TYPE (main_menu_get_type())
|
#define MAIN_MENU_TYPE (main_menu_get_type())
|
||||||
G_DECLARE_FINAL_TYPE(MainMenu, main_menu, SAMEBOY, MAIN_MENU, GtkMenuBar)
|
G_DECLARE_FINAL_TYPE(MainMenu, main_menu, SAMEBOY, MAIN_MENU, GtkMenuBar)
|
@ -1,9 +1,6 @@
|
|||||||
#include "main_window.h"
|
#include "main_window.h"
|
||||||
#include <stdbool.h>
|
|
||||||
#include "util.h"
|
|
||||||
#include "gb_screen.h"
|
#include "gb_screen.h"
|
||||||
#include "main_menu.h"
|
#include "main_menu.h"
|
||||||
#include "check_menu_radio_group.h"
|
|
||||||
|
|
||||||
struct _MainWindow {
|
struct _MainWindow {
|
||||||
GtkApplicationWindowClass parent_class;
|
GtkApplicationWindowClass parent_class;
|
@ -1,9 +1,10 @@
|
|||||||
#ifndef main_window_h
|
#ifndef main_window_h
|
||||||
#define main_window_h
|
#define main_window_h
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <Core/gb.h>
|
#include <Core/gb.h>
|
||||||
#include "shader.h"
|
#include "../shader.h"
|
||||||
|
|
||||||
#define MAIN_WINDOW_TYPE (main_window_get_type())
|
#define MAIN_WINDOW_TYPE (main_window_get_type())
|
||||||
G_DECLARE_FINAL_TYPE(MainWindow, main_window, SAMEBOY, MAIN_WINDOW, GtkApplicationWindow)
|
G_DECLARE_FINAL_TYPE(MainWindow, main_window, SAMEBOY, MAIN_WINDOW, GtkApplicationWindow)
|
@ -1,6 +1,6 @@
|
|||||||
#include "preferences_window.h"
|
#include "preferences_window.h"
|
||||||
#include "config.h"
|
#include "../config.h"
|
||||||
#include "util.h"
|
#include "../util.h"
|
||||||
|
|
||||||
struct _PreferencesWindow {
|
struct _PreferencesWindow {
|
||||||
GtkWindowClass parent_class;
|
GtkWindowClass parent_class;
|
@ -1,6 +1,6 @@
|
|||||||
#include "printer_window.h"
|
#include "printer_window.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "util.h"
|
#include "../util.h"
|
||||||
|
|
||||||
struct _PrinterWindow {
|
struct _PrinterWindow {
|
||||||
GtkWindowClass parent_class;
|
GtkWindowClass parent_class;
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <Core/gb.h>
|
#include <Core/gb.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
struct PrinterData {
|
struct PrinterData {
|
||||||
uint32_t *image;
|
uint32_t *image;
|
@ -1,6 +1,7 @@
|
|||||||
#include "vram_viewer_window.h"
|
#include "vram_viewer_window.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "util.h"
|
#include "../types.h"
|
||||||
|
#include "../util.h"
|
||||||
|
|
||||||
#define tileset_buffer_length 256 * 192 * 4
|
#define tileset_buffer_length 256 * 192 * 4
|
||||||
#define tilemap_buffer_length 256 * 256 * 4
|
#define tilemap_buffer_length 256 * 256 * 4
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <Core/gb.h>
|
#include <Core/gb.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#define VRAM_VIEWER_WINDOW_TYPE (vram_viewer_window_get_type())
|
#define VRAM_VIEWER_WINDOW_TYPE (vram_viewer_window_get_type())
|
||||||
G_DECLARE_FINAL_TYPE(VramViewerWindow, vram_viewer_window, SAMEBOY, VRAM_VIEWER_WINDOW, GtkWindow)
|
G_DECLARE_FINAL_TYPE(VramViewerWindow, vram_viewer_window, SAMEBOY, VRAM_VIEWER_WINDOW, GtkWindow)
|
Loading…
Reference in New Issue
Block a user