summaryrefslogtreecommitdiff
path: root/source3/utils/regedit_dialog.h
diff options
context:
space:
mode:
authorC. Davis <cd.rattan@gmail.com>2012-08-10 21:56:58 -0700
committerMichael Adam <obnox@samba.org>2013-04-29 13:06:21 +0200
commit05dde2188fd81af17f1714aac35973df4b170354 (patch)
tree8e8f845abf0ce62e697c7535fd4c897cd2a4f248 /source3/utils/regedit_dialog.h
parent58f9e368c8366bba103ae9214638cc4c99fe4caf (diff)
downloadsamba-05dde2188fd81af17f1714aac35973df4b170354.tar.gz
samba-05dde2188fd81af17f1714aac35973df4b170354.tar.bz2
samba-05dde2188fd81af17f1714aac35973df4b170354.zip
regedit: Update dialog position on screen resize.
Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils/regedit_dialog.h')
-rw-r--r--source3/utils/regedit_dialog.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/utils/regedit_dialog.h b/source3/utils/regedit_dialog.h
index 970cb7c42a..edecbed576 100644
--- a/source3/utils/regedit_dialog.h
+++ b/source3/utils/regedit_dialog.h
@@ -31,13 +31,14 @@ struct dialog {
PANEL *panel;
MENU *choices;
ITEM **choice_items;
+ bool centered;
};
struct dialog *dialog_new(TALLOC_CTX *ctx, const char *title, int nlines,
int ncols, int y, int x);
struct dialog *dialog_center_new(TALLOC_CTX *ctx, const char *title, int nlines,
- int ncols, WINDOW *below);
+ int ncols);
struct dialog *dialog_choice_new(TALLOC_CTX *ctx, const char *title,
const char **choices, int nlines, int ncols,
@@ -45,7 +46,7 @@ struct dialog *dialog_choice_new(TALLOC_CTX *ctx, const char *title,
struct dialog *dialog_choice_center_new(TALLOC_CTX *ctx, const char *title,
const char **choices, int nlines,
- int ncols, WINDOW *below);
+ int ncols);
enum dialog_type {
DIA_ALERT,
@@ -58,18 +59,17 @@ enum dialog_selection {
};
int dialog_notice(TALLOC_CTX *ctx, enum dialog_type type,
- const char *title, WINDOW *below,
- const char *msg, ...);
+ const char *title, const char *msg, ...);
int dialog_input(TALLOC_CTX *ctx, char **output, const char *title,
- WINDOW *below, const char *msg, ...);
+ const char *msg, ...);
struct registry_key;
struct value_item;
WERROR dialog_edit_value(TALLOC_CTX *ctx, struct registry_key *key, uint32_t type,
- const struct value_item *vitem, WINDOW *below);
+ const struct value_item *vitem);
-int dialog_select_type(TALLOC_CTX *ctx, int *type, WINDOW *below);
+int dialog_select_type(TALLOC_CTX *ctx, int *type);
#endif