ELinks 0.16.1.1
|
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "bfu/button.h"
#include "bfu/dialog.h"
#include "bfu/inpfield.h"
#include "bfu/inphist.h"
#include "bfu/msgbox.h"
#include "bfu/text.h"
#include "config/kbdbind.h"
#include "intl/charsets.h"
#include "intl/libintl.h"
#include "osdep/osdep.h"
#include "session/session.h"
#include "terminal/draw.h"
#include "terminal/kbd.h"
#include "terminal/mouse.h"
#include "terminal/terminal.h"
#include "terminal/window.h"
#include "util/color.h"
#include "util/memlist.h"
#include "util/memory.h"
Macros | |
#define | INPUTFIELD_HEIGHT 1 |
#define | INPUTFIELD_FLOATLABEL_PADDING 1 |
#define | INPUTFIELD_FLOAT_SEPARATOR ":" |
#define | INPUTFIELD_FLOAT_SEPARATOR_LEN 1 |
#define | INPUT_WIDGETS_COUNT 3 |
Functions | |
void | add_dlg_field_do (struct dialog *dlg, enum widget_type type, char *label, int min, int max, widget_handler_T *handler, int datalen, void *data, struct input_history *history, enum inpfield_flags flags) |
widget_handler_status_T | check_number (struct dialog_data *dlg_data, struct widget_data *widget_data) |
widget_handler_status_T | check_nonempty (struct dialog_data *dlg_data, struct widget_data *widget_data) |
void | dlg_format_field (struct dialog_data *dlg_data, struct widget_data *widget_data, int x, int *y, int w, int *rw, format_align_T align, int format_only) |
static widget_handler_status_T | input_field_cancel (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static widget_handler_status_T | input_field_ok (struct dialog_data *dlg_data, struct widget_data *widget_data) |
void | input_field (struct terminal *term, struct memory_list *ml, int intl, char *title, char *text, char *okbutton, char *cancelbutton, void *data, struct input_history *history, int l, const char *def, int min, int max, widget_handler_T *check, void(*fn)(void *, char *), void(*cancelfn)(void *)) |
void | input_dialog (struct terminal *term, struct memory_list *ml, char *title, char *text, void *data, struct input_history *history, int l, const char *def, int min, int max, widget_handler_T *check, void(*fn)(void *, char *), void(*cancelfn)(void *)) |
static widget_handler_status_T | display_field_do (struct dialog_data *dlg_data, struct widget_data *widget_data, int hide) |
static widget_handler_status_T | display_field (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static widget_handler_status_T | display_field_pass (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static widget_handler_status_T | init_field (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static int | field_prev_history (struct widget_data *widget_data) |
static int | field_next_history (struct widget_data *widget_data) |
static widget_handler_status_T | mouse_field (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static widget_handler_status_T | kbd_field (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static widget_handler_status_T | clear_field (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static void | input_line_layouter (struct dialog_data *dlg_data) |
static widget_handler_status_T | input_line_event_handler (struct dialog_data *dlg_data) |
void | input_field_line (struct session *ses, char *prompt, void *data, struct input_history *history, input_line_handler_T handler) |
Variables | |
const struct widget_ops | field_ops |
const struct widget_ops | field_pass_ops |
#define INPUT_WIDGETS_COUNT 3 |
#define INPUTFIELD_FLOAT_SEPARATOR ":" |
#define INPUTFIELD_FLOAT_SEPARATOR_LEN 1 |
#define INPUTFIELD_FLOATLABEL_PADDING 1 |
#define INPUTFIELD_HEIGHT 1 |
void add_dlg_field_do | ( | struct dialog * | dlg, |
enum widget_type | type, | ||
char * | label, | ||
int | min, | ||
int | max, | ||
widget_handler_T * | handler, | ||
int | datalen, | ||
void * | data, | ||
struct input_history * | history, | ||
enum inpfield_flags | flags ) |
widget_handler_status_T check_nonempty | ( | struct dialog_data * | dlg_data, |
struct widget_data * | widget_data ) |
widget_handler_status_T check_number | ( | struct dialog_data * | dlg_data, |
struct widget_data * | widget_data ) |
|
static |
|
static |
|
static |
|
static |
void dlg_format_field | ( | struct dialog_data * | dlg_data, |
struct widget_data * | widget_data, | ||
int | x, | ||
int * | y, | ||
int | w, | ||
int * | rw, | ||
format_align_T | align, | ||
int | format_only ) |
|
static |
|
static |
|
static |
void input_dialog | ( | struct terminal * | term, |
struct memory_list * | ml, | ||
char * | title, | ||
char * | text, | ||
void * | data, | ||
struct input_history * | history, | ||
int | l, | ||
const char * | def, | ||
int | min, | ||
int | max, | ||
widget_handler_T * | check, | ||
void(* | fn )(void *, char *), | ||
void(* | cancelfn )(void *) ) |
void input_field | ( | struct terminal * | term, |
struct memory_list * | ml, | ||
int | intl, | ||
char * | title, | ||
char * | text, | ||
char * | okbutton, | ||
char * | cancelbutton, | ||
void * | data, | ||
struct input_history * | history, | ||
int | l, | ||
const char * | def, | ||
int | min, | ||
int | max, | ||
widget_handler_T * | check, | ||
void(* | fn )(void *, char *), | ||
void(* | cancelfn )(void *) ) |
|
static |
void input_field_line | ( | struct session * | ses, |
char * | prompt, | ||
void * | data, | ||
struct input_history * | history, | ||
input_line_handler_T | handler ) |
|
static |
|
static |
|
static |
|
static |
|
static |
const struct widget_ops field_ops |
const struct widget_ops field_pass_ops |