improve ui
This commit is contained in:
parent
240a6dbfb6
commit
b2dd352688
@ -19,8 +19,8 @@ MainWindow::MainWindow()
|
||||
m_entry_bet(), m_timer_number(0) {
|
||||
set_title("Pupes Slots!");
|
||||
|
||||
m_grid.set_margin(12);
|
||||
set_child(m_grid);
|
||||
m_grid_quit.set_margin(12);
|
||||
set_child(m_grid_quit);
|
||||
|
||||
can_spin = true;
|
||||
|
||||
@ -36,21 +36,23 @@ MainWindow::MainWindow()
|
||||
slot_image2.set_size_request(128, 128);
|
||||
|
||||
// status rows
|
||||
m_grid.attach(m_label_spins, 0, 0);
|
||||
m_grid.attach(m_label_money, 0, 1);
|
||||
m_grid_main.attach(m_label_spins, 0, 0);
|
||||
m_grid_main.attach(m_label_money, 0, 1);
|
||||
|
||||
// row 2: slots
|
||||
m_grid.attach(slot_image0, 0, 2);
|
||||
m_grid.attach(slot_image1, 1, 2);
|
||||
m_grid.attach(slot_image2, 2, 2);
|
||||
m_grid_main.attach(slot_image0, 0, 2);
|
||||
m_grid_main.attach(slot_image1, 1, 2);
|
||||
m_grid_main.attach(slot_image2, 2, 2);
|
||||
|
||||
m_grid.attach(m_button_spin, 0, 3);
|
||||
m_grid.attach(m_label_bet, 1, 3);
|
||||
m_grid.attach(m_entry_bet, 2, 3);
|
||||
m_grid_main.attach(m_label_info, 1, 3);
|
||||
|
||||
m_grid.attach(m_button_reset, 1, 4);
|
||||
m_grid.attach_next_to(m_button_quit, m_button_spin, Gtk::PositionType::BOTTOM,
|
||||
2, 1);
|
||||
m_grid_main.attach(m_button_spin, 0, 4);
|
||||
m_grid_main.attach(m_label_bet, 1, 4);
|
||||
m_grid_main.attach(m_entry_bet, 2, 4);
|
||||
m_grid_main.attach(m_button_reset, 3, 4);
|
||||
|
||||
m_grid_quit.attach(m_grid_main, 0, 0);
|
||||
m_grid_quit.attach(m_button_quit, 0, 1);
|
||||
|
||||
m_button_spin.signal_clicked().connect(
|
||||
sigc::bind(sigc::mem_fun(*this, &MainWindow::on_button_spin)));
|
||||
|
@ -22,7 +22,7 @@ private:
|
||||
void randomise_slots(bool save_to_global, Glib::ustring *slot_status);
|
||||
|
||||
// Child widgets:
|
||||
Gtk::Grid m_grid;
|
||||
Gtk::Grid m_grid_quit, m_grid_main;
|
||||
Gtk::Label m_label_money, m_label_spins, m_label_info, m_label_bet;
|
||||
Gtk::Image slot_image0, slot_image1, slot_image2;
|
||||
Gtk::Button m_button_spin, m_button_reset, m_button_quit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user