From 30e06ecfe0aaa38cfaef24838226dffdca07a0ff Mon Sep 17 00:00:00 2001 From: jcid Date: Mon, 19 May 2008 22:10:17 +0200 Subject: - Made CTRL-l focus the location bar instead of popping up a dialog. --- src/ui.hh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/ui.hh') diff --git a/src/ui.hh b/src/ui.hh index f917d23a..92614e9c 100644 --- a/src/ui.hh +++ b/src/ui.hh @@ -25,6 +25,12 @@ typedef enum { UI_SEARCH } UIButton; +typedef enum { + UI_NORMAL = 0, /* make sure it's compatible with bool */ + UI_HIDDEN = 1, + UI_TEMPORARILY_SHOW_PANELS +} UIPanelmode; + // Private class class NewProgressBox; @@ -50,7 +56,7 @@ class UI : public fltk::Window { int PanelSize, CuteColor, Small_Icons; int xpos, bw, bh, fh, lh, lbl; - bool Fullscreen; + UIPanelmode Panelmode; PackedGroup *make_toolbar(int tw, int th); PackedGroup *make_location(); @@ -79,6 +85,8 @@ public: void customize(int flags); void button_set_sens(UIButton btn, int sens); void paste_url(); + void set_panelmode(UIPanelmode mode); + UIPanelmode get_panelmode(); Widget *fullscreen_button() { return FullScreen; } void fullscreen_toggle() { FullScreen->do_callback(); } @@ -87,7 +95,7 @@ public: void panel_cb_i(); void color_change_cb_i(); void toggle_cb_i(); - void fullscreen_cb_i(); + void panelmode_cb_i(); void imageload_toggle(); }; -- cgit v1.2.3