pcb 4.1.1
An interactive printed circuit board layout editor.

gui-dialog.c File Reference

#include "data.h"
#include "gui.h"
Include dependency graph for gui-dialog.c:

Go to the source code of this file.

Data Structures

struct  ghid_file_history_struct

Defines

#define NHIST   8

Typedefs

typedef struct
ghid_file_history_struct 
ghid_file_history

Functions

gchar * ghid_dialog_input (const char *prompt, const char *initial)
void ghid_dialog_about (void)
gint ghid_dialog_confirm_all (gchar *all_message)
void ghid_dialog_message (gchar *message)
gboolean ghid_dialog_confirm (gchar *message, gchar *cancelmsg, gchar *okmsg)
gint ghid_dialog_close_confirm ()
gchar * ghid_dialog_file_select_open (gchar *title, gchar **path, gchar *shortcuts)
GSList * ghid_dialog_file_select_multiple (gchar *title, gchar **path, gchar *shortcuts)
gchar * ghid_dialog_file_select_save (gchar *title, gchar **path, gchar *file, gchar *shortcuts)
gchar * ghid_fileselect (const char *title, const char *descr, char *default_file, char *default_ext, const char *history_tag, int flags)

Variables

static int n_recent_dirs = 0
static ghid_file_historyrecent_dirs = NULL

Define Documentation

#define NHIST   8

Definition at line 526 of file gui-dialog.c.

Referenced by ghid_fileselect().


Typedef Documentation


Function Documentation

void ghid_dialog_about ( void  )

Definition at line 92 of file gui-dialog.c.

References GetInfoString(), ghid_port, and GHidPort::top_window.

Referenced by About().

Here is the call graph for this function:

gboolean ghid_dialog_confirm ( gchar *  message,
gchar *  cancelmsg,
gchar *  okmsg 
)

Definition at line 158 of file gui-dialog.c.

References _, FALSE, ghid_port, GHidPort::top_window, TRUE, x, and y.

gint ghid_dialog_confirm_all ( gchar *  all_message)

Definition at line 109 of file gui-dialog.c.

References _, FALSE, ghid_framed_vbox(), ghid_port, GUI_DIALOG_RESPONSE_ALL, and GHidPort::top_window.

Here is the call graph for this function:

GSList* ghid_dialog_file_select_multiple ( gchar *  title,
gchar **  path,
gchar *  shortcuts 
)

Definition at line 375 of file gui-dialog.c.

References _, dup_string(), ghid_port, GHidPort::top_window, and TRUE.

Referenced by ImportGUI().

Here is the call graph for this function:

gchar* ghid_dialog_file_select_open ( gchar *  title,
gchar **  path,
gchar *  shortcuts 
)

Definition at line 268 of file gui-dialog.c.

References _, dup_string(), ghid_port, and GHidPort::top_window.

Referenced by config_color_load_cb(), and Load().

Here is the call graph for this function:

gchar* ghid_dialog_file_select_save ( gchar *  title,
gchar **  path,
gchar *  file,
gchar *  shortcuts 
)

Definition at line 458 of file gui-dialog.c.

References dup_string(), ghid_port, GHidPort::top_window, and TRUE.

Referenced by config_color_save_cb(), and Save().

Here is the call graph for this function:

gchar* ghid_dialog_input ( const char *  prompt,
const char *  initial 
)

Definition at line 44 of file gui-dialog.c.

References _, FALSE, ghid_port, GHidPort::top_window, and TRUE.

Referenced by ghid_fileselect(), and ghid_prompt_for().

void ghid_dialog_message ( gchar *  message)

Definition at line 141 of file gui-dialog.c.

References ghid_port, and GHidPort::top_window.

Referenced by config_color_save_cb().

gchar* ghid_fileselect ( const char *  title,
const char *  descr,
char *  default_file,
char *  default_ext,
const char *  history_tag,
int  flags 
)

Variable Documentation

int n_recent_dirs = 0 [static]

Definition at line 541 of file gui-dialog.c.

Referenced by ghid_fileselect().

ghid_file_history* recent_dirs = NULL [static]

Definition at line 542 of file gui-dialog.c.