* widget.h: Moved constants to the appropriate places (just
before the variable they will be used with). * widget.c: HISTORY_FILE_NAME was not needed in widget.h, so it has been made private to this file.
Этот коммит содержится в:
родитель
ab442fdeee
Коммит
d8e27971ae
@ -1,3 +1,10 @@
|
||||
2005-02-08 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* widget.h: Moved constants to the appropriate places (just
|
||||
before the variable they will be used with).
|
||||
* widget.c: HISTORY_FILE_NAME was not needed in widget.h,
|
||||
so it has been made private to this file.
|
||||
|
||||
2005-02-07 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* unixcompat.h: Emit warnings for the fallback case of the
|
||||
|
@ -44,6 +44,8 @@
|
||||
#include "wtools.h" /* For common_dialog_repaint() */
|
||||
#include "main.h" /* for `slow_terminal' */
|
||||
|
||||
#define HISTORY_FILE_NAME ".mc/history"
|
||||
|
||||
static int button_event (Gpm_Event *event, WButton *b);
|
||||
|
||||
int quote = 0;
|
||||
|
17
src/widget.h
17
src/widget.h
@ -3,17 +3,9 @@
|
||||
|
||||
#include "dialog.h" /* Widget */
|
||||
|
||||
#define C_BOOL 1
|
||||
#define C_CHANGE 2
|
||||
|
||||
/* Please note that the first element in all the widgets is a */
|
||||
/* widget variable of type Widget. We abuse this fact everywhere */
|
||||
|
||||
#define HIDDEN_BUTTON 0
|
||||
#define NARROW_BUTTON 1
|
||||
#define NORMAL_BUTTON 2
|
||||
#define DEFPUSH_BUTTON 3
|
||||
|
||||
/* button callback */
|
||||
typedef int (*bcback) (int);
|
||||
|
||||
@ -21,6 +13,11 @@ typedef struct WButton {
|
||||
Widget widget;
|
||||
int action; /* what to do when pressed */
|
||||
int selected; /* button state */
|
||||
|
||||
#define HIDDEN_BUTTON 0
|
||||
#define NARROW_BUTTON 1
|
||||
#define NORMAL_BUTTON 2
|
||||
#define DEFPUSH_BUTTON 3
|
||||
unsigned int flags; /* button flags */
|
||||
char *text; /* text of button */
|
||||
int hotkey; /* hot KEY */
|
||||
@ -39,6 +36,9 @@ typedef struct WRadio {
|
||||
|
||||
typedef struct WCheck {
|
||||
Widget widget;
|
||||
|
||||
#define C_BOOL 0x0001
|
||||
#define C_CHANGE 0x0002
|
||||
unsigned int state; /* check button state */
|
||||
char *text; /* text of check button */
|
||||
int hotkey; /* hot KEY */
|
||||
@ -77,7 +77,6 @@ typedef struct {
|
||||
|
||||
/* For history load-save functions */
|
||||
#define INPUT_LAST_TEXT ((char *) 2)
|
||||
#define HISTORY_FILE_NAME ".mc/history"
|
||||
|
||||
typedef struct {
|
||||
Widget widget;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user