Crossfire Client, Branches  R11627
help.c File Reference
#include <gtk/gtk.h>
#include "client-types.h"
#include "../common/p_cmd.h"
+ Include dependency graph for help.c:

Go to the source code of this file.

Macros

#define assumed_wrap   120
 
#define CLIENTHELP_LONG_LIST
 
#define COLOSSAL_BUF   8192
 
#define LINE(x)   strncpy(tmp_buf, out_buf, COLOSSAL_BUF - 1); snprintf(out_buf, COLOSSAL_BUF - 1, "%s%s\n", tmp_buf, x);
 

Functions

static void chelp_entry_callback (GtkWidget *cargo_cult_ignored, GtkWidget *topic_entry)
 
void chelpdialog (GtkWidget *widget)
 
static void replace_text (const char *new_text)
 
static void set_default_text (void)
 

Variables

static GtkWidget * chelptext = NULL
 
static GtkWidget * gtkwin_chelp = NULL
 

Macro Definition Documentation

#define assumed_wrap   120

Definition at line 38 of file help.c.

Referenced by set_default_text().

#define CLIENTHELP_LONG_LIST

Definition at line 36 of file help.c.

#define COLOSSAL_BUF   8192

Definition at line 39 of file help.c.

Referenced by chelp_entry_callback(), and set_default_text().

#define LINE (   x)    strncpy(tmp_buf, out_buf, COLOSSAL_BUF - 1); snprintf(out_buf, COLOSSAL_BUF - 1, "%s%s\n", tmp_buf, x);

Referenced by set_default_text().

Function Documentation

static void chelp_entry_callback ( GtkWidget *  cargo_cult_ignored,
GtkWidget *  topic_entry 
)
static

Definition at line 132 of file help.c.

References ConsoleCommand::cat, COLOSSAL_BUF, ConsoleCommand::desc, find_command(), get_category_name(), ConsoleCommand::helpfunc, MAX_BUF, ConsoleCommand::name, replace_text(), and set_default_text().

Referenced by chelpdialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void chelpdialog ( GtkWidget *  widget)

Definition at line 182 of file help.c.

References chelp_entry_callback(), chelptext, FALSE, gtkwin_chelp, set_default_text(), and TRUE.

Referenced by get_menu_display().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void replace_text ( const char *  new_text)
static

Definition at line 30 of file help.c.

References chelptext.

Referenced by chelp_entry_callback(), and set_default_text().

+ Here is the caller graph for this function:

static void set_default_text ( void  )
static

Definition at line 42 of file help.c.

References assumed_wrap, ConsoleCommand::cat, COLOSSAL_BUF, COMM_CAT_MISC, ConsoleCommand::desc, get_cat_sorted_commands(), get_category_name(), get_num_commands(), LINE, MAX_BUF, ConsoleCommand::name, and replace_text().

Referenced by chelp_entry_callback(), and chelpdialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

GtkWidget* chelptext = NULL
static

Definition at line 28 of file help.c.

Referenced by chelpdialog(), and replace_text().

GtkWidget* gtkwin_chelp = NULL
static

Definition at line 180 of file help.c.

Referenced by chelpdialog().