-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
990 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
#include <gtkmm.h> | ||
#include "Game24.hh" | ||
|
||
class Game24Win : public Gtk::Window | ||
{ | ||
public: | ||
static Game24Win *create(); | ||
Game24Win(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &ref_Glade); | ||
|
||
private: | ||
// Main GtkBuilder | ||
Glib::RefPtr<Gtk::Builder> ref_builder; | ||
|
||
// 24-Game Class | ||
Game24 main_game; | ||
int pos; | ||
bool focused, winned; | ||
Glib::ustring tmp; | ||
|
||
// Child widgets | ||
Gtk::Entry *entry_ans; | ||
Gtk::Label *label_numbers; | ||
Gtk::Button *btns[16], *btnstart, *btnnext, *btncheck, *btnclear, *btnexit; | ||
|
||
// Signal Handlers | ||
void btns_clicked(Gtk::Button *button); | ||
void btnstart_clicked(); | ||
void btnnext_clicked(); | ||
void btncheck_clicked(); | ||
void btnclear_clicked(); | ||
void entry_ans_focus(); | ||
}; |
Oops, something went wrong.