This is the doxygen documentation for gtkboard.
.#include <string.h>#include <assert.h>#include <stdlib.h>#include "config.h"#include "ui.h"#include "menu.h"#include "move.h"#include "ui_common.h"#include "aaball.h"#include "board.h"Go to the source code of this file.
Defines | |
| #define | SB_MESSAGE_STRLEN 64 |
| #define | SB_SCORE_STRLEN 32 |
Functions | |
| void | sb_messagebar_message (gchar *) |
| void | sb_set_score (gchar *score) |
| void | menu_sensitize (int which, gboolean sens) |
| void | sb_set_turn_image () |
| void | sb_set_cursor () |
| void | menu_board_flip_cb () |
| void | menu_show_dialog_real (gchar *title, gchar *message, gboolean wrap) |
| void | menu_show_dialog (gchar *title, gchar *message) |
| Shows a dialog with given title and message. | |
| void | menu_show_dialog_wrap (gchar *title, gchar *message) |
| void | menu_pause_cb (GtkWidget *dialog) |
| void | menu_show_pause_dialog () |
| void | menu_show_about_dialog (gpointer data) |
| void | menu_show_begging_dialog (gpointer data) |
| void | menu_put_player () |
| void | menu_start_stop_game (gpointer data, guint what) |
| void | menu_put_player (gboolean first) |
| void | menu_put_game () |
| void | menu_load_file (GtkFileSelection *selector, gpointer user_data) |
| void | menu_set_player (gpointer *data, guint what, GtkWidget *widget) |
| void | menu_save_file_dialog () |
| void | menu_load_file_dialog () |
| void | menu_show_game_doc (gpointer data, guint which) |
| void | menu_start_game () |
| void | menu_set_game (gpointer data, guint which, GtkWidget *widget) |
| void | menu_set_delay_cb (gpointer data, guint delay, GtkWidget *widget) |
| void | menu_back_forw (gpointer data, guint what) |
| void | menu_set_eval_function () |
| This function is no longer used. Eval function should be set only from the command line. | |
| void | sb_error (char *msg, gboolean serious) |
| Inform user of an error. | |
| void | sb_message (char *msg, gboolean serious) |
| Show a message to the user. | |
| gchar* | sb_ftime (int temps) |
| Converts a time in milliseconds into human-parsable format. | |
| void | sb_reset_human_time () |
| int | sb_get_human_time () |
| void | menu_update () |
| void | sb_update () |
| gboolean | sb_update_periodic () |
Variables | |
| GtkWidget* | sb_message_label |
| GtkWidget * | sb_game_label |
| GtkWidget * | sb_score_label |
| GtkWidget * | sb_who_label |
| GtkWidget * | sb_player_label |
| GtkWidget * | sb_time_label |
| GtkWidget * | sb_turn_image |
| GtkWidget * | menu_main |
| GtkWidget* | sb_game_separator |
| GtkWidget * | sb_who_separator |
| GtkWidget * | sb_score_separator |
| GtkWidget * | sb_player_separator |
| GtkWidget * | sb_time_separator |
| GtkWidget * | sb_turn_separator |
| gchar | sb_message_str [SB_MESSAGE_STRLEN] = "" |
| gchar | sb_score_str [SB_SCORE_STRLEN] = "" |
| GtkItemFactory* | menu_factory = NULL |
| char* | menu_paths_sens_machine_thinking [] |
| char* | menu_paths_sens_no_game [] |
| char* | menu_paths_sens_no_back_forw [] |
| char* | menu_paths_sens_single_player [] |
| char* | menu_paths_sens_two_players [] |
| char* | menu_paths_sens_ui_stopped [] |
| char* | menu_paths_sens_machine_not_thinking [] |
| char* | menu_paths_sens_eval_function [] |
| GtkWidget* | menu_selector |
| int | sb_human_time = 0 |
| int | sb_last_msg_time = -1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 287 of file menu.c. Referenced by menu_show_pause_dialog(). |
|
|
Definition at line 445 of file menu.c. Referenced by gui_init(). |
|
|
|
|
|
Referenced by gui_init(), menu_load_file(), menu_start_stop_game(), and ui_start_game(). |
|
|
|
|
|
Definition at line 110 of file menu.c. Referenced by menu_update(). |
|
|
|
|
|
This function is no longer used. Eval function should be set only from the command line.
Definition at line 758 of file menu.c. Referenced by gui_init(), and ui_start_game(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shows a dialog with given title and message.
|
|
|
Definition at line 242 of file menu.c. Referenced by menu_show_dialog(), and menu_show_dialog_wrap(). |
|
|
Definition at line 281 of file menu.c. Referenced by menu_show_begging_dialog(). |
|
|
|
|
|
Definition at line 293 of file menu.c. Referenced by menu_start_stop_game(). |
|
|
Definition at line 625 of file menu.c. Referenced by gui_init(), and menu_set_game(). |
|
|
|
|
|
Definition at line 859 of file menu.c. Referenced by sb_update(). |
|
|
Inform user of an error.
|
|
|
Converts a time in milliseconds into human-parsable format.
|
|
|
|
|
|
Show a message to the user.
|
|
|
Definition at line 852 of file menu.c. Referenced by sb_error(). |
|
|
Definition at line 834 of file menu.c. Referenced by menu_start_stop_game(), and ui_terminate_game(). |
|
|
Definition at line 209 of file menu.c. Referenced by sb_update(). |
|
|
|
|
|
Definition at line 165 of file menu.c. Referenced by sb_update(). |
|
|
Definition at line 894 of file menu.c. Referenced by gui_init(), menu_back_forw(), menu_set_game(), menu_set_player(), menu_start_stop_game(), sb_messagebar_message(), sb_set_score(), ui_check_who_won(), ui_get_machine_move(), ui_make_human_move(), and ui_terminate_game(). |
|
|
|
|
|
|
|
|
|
|
|
Initial value:
{
} |
|
|
Initial value:
{
"/Move/Move Now",
} |
|
|
Initial value:
{
"/File/Load game",
"/File/Save game",
"/Game/Start",
"/Game/New",
"/Game/Select Game",
"/Settings",
"/Move/Back",
"/Move/Forward",
} |
|
|
Initial value:
{
"/Move/Back",
"/Move/Forward",
} |
|
|
Initial value:
{
"/Game/Start",
"/Game/Pause",
"/Game/New",
"/Game/Highscores",
"/Game/Zap Highscores",
"/File/Save game",
"/Move/Back",
"/Move/Forward",
"/Settings/Flip Board",
"/Settings/Player",
} |
|
|
Initial value:
{
"/Settings/Player",
"/Settings/Flip Board",
} |
|
|
Initial value:
{
"/Game/Highscores",
"/Game/Zap Highscores",
} |
|
|
Initial value:
{
"/Game/Pause",
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|