ARB
Macros | Functions | Variables
AW_modal.cxx File Reference
#include <aw_window.hxx>
#include <aw_global.hxx>
#include <aw_file.hxx>
#include <aw_awar.hxx>
#include "aw_root.hxx"
#include "aw_question.hxx"
#include "aw_advice.hxx"
#include "aw_msg.hxx"
#include "aw_select.hxx"
#include "aw_window_Xm.hxx"
#include <arbdbt.h>
#include <arb_strarray.h>
#include <deque>
#include <string>
#include <algorithm>
Include dependency graph for AW_modal.cxx:

Go to the source code of this file.

Macros

#define AW_INPUT_AWAR   "tmp/input/string"
 
#define AW_INPUT_TITLE_AWAR   "tmp/input/title"
 
#define AW_FILE_SELECT_BASE   "tmp/file_select"
 
#define AW_FILE_SELECT_DIR_AWAR   AW_FILE_SELECT_BASE "/directory"
 
#define AW_FILE_SELECT_FILE_AWAR   AW_FILE_SELECT_BASE "/file_name"
 
#define AW_FILE_SELECT_FILTER_AWAR   AW_FILE_SELECT_BASE "/filter"
 
#define AW_FILE_SELECT_TITLE_AWAR   AW_FILE_SELECT_BASE "/title"
 
#define INPUT_SIZE   50
 
#define MAXBUTTONSPERLINE   5
 

Functions

void message_cb (AW_window *, int result)
 
unsigned aw_message_timer_listen_event (AW_root *, AW_window *aww)
 
static void create_input_awars (AW_root *aw_root)
 
static void create_fileSelection_awars (AW_root *aw_root)
 
static void input_history_insert (const char *str, bool front)
 
void input_history_cb (AW_window *aw, int mode)
 
void input_cb (AW_window *aw, int buttonNr)
 
void file_selection_cb (AW_window *aw, int ok_cancel_flag)
 
static AW_window_messagenew_input_window (AW_root *root, const char *title, const char *buttons)
 
charaw_input (const char *title, const char *prompt, const char *default_input)
 
charaw_input (const char *prompt, const char *default_input)
 
charaw_modal_file_selection (const char *title, const char *dir, const char *def_name, const char *suffix)
 

Variables

int aw_message_cb_result
 
static charaw_input_cb_result = NULp
 
static deque< stringinput_history
 

Macro Definition Documentation

#define AW_INPUT_AWAR   "tmp/input/string"
#define AW_INPUT_TITLE_AWAR   "tmp/input/title"

Definition at line 57 of file AW_modal.cxx.

Referenced by aw_input(), create_input_awars(), and new_input_window().

#define AW_FILE_SELECT_BASE   "tmp/file_select"

Definition at line 59 of file AW_modal.cxx.

Referenced by aw_modal_file_selection().

#define AW_FILE_SELECT_DIR_AWAR   AW_FILE_SELECT_BASE "/directory"

Definition at line 60 of file AW_modal.cxx.

Referenced by aw_modal_file_selection(), and create_fileSelection_awars().

#define AW_FILE_SELECT_FILE_AWAR   AW_FILE_SELECT_BASE "/file_name"
#define AW_FILE_SELECT_FILTER_AWAR   AW_FILE_SELECT_BASE "/filter"

Definition at line 62 of file AW_modal.cxx.

Referenced by aw_modal_file_selection(), and create_fileSelection_awars().

#define AW_FILE_SELECT_TITLE_AWAR   AW_FILE_SELECT_BASE "/title"

Definition at line 63 of file AW_modal.cxx.

Referenced by aw_modal_file_selection(), and create_fileSelection_awars().

#define INPUT_SIZE   50

Definition at line 173 of file AW_modal.cxx.

Referenced by aw_input(), and new_input_window().

#define MAXBUTTONSPERLINE   5

Referenced by new_input_window().

Function Documentation

void message_cb ( AW_window ,
int  result 
)

Definition at line 33 of file AW_modal.cxx.

References EXIT_FAILURE, and result.

Referenced by aw_question(), and AW_cb::run_callbacks().

unsigned aw_message_timer_listen_event ( AW_root ,
AW_window aww 
)

Definition at line 40 of file AW_modal.cxx.

References AW_MESSAGE_LISTEN_DELAY, fflush(), and AW_window::is_shown().

Referenced by aw_input(), aw_modal_file_selection(), and aw_question().

static void create_input_awars ( AW_root aw_root)
static

Definition at line 65 of file AW_modal.cxx.

References AW_INPUT_AWAR, AW_INPUT_TITLE_AWAR, AW_ROOT_DEFAULT, and AW_root::awar_string().

Referenced by aw_input().

static void create_fileSelection_awars ( AW_root aw_root)
static
static void input_history_insert ( const char str,
bool  front 
)
static

Definition at line 97 of file AW_modal.cxx.

References GBS_global_string(), and s.

Referenced by aw_input(), and input_history_cb().

void input_history_cb ( AW_window aw,
int  mode 
)
void input_cb ( AW_window aw,
int  buttonNr 
)
void file_selection_cb ( AW_window aw,
int  ok_cancel_flag 
)
static AW_window_message* new_input_window ( AW_root root,
const char title,
const char buttons 
)
static
char* aw_input ( const char title,
const char prompt,
const char default_input 
)
char* aw_input ( const char prompt,
const char default_input 
)

Definition at line 303 of file AW_modal.cxx.

References aw_input().

char* aw_modal_file_selection ( const char title,
const char dir,
const char def_name,
const char suffix 
)

Variable Documentation

int aw_message_cb_result

Definition at line 31 of file AW_modal.cxx.

Referenced by aw_question().

char* aw_input_cb_result = NULp
static

Definition at line 54 of file AW_modal.cxx.

Referenced by aw_input(), and aw_modal_file_selection().

deque<string> input_history
static

Definition at line 81 of file AW_modal.cxx.