void CPlayer::init(const CSpiel* spiel, const int playernumber) { m_number = playernumber; for (int i = 0; i < STONE_COUNT_ALL_SHAPES; i++) { m_stone[i].init(i); } refresh_data(spiel); }
G_MODULE_EXPORT void clear_errors(GtkWidget *wiggy, gpointer data) { gtk_tree_selection_selected_foreach(sel ,do_clear_errors ,NULL); refresh_data(NULL); }
G_MODULE_EXPORT void rerun_nodes(GtkWidget *wiggy, gpointer data) { int bit=NODE_RRUN; gtk_tree_selection_selected_foreach(sel ,toggle_node_bits ,&bit); refresh_data(NULL); }
Dwarf::Dwarf(DFInstance *df, const uint &index, QObject *parent) : QObject(parent) , m_df(df) , m_total_xp(0) , m_index(index) , m_raw_profession(-1) , m_migration_wave(0) , m_current_job_id(-1) , m_squad_leader_id(-1) { read_settings(); refresh_data(); connect(DT, SIGNAL(settings_changed()), SLOT(read_settings())); // setup context actions m_actions.clear(); QAction *show_details = new QAction(tr("Show Details..."), this); connect(show_details, SIGNAL(triggered()), SLOT(show_details())); m_actions << show_details; QAction *zoom_to_dwarf = new QAction(tr("Zoom To Dwarf..."),this); connect(zoom_to_dwarf, SIGNAL(triggered()), SLOT(move_view_to())); m_actions << zoom_to_dwarf; }
G_MODULE_EXPORT void update_stats_callback(GtkWidget *wiggy, gpointer data) { refresh_data(NULL); }