dillo
3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
![]() ![]() |
#include <ui.hh>
Public Member Functions | |
UI (int x, int y, int w, int h, const char *label=0, const UI *cur_ui=NULL) | |
~UI () | |
int | handle (int event) |
const char * | get_location () |
void | set_location (const char *str) |
void | focus_location () |
void | focus_main () |
void | set_status (const char *str) |
void | set_page_prog (size_t nbytes, int cmd) |
void | set_img_prog (int n_img, int t_img, int cmd) |
void | set_bug_prog (int n_bug) |
void | set_render_layout (Fl_Group *nw) |
void | customize () |
void | button_set_sens (UIButton btn, int sens) |
void | paste_url () |
int | get_panelsize () |
int | get_smallicons () |
void | change_panel (int new_size, int small_icons) |
void | findbar_toggle (bool add) |
void | panels_toggle () |
CustTabs * | tabs () |
void | tabs (CustTabs *tabs) |
bool | temporaryPanels () |
void | temporaryPanels (bool val) |
void | color_change_cb_i () |
void | toggle_cb_i () |
![]() | |
CustGroupVertical (int x, int y, int w, int h, const char *l=0) | |
void | rearrange () |
Private Member Functions | |
CustButton * | make_button (const char *label, Fl_Image *img, Fl_Image *deimg, int b_n, int start=0) |
void | make_toolbar (int tw, int th) |
void | make_location (int ww) |
void | make_progress_bars (int wide, int thin_up) |
void | make_menubar (int x, int y, int w, int h) |
Fl_Widget * | make_filemenu_button () |
void | make_panel (int ww) |
void | make_status_bar (int ww, int wh) |
Private Attributes | |
CustTabs * | Tabs |
CustGroupVertical * | TopGroup |
CustButton * | Back |
CustButton * | Forw |
CustButton * | Home |
CustButton * | Reload |
CustButton * | Save |
CustButton * | Stop |
CustButton * | Bookmarks |
CustButton * | Tools |
CustButton * | Clear |
CustButton * | Search |
CustButton * | Help |
CustButton * | BugMeter |
CustButton * | FileButton |
CustGroupHorizontal * | LocBar |
CustGroupHorizontal * | NavBar |
CustGroupHorizontal * | StatusBar |
Fl_Input * | Location |
CustProgressBox * | PProg |
CustProgressBox * | IProg |
Fl_Group * | Panel |
Fl_Group * | Main |
Fl_Group * | LocationGroup |
Fl_Output * | StatusOutput |
Findbar * | FindBar |
int | MainIdx |
int | PanelSize |
int | Small_Icons |
int | p_xpos |
int | p_ypos |
int | bw |
int | bh |
int | mh |
int | lh |
int | nh |
int | fh |
int | sh |
int | pw |
int | lbl |
bool | PanelTemporary |
UIPanelmode | Panelmode |
UI::UI | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
const char * | label = 0 , |
||
const UI * | cur_ui = NULL |
||
) |
Definition at line 648 of file ui.cc.
References customize(), fh, FindBar, DilloPrefs::fullwindow_start, LocBar, Main, MainIdx, make_panel(), make_status_bar(), NavBar, DilloPrefs::panel_size, Panelmode, panels_toggle(), PanelSize, PanelTemporary, prefs, CustGroupVertical::rearrange(), DilloPrefs::small_icons, Small_Icons, StatusBar, Tabs, TopGroup, UI_HIDDEN, and UI_NORMAL.
void UI::button_set_sens | ( | UIButton | btn, |
int | sens | ||
) |
void UI::change_panel | ( | int | new_size, |
int | small_icons | ||
) |
Definition at line 972 of file ui.cc.
References a_UIcmd_get_bw_by_widget(), a_UIcmd_set_buttons_sens(), customize(), dFree(), dStrdup(), Location, LocBar, make_panel(), NavBar, PanelSize, CustGroupVertical::rearrange(), small_icons, Small_Icons, and TopGroup.
Referenced by Menu_panel_change_cb().
void UI::color_change_cb_i | ( | ) |
void UI::customize | ( | ) |
Definition at line 932 of file ui.cc.
References Back, Bookmarks, Clear, Forw, Help, Home, IProg, Location, LocBar, NavBar, PProg, prefs, CustGroupHorizontal::rearrange(), Reload, Save, Search, DilloPrefs::show_back, DilloPrefs::show_bookmarks, DilloPrefs::show_clear_url, DilloPrefs::show_forw, DilloPrefs::show_help, DilloPrefs::show_home, DilloPrefs::show_progress_box, DilloPrefs::show_reload, DilloPrefs::show_save, DilloPrefs::show_search, DilloPrefs::show_stop, DilloPrefs::show_tools, DilloPrefs::show_url, Stop, and Tools.
Referenced by change_panel(), and UI().
void UI::findbar_toggle | ( | bool | add | ) |
Definition at line 1046 of file ui.cc.
References a_UIcmd_findtext_reset(), a_UIcmd_get_bw_by_widget(), fh, FindBar, focus_main(), CustGroupVertical::rearrange(), Findbar::show(), and TopGroup.
Referenced by handle(), and UIcmd_tab_new().
void UI::focus_location | ( | ) |
Definition at line 826 of file ui.cc.
References Location, Panelmode, panels_toggle(), temporaryPanels(), and UI_HIDDEN.
Referenced by clear_cb(), and handle().
void UI::focus_main | ( | ) |
|
inline |
|
inline |
int UI::handle | ( | int | event | ) |
Definition at line 713 of file ui.cc.
References _MSG, a_History_get_url(), a_UIcmd_back(), a_UIcmd_book(), a_UIcmd_file_popup(), a_UIcmd_forw(), a_UIcmd_get_bw_by_widget(), a_UIcmd_home(), a_UIcmd_open_file(), a_UIcmd_reload(), a_UIcmd_save(), a_UIcmd_scroll(), a_UIcmd_search_dialog(), a_UIcmd_stop(), a_UIcmd_view_page_source(), bw, FileButton, FindBar, findbar_toggle(), focus_location(), Keys::getKeyCmd(), KEYS_BACK, KEYS_BOOKMARKS, KEYS_BOTTOM, KEYS_FILE_MENU, KEYS_FIND, KEYS_FORWARD, KEYS_GOTO, KEYS_HIDE_PANELS, KEYS_HOME, KEYS_LEFT, KEYS_LINE_DOWN, KEYS_LINE_UP, KEYS_NOP, KEYS_OPEN, KEYS_RELOAD, KEYS_RIGHT, KEYS_SAVE, KEYS_SCREEN_DOWN, KEYS_SCREEN_LEFT, KEYS_SCREEN_RIGHT, KEYS_SCREEN_UP, KEYS_STOP, KEYS_TOP, KEYS_VIEW_SOURCE, KEYS_WEBSEARCH, DilloPrefs::middle_click_drags_page, NAV_TOP_UIDX, panels_toggle(), paste_url(), prefs, and temporaryPanels().
|
private |
|
private |
Definition at line 509 of file ui.cc.
References _MSG, bh, bw, FileButton, filemenu_cb(), lh, P_tiny, p_xpos, PanelSize, prefs, TipWinButton::set_tooltip(), and DilloPrefs::show_filemenu.
Referenced by make_panel().
|
private |
Definition at line 446 of file ui.cc.
References Clear, clear_cb(), Help, help_cb(), icons, iconset::ImgClear, iconset::ImgHelp, iconset::ImgSearch, lh, Location, location_cb(), LocationGroup, p_xpos, Search, search_cb(), TipWinButton::set_tooltip(), and TipWinInput::set_tooltip().
Referenced by make_panel().
|
private |
|
private |
Definition at line 537 of file ui.cc.
References bh, bw, fh, icons, lbl, lh, LocationGroup, LocBar, make_filemenu_button(), make_location(), make_progress_bars(), make_toolbar(), mh, NavBar, nh, P_medium, P_small, P_tiny, p_xpos, p_ypos, PanelSize, pw, CustGroupHorizontal::rearrange(), sh, small_icons, Small_Icons, standard_icons, and TopGroup.
Referenced by change_panel(), and UI().
|
private |
Definition at line 490 of file ui.cc.
References bh, IProg, p_xpos, p_ypos, PProg, pw, and CustProgressBox::update_label().
Referenced by make_panel().
|
private |
Definition at line 617 of file ui.cc.
References BugMeter, bugmeter_cb(), icons, iconset::ImgMeterOK, CustGroupHorizontal::rearrange(), TipWinButton::set_tooltip(), sh, StatusBar, and StatusOutput.
Referenced by UI().
|
private |
Definition at line 407 of file ui.cc.
References Back, Bookmarks, Forw, Home, icons, iconset::ImgBook, iconset::ImgHome, iconset::ImgLeft, iconset::ImgLeftIn, iconset::ImgReload, iconset::ImgRight, iconset::ImgRightIn, iconset::ImgSave, iconset::ImgStop, iconset::ImgStopIn, iconset::ImgTools, make_button(), Reload, Save, TipWinButton::set_tooltip(), Stop, Tools, UI_BACK, UI_BOOK, UI_FORW, UI_HOME, UI_RELOAD, UI_SAVE, UI_STOP, and UI_TOOLS.
Referenced by make_panel().
void UI::panels_toggle | ( | ) |
Definition at line 1077 of file ui.cc.
References lh, LocBar, NavBar, nh, Panelmode, CustGroupHorizontal::rearrange(), CustGroupVertical::rearrange(), sh, StatusBar, TopGroup, UI_HIDDEN, and UI_NORMAL.
Referenced by focus_location(), handle(), location_cb(), and UI().
void UI::paste_url | ( | ) |
void UI::set_bug_prog | ( | int | n_bug | ) |
Definition at line 910 of file ui.cc.
References BugMeter, icons, iconset::ImgMeterBug, iconset::ImgMeterOK, CustGroupHorizontal::rearrange(), and StatusBar.
void UI::set_img_prog | ( | int | n_img, |
int | t_img, | ||
int | cmd | ||
) |
Definition at line 889 of file ui.cc.
References IProg, PanelSize, and CustProgressBox::update_label().
void UI::set_location | ( | const char * | str | ) |
void UI::set_page_prog | ( | size_t | nbytes, |
int | cmd | ||
) |
Definition at line 857 of file ui.cc.
References PanelSize, PProg, and CustProgressBox::update_label().
void UI::set_render_layout | ( | Fl_Group * | nw | ) |
Definition at line 1003 of file ui.cc.
References Main, and TopGroup.
Referenced by UIcmd_tab_new().
void UI::set_status | ( | const char * | str | ) |
Definition at line 848 of file ui.cc.
References StatusOutput.
|
inline |
Definition at line 179 of file ui.hh.
References Tabs.
Referenced by a_UIcmd_close_bw(), and CustTabs::add_new_tab().
|
inline |
|
inline |
Definition at line 181 of file ui.hh.
References PanelTemporary.
Referenced by focus_location(), handle(), and location_cb().
|
inline |
Definition at line 182 of file ui.hh.
References PanelTemporary.
void UI::toggle_cb_i | ( | ) |
|
private |
Definition at line 127 of file ui.hh.
Referenced by button_set_sens(), customize(), and make_toolbar().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_button(), make_filemenu_button(), make_panel(), and make_progress_bars().
|
private |
Definition at line 127 of file ui.hh.
Referenced by customize(), and make_toolbar().
|
private |
Definition at line 127 of file ui.hh.
Referenced by make_status_bar(), and set_bug_prog().
|
private |
Definition at line 139 of file ui.hh.
Referenced by handle(), make_button(), make_filemenu_button(), and make_panel().
|
private |
Definition at line 127 of file ui.hh.
Referenced by customize(), make_location(), and paste_url().
|
private |
Definition at line 139 of file ui.hh.
Referenced by findbar_toggle(), make_panel(), and UI().
|
private |
Definition at line 127 of file ui.hh.
Referenced by handle(), and make_filemenu_button().
|
private |
Definition at line 134 of file ui.hh.
Referenced by findbar_toggle(), handle(), and UI().
|
private |
Definition at line 127 of file ui.hh.
Referenced by button_set_sens(), customize(), and make_toolbar().
|
private |
Definition at line 127 of file ui.hh.
Referenced by customize(), and make_location().
|
private |
Definition at line 127 of file ui.hh.
Referenced by customize(), and make_toolbar().
|
private |
Definition at line 131 of file ui.hh.
Referenced by customize(), make_progress_bars(), and set_img_prog().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_button(), and make_panel().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_filemenu_button(), make_location(), make_panel(), and panels_toggle().
|
private |
Definition at line 130 of file ui.hh.
Referenced by change_panel(), customize(), focus_location(), get_location(), make_location(), and set_location().
|
private |
Definition at line 132 of file ui.hh.
Referenced by make_location(), and make_panel().
|
private |
Definition at line 129 of file ui.hh.
Referenced by change_panel(), customize(), make_panel(), panels_toggle(), and UI().
|
private |
Definition at line 132 of file ui.hh.
Referenced by focus_main(), set_render_layout(), and UI().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_panel().
|
private |
Definition at line 129 of file ui.hh.
Referenced by change_panel(), customize(), make_panel(), panels_toggle(), and UI().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_panel(), and panels_toggle().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_button(), make_filemenu_button(), make_location(), make_panel(), and make_progress_bars().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_panel(), and make_progress_bars().
|
private |
Definition at line 142 of file ui.hh.
Referenced by focus_location(), panels_toggle(), and UI().
|
private |
Definition at line 138 of file ui.hh.
Referenced by change_panel(), get_panelsize(), make_filemenu_button(), make_panel(), set_img_prog(), set_page_prog(), and UI().
|
private |
Definition at line 140 of file ui.hh.
Referenced by temporaryPanels(), and UI().
|
private |
Definition at line 131 of file ui.hh.
Referenced by customize(), make_progress_bars(), and set_page_prog().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_panel(), and make_progress_bars().
|
private |
Definition at line 127 of file ui.hh.
Referenced by customize(), and make_toolbar().
|
private |
Definition at line 127 of file ui.hh.
Referenced by customize(), and make_toolbar().
|
private |
Definition at line 127 of file ui.hh.
Referenced by customize(), and make_location().
|
private |
Definition at line 139 of file ui.hh.
Referenced by make_panel(), make_status_bar(), and panels_toggle().
|
private |
Definition at line 138 of file ui.hh.
Referenced by change_panel(), get_smallicons(), make_panel(), and UI().
|
private |
Definition at line 129 of file ui.hh.
Referenced by make_status_bar(), panels_toggle(), set_bug_prog(), and UI().
|
private |
Definition at line 133 of file ui.hh.
Referenced by make_status_bar(), and set_status().
|
private |
Definition at line 127 of file ui.hh.
Referenced by button_set_sens(), customize(), and make_toolbar().
|
private |
Definition at line 127 of file ui.hh.
Referenced by customize(), and make_toolbar().
|
private |
Definition at line 126 of file ui.hh.
Referenced by change_panel(), findbar_toggle(), make_panel(), panels_toggle(), set_render_layout(), and UI().