Dillo v3.1.1-119-g140d9ebd
|
Functions/Methods for commands triggered from the UI. More...
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#include <sys/stat.h>
#include <FL/Fl.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Wizard.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Pack.H>
#include <FL/Fl_Scroll.H>
#include <FL/names.h>
#include "paths.hh"
#include "keys.hh"
#include "ui.hh"
#include "uicmd.hh"
#include "timeout.hh"
#include "utf8.hh"
#include "menu.hh"
#include "dialog.hh"
#include "xembed.hh"
#include "bookmark.h"
#include "history.h"
#include "msg.h"
#include "prefs.h"
#include "misc.h"
#include "dlib/dlib.h"
#include "dw/fltkviewport.hh"
#include "nav.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_TAB_LABEL "-.new.-" |
#define | BW2UI(bw) ((UI*)((bw)->ui)) |
Functions | |
static BrowserWindow * | UIcmd_tab_new (CustTabs *tabs, UI *old_ui, int focus) |
static void | close_tab_btn_cb (Fl_Widget *, void *cb_data) |
Callback for the close-tab button. | |
static char * | UIcmd_make_search_str (const char *str) |
static void | UIcmd_set_window_labels (Fl_Window *win, const char *str) |
static int | btn_cmp (const void *p1, const void *p2) |
static void | tab_btn_cb (Fl_Widget *w, void *cb_data) |
Callback for mouse click. | |
static void | win_cb (Fl_Widget *w, void *cb_data) |
BrowserWindow * | a_UIcmd_get_bw_by_widget (void *v_wid) |
BrowserWindow * | a_UIcmd_browser_window_new (int ww, int wh, uint32_t xid, const void *vbw) |
void | a_UIcmd_close_bw (void *vbw) |
void | a_UIcmd_close_all_bw (void *) |
static char * | UIcmd_find_search_str (const char *str) |
void | a_UIcmd_open_urlstr (void *vbw, const char *urlstr) |
void | a_UIcmd_open_url (BrowserWindow *bw, const DilloUrl *url) |
static void | UIcmd_open_url_nbw (BrowserWindow *new_bw, const DilloUrl *url) |
void | a_UIcmd_open_url_nw (BrowserWindow *bw, const DilloUrl *url) |
void | a_UIcmd_open_url_nt (void *vbw, const DilloUrl *url, int focus) |
void | a_UIcmd_back (void *vbw) |
void | a_UIcmd_back_popup (void *vbw, int x, int y) |
void | a_UIcmd_forw (void *vbw) |
void | a_UIcmd_forw_popup (void *vbw, int x, int y) |
void | a_UIcmd_home (void *vbw) |
void | a_UIcmd_reload (void *vbw) |
void | a_UIcmd_reload_all_active () |
void | a_UIcmd_repush (void *vbw) |
void | a_UIcmd_redirection0 (void *vbw, const DilloUrl *url) |
void | a_UIcmd_zoom_in (void *vbw) |
void | a_UIcmd_zoom_out (void *vbw) |
void | a_UIcmd_zoom_reset (void *vbw) |
static char * | UIcmd_make_save_filename (const DilloUrl *url) |
void | a_UIcmd_init (void) |
static int | UIcmd_save_file_check (const char *name) |
static void | UIcmd_save (BrowserWindow *bw, const DilloUrl *url, const char *title) |
void | a_UIcmd_save (void *vbw) |
const char * | a_UIcmd_select_file () |
void | a_UIcmd_stop (void *vbw) |
void | a_UIcmd_tools (void *vbw, int x, int y) |
void | a_UIcmd_open_file (void *vbw) |
void | a_UIcmd_search_dialog (void *vbw) |
const char * | a_UIcmd_get_passwd (const char *user) |
void | a_UIcmd_save_link (BrowserWindow *bw, const DilloUrl *url) |
void | a_UIcmd_book (void *vbw) |
void | a_UIcmd_add_bookmark (BrowserWindow *bw, const DilloUrl *url) |
void | a_UIcmd_page_popup (void *vbw, bool_t has_bugs, void *v_cssUrls) |
void | a_UIcmd_link_popup (void *vbw, const DilloUrl *url, const DilloUrl *page_url) |
void | a_UIcmd_image_popup (void *vbw, const DilloUrl *url, bool_t loaded_img, DilloUrl *page_url, DilloUrl *link_url) |
void | a_UIcmd_form_popup (void *vbw, const DilloUrl *url, void *vform, bool_t showing_hiddens) |
void | a_UIcmd_file_popup (void *vbw, void *v_wid) |
void | a_UIcmd_copy_urlstr (BrowserWindow *bw, const char *urlstr) |
void | a_UIcmd_view_page_source (BrowserWindow *bw, const DilloUrl *url) |
void | a_UIcmd_view_page_bugs (void *vbw) |
void | a_UIcmd_bugmeter_popup (void *vbw) |
int * | a_UIcmd_get_history (BrowserWindow *bw, int direction) |
void | a_UIcmd_nav_jump (BrowserWindow *bw, int offset, int new_bw) |
void | a_UIcmd_get_wh (BrowserWindow *bw, int *w, int *h) |
void | a_UIcmd_get_scroll_xy (BrowserWindow *bw, int *x, int *y) |
void | a_UIcmd_set_scroll_xy (BrowserWindow *bw, int x, int y) |
void | a_UIcmd_set_scroll_by_fragment (BrowserWindow *bw, const char *f) |
void | a_UIcmd_scroll (BrowserWindow *bw, int icmd) |
char * | a_UIcmd_get_location_text (BrowserWindow *bw) |
void | a_UIcmd_set_location_text (void *vbw, const char *text) |
void | a_UIcmd_set_page_prog (BrowserWindow *bw, size_t nbytes, int cmd) |
void | a_UIcmd_set_img_prog (BrowserWindow *bw, int n_img, int t_img, int cmd) |
void | a_UIcmd_set_bug_prog (BrowserWindow *bw, int n_bug) |
void | a_UIcmd_set_page_title (BrowserWindow *bw, const char *label) |
void | a_UIcmd_set_msg (BrowserWindow *bw, const char *format,...) |
void | a_UIcmd_set_buttons_sens (BrowserWindow *bw) |
void | a_UIcmd_panels_toggle (BrowserWindow *bw) |
void | a_UIcmd_findtext_search (BrowserWindow *bw, const char *key, int case_sens, int backward) |
void | a_UIcmd_findtext_reset (BrowserWindow *bw) |
void | a_UIcmd_findbar_toggle (BrowserWindow *bw, int on) |
void | a_UIcmd_focus_main_area (BrowserWindow *bw) |
void | a_UIcmd_focus_location (void *vbw) |
Variables | |
static const char * | save_dir = "" |
static struct Tabgroup * | tabgroups = NULL |
void a_UIcmd_add_bookmark | ( | BrowserWindow * | bw, |
const DilloUrl * | url | ||
) |
Definition at line 1253 of file uicmd.cc.
References a_Bookmarks_add().
Referenced by Menu_add_bookmark_cb().
void a_UIcmd_back | ( | void * | vbw | ) |
Definition at line 865 of file uicmd.cc.
References a_Nav_back().
Referenced by b1_cb(), and UI::handle().
void a_UIcmd_back_popup | ( | void * | vbw, |
int | x, | ||
int | y | ||
) |
void a_UIcmd_book | ( | void * | vbw | ) |
Definition at line 1243 of file uicmd.cc.
References a_UIcmd_open_url(), a_Url_free(), and a_Url_new().
Referenced by b1_cb(), and UI::handle().
BrowserWindow * a_UIcmd_browser_window_new | ( | int | ww, |
int | wh, | ||
uint32_t | xid, | ||
const void * | vbw | ||
) |
Definition at line 559 of file uicmd.cc.
References _MSG, DilloPrefs::buffered_drawing, BW2UI, DilloPrefs::height, prefs, tabgroups, DilloPrefs::ui_tab_height, UIcmd_tab_new(), DilloPrefs::width, win_cb(), DilloPrefs::xpos, DilloPrefs::ypos, BrowserWindow::zoom, and DilloPrefs::zoom_factor.
Referenced by a_UIcmd_open_url_nw(), and main().
void a_UIcmd_bugmeter_popup | ( | void * | vbw | ) |
Definition at line 1364 of file uicmd.cc.
References a_History_get_url(), a_Menu_bugmeter_popup(), and NAV_TOP_UIDX.
Referenced by bugmeter_cb().
void a_UIcmd_close_all_bw | ( | void * | p | ) |
Definition at line 714 of file uicmd.cc.
References a_Bw_get(), a_Bw_num(), a_Dialog_choice(), a_UIcmd_close_bw(), prefs, and DilloPrefs::show_quit_dialog.
Referenced by filemenu_cb().
void a_UIcmd_close_bw | ( | void * | vbw | ) |
Definition at line 675 of file uicmd.cc.
References _MSG, a_Bw_free(), a_Bw_stop_clients(), BW2UI, BW_Force, BW_Img, BW_Root, layout, BrowserWindow::render_layout, tabgroups, and UI::tabs().
Referenced by a_UIcmd_close_all_bw(), a_UIcmd_set_img_prog(), close_tab_btn_cb(), filemenu_cb(), tab_btn_cb(), and win_cb().
void a_UIcmd_copy_urlstr | ( | BrowserWindow * | bw, |
const char * | urlstr | ||
) |
Definition at line 1306 of file uicmd.cc.
References dw::core::Layout::copySelection(), layout, and BrowserWindow::render_layout.
Referenced by Menu_copy_urlstr_cb().
void a_UIcmd_file_popup | ( | void * | vbw, |
void * | v_wid | ||
) |
Definition at line 1298 of file uicmd.cc.
References a_Menu_file_popup().
Referenced by filemenu_cb(), and UI::handle().
void a_UIcmd_findbar_toggle | ( | BrowserWindow * | bw, |
int | on | ||
) |
void a_UIcmd_findtext_reset | ( | BrowserWindow * | bw | ) |
Definition at line 1626 of file uicmd.cc.
References a_UIcmd_set_msg(), BrowserWindow::render_layout, and dw::core::Layout::resetSearch().
Referenced by UI::findbar_toggle().
void a_UIcmd_findtext_search | ( | BrowserWindow * | bw, |
const char * | key, | ||
int | case_sens, | ||
int | backward | ||
) |
Definition at line 1604 of file uicmd.cc.
References a_UIcmd_set_msg(), dw::core::FindtextState::NOT_FOUND, BrowserWindow::render_layout, dw::core::FindtextState::RESTART, dw::core::Layout::search(), and dw::core::FindtextState::SUCCESS.
Referenced by Findbar::search_cb(), and Findbar::searchBackwards_cb().
void a_UIcmd_focus_location | ( | void * | vbw | ) |
void a_UIcmd_focus_main_area | ( | BrowserWindow * | bw | ) |
Definition at line 1289 of file uicmd.cc.
References a_Menu_form_popup().
void a_UIcmd_forw | ( | void * | vbw | ) |
Definition at line 881 of file uicmd.cc.
References a_Nav_forw().
Referenced by b1_cb(), and UI::handle().
void a_UIcmd_forw_popup | ( | void * | vbw, |
int | x, | ||
int | y | ||
) |
BrowserWindow * a_UIcmd_get_bw_by_widget | ( | void * | v_wid | ) |
Definition at line 543 of file uicmd.cc.
References a_Bw_get(), a_Bw_num(), and BrowserWindow::ui.
Referenced by a_UIcmd_reload_all_active(), a_UIcmd_set_page_title(), b1_cb(), bugmeter_cb(), UI::change_panel(), close_tab_btn_cb(), filemenu_cb(), UI::findbar_toggle(), UI::handle(), help_cb(), Findbar::hide_cb(), location_cb(), Findbar::search_cb(), search_cb(), Findbar::searchBackwards_cb(), Findbar::show(), tab_btn_cb(), and win_cb().
int * a_UIcmd_get_history | ( | BrowserWindow * | bw, |
int | direction | ||
) |
Definition at line 1375 of file uicmd.cc.
References a_Nav_stack_ptr(), a_Nav_stack_size(), dNew, and NAV_UIDX.
Referenced by a_Menu_history_popup().
char * a_UIcmd_get_location_text | ( | BrowserWindow * | bw | ) |
const char * a_UIcmd_get_passwd | ( | const char * | user | ) |
Definition at line 1222 of file uicmd.cc.
References a_Dialog_passwd(), dFree(), and dStrconcat().
Referenced by main().
void a_UIcmd_get_scroll_xy | ( | BrowserWindow * | bw, |
int * | x, | ||
int * | y | ||
) |
Definition at line 1419 of file uicmd.cc.
References dw::core::Layout::getScrollPosX(), dw::core::Layout::getScrollPosY(), layout, and BrowserWindow::render_layout.
Referenced by Nav_open_url().
void a_UIcmd_get_wh | ( | BrowserWindow * | bw, |
int * | w, | ||
int * | h | ||
) |
Definition at line 1409 of file uicmd.cc.
Referenced by a_UIcmd_open_url_nw().
void a_UIcmd_home | ( | void * | vbw | ) |
Definition at line 897 of file uicmd.cc.
References a_UIcmd_open_url(), DilloPrefs::home, and prefs.
Referenced by b1_cb(), and UI::handle().
void a_UIcmd_image_popup | ( | void * | vbw, |
const DilloUrl * | url, | ||
bool_t | loaded_img, | ||
DilloUrl * | page_url, | ||
DilloUrl * | link_url | ||
) |
Definition at line 1280 of file uicmd.cc.
References a_Menu_image_popup().
Referenced by DilloHtml::HtmlLinkReceiver::press().
void a_UIcmd_init | ( | void | ) |
Definition at line 1037 of file uicmd.cc.
References dStrconcat(), dStrdup(), prefs, DilloPrefs::save_dir, and save_dir.
Referenced by main().
Definition at line 1272 of file uicmd.cc.
References a_Menu_link_popup().
Referenced by DilloHtml::HtmlLinkReceiver::press().
void a_UIcmd_nav_jump | ( | BrowserWindow * | bw, |
int | offset, | ||
int | new_bw | ||
) |
void a_UIcmd_open_file | ( | void * | vbw | ) |
Definition at line 1153 of file uicmd.cc.
References a_Dialog_open_file(), a_UIcmd_open_url(), a_Url_free(), a_Url_new(), and dFree().
Referenced by filemenu_cb(), and UI::handle().
void a_UIcmd_open_url | ( | BrowserWindow * | bw, |
const DilloUrl * | url | ||
) |
Definition at line 801 of file uicmd.cc.
References a_Nav_push(), a_UIcmd_set_buttons_sens(), and BW2UI.
Referenced by a_UIcmd_book(), a_UIcmd_home(), a_UIcmd_open_file(), a_UIcmd_open_urlstr(), DilloHtml::HtmlLinkReceiver::click(), main(), Menu_open_url_cb(), and Menu_stylesheet_cb().
void a_UIcmd_open_url_nt | ( | void * | vbw, |
const DilloUrl * | url, | ||
int | focus | ||
) |
Definition at line 852 of file uicmd.cc.
References BW2UI, UIcmd_open_url_nbw(), UIcmd_tab_new(), and BrowserWindow::zoom.
Referenced by a_UIcmd_view_page_source(), DilloHtml::HtmlLinkReceiver::click(), filemenu_cb(), main(), Menu_history_cb(), Menu_open_url_nt_cb(), and Menu_stylesheet_cb().
void a_UIcmd_open_url_nw | ( | BrowserWindow * | bw, |
const DilloUrl * | url | ||
) |
Definition at line 836 of file uicmd.cc.
References a_UIcmd_browser_window_new(), a_UIcmd_get_wh(), UIcmd_open_url_nbw(), and BrowserWindow::zoom.
Referenced by a_Nav_jump(), DilloHtml::HtmlLinkReceiver::click(), filemenu_cb(), main(), Menu_history_cb(), Menu_open_url_nw_cb(), and Menu_stylesheet_cb().
void a_UIcmd_open_urlstr | ( | void * | vbw, |
const char * | urlstr | ||
) |
Definition at line 760 of file uicmd.cc.
References a_UIcmd_open_url(), a_Url_free(), a_Url_new(), a_Url_string_strip_delimiters(), dFree(), dStrnAsciiCasecmp(), Paths::getOldWorkingDir(), and UIcmd_find_search_str().
Referenced by a_UIcmd_search_dialog(), help_cb(), location_cb(), Menu_bugmeter_about_cb(), and Menu_bugmeter_validate().
void a_UIcmd_page_popup | ( | void * | vbw, |
bool_t | has_bugs, | ||
void * | v_cssUrls | ||
) |
Definition at line 1262 of file uicmd.cc.
References a_History_get_url(), a_Menu_page_popup(), and NAV_TOP_UIDX.
Referenced by DilloHtml::HtmlLinkReceiver::press().
void a_UIcmd_panels_toggle | ( | BrowserWindow * | bw | ) |
void a_UIcmd_redirection0 | ( | void * | vbw, |
const DilloUrl * | url | ||
) |
Definition at line 934 of file uicmd.cc.
References a_Nav_redirection0().
Referenced by Html_tag_open_meta().
void a_UIcmd_reload | ( | void * | vbw | ) |
Definition at line 905 of file uicmd.cc.
References a_Nav_reload().
Referenced by a_UIcmd_reload_all_active(), b1_cb(), and UI::handle().
void a_UIcmd_reload_all_active | ( | ) |
Definition at line 913 of file uicmd.cc.
References a_UIcmd_get_bw_by_widget(), a_UIcmd_reload(), and tabgroups.
Referenced by main().
void a_UIcmd_repush | ( | void * | vbw | ) |
Definition at line 926 of file uicmd.cc.
References a_Nav_repush().
Referenced by Html_css_load_callback(), Html_update_content_type(), Menu_bgimg_load_toggle_cb(), Menu_embedded_css_cb(), Menu_force_https_cb(), and Menu_remote_css_cb().
void a_UIcmd_save | ( | void * | vbw | ) |
Definition at line 1110 of file uicmd.cc.
References a_History_get_url(), NAV_TOP_UIDX, and UIcmd_save().
Referenced by b1_cb(), UI::handle(), and Menu_save_page_cb().
void a_UIcmd_save_link | ( | BrowserWindow * | bw, |
const DilloUrl * | url | ||
) |
Definition at line 1235 of file uicmd.cc.
References UIcmd_save().
Referenced by Cache_savelink_cb(), and Menu_save_link_cb().
void a_UIcmd_scroll | ( | BrowserWindow * | bw, |
int | icmd | ||
) |
Definition at line 1456 of file uicmd.cc.
References dw::core::BOTTOM_CMD, KEYS_BOTTOM, KEYS_LEFT, KEYS_LINE_DOWN, KEYS_LINE_UP, KEYS_RIGHT, KEYS_SCREEN_DOWN, KEYS_SCREEN_LEFT, KEYS_SCREEN_RIGHT, KEYS_SCREEN_UP, KEYS_TOP, layout, dw::core::LEFT_CMD, dw::core::LINE_DOWN_CMD, dw::core::LINE_UP_CMD, BrowserWindow::render_layout, dw::core::RIGHT_CMD, dw::core::SCREEN_DOWN_CMD, dw::core::SCREEN_LEFT_CMD, dw::core::SCREEN_RIGHT_CMD, dw::core::SCREEN_UP_CMD, dw::core::Layout::scroll(), and dw::core::TOP_CMD.
Referenced by UI::handle().
void a_UIcmd_search_dialog | ( | void * | vbw | ) |
Definition at line 1208 of file uicmd.cc.
References a_Dialog_input(), a_UIcmd_open_urlstr(), dFree(), and UIcmd_make_search_str().
Referenced by UI::handle(), and search_cb().
const char * a_UIcmd_select_file | ( | void | ) |
Definition at line 1123 of file uicmd.cc.
References a_Dialog_select_file().
void a_UIcmd_set_bug_prog | ( | BrowserWindow * | bw, |
int | n_bug | ||
) |
Definition at line 1531 of file uicmd.cc.
References BW2UI.
Referenced by a_Web_dispatch_by_type(), and DilloHtml::bugMessage().
void a_UIcmd_set_buttons_sens | ( | BrowserWindow * | bw | ) |
Definition at line 1577 of file uicmd.cc.
References a_Bw_expecting(), a_Nav_stack_ptr(), a_Nav_stack_size(), BW2UI, dList_length(), BrowserWindow::ImageClients, BrowserWindow::RootClients, UI_BACK, UI_FORW, and UI_STOP.
Referenced by a_Bw_add_client(), a_Bw_close_client(), a_Nav_cancel_expect(), a_Nav_expect_done(), a_Nav_jump(), a_UIcmd_open_url(), a_UIcmd_stop(), UI::change_panel(), and UIcmd_open_url_nbw().
void a_UIcmd_set_img_prog | ( | BrowserWindow * | bw, |
int | n_img, | ||
int | t_img, | ||
int | cmd | ||
) |
Definition at line 1519 of file uicmd.cc.
References a_UIcmd_close_bw(), and BW2UI.
Referenced by a_Bw_add_client(), a_Bw_close_client(), and a_Web_dispatch_by_type().
void a_UIcmd_set_location_text | ( | void * | vbw, |
const char * | text | ||
) |
Definition at line 1500 of file uicmd.cc.
References BW2UI.
Referenced by a_Nav_push(), a_Web_dispatch_by_type(), main(), and UIcmd_open_url_nbw().
void a_UIcmd_set_msg | ( | BrowserWindow * | bw, |
const char * | format, | ||
... | |||
) |
Definition at line 1563 of file uicmd.cc.
References BW2UI, dStr_free(), dStr_sized_new(), dStr_vsprintf(), and Dstr::str.
Referenced by a_Capi_ccc(), a_Capi_open_url(), a_Nav_back(), a_Nav_forw(), a_UIcmd_findtext_reset(), a_UIcmd_findtext_search(), a_UIcmd_zoom_in(), a_UIcmd_zoom_out(), a_UIcmd_zoom_reset(), Cache_process_queue(), Cache_redirect(), DilloHtml::HtmlLinkReceiver::enter(), Html_tag_open_meta(), and Nav_save_cb().
void a_UIcmd_set_page_prog | ( | BrowserWindow * | bw, |
size_t | nbytes, | ||
int | cmd | ||
) |
Definition at line 1510 of file uicmd.cc.
References BW2UI.
Referenced by a_Web_dispatch_by_type(), and Cache_process_queue().
void a_UIcmd_set_page_title | ( | BrowserWindow * | bw, |
const char * | label | ||
) |
Definition at line 1540 of file uicmd.cc.
References a_UIcmd_get_bw_by_widget(), a_Utf8_end_of_char(), BW2UI, MIN, UIcmd_set_window_labels(), and window.
Referenced by a_Web_dispatch_by_type(), and Html_tag_close_title().
void a_UIcmd_set_scroll_by_fragment | ( | BrowserWindow * | bw, |
const char * | f | ||
) |
Definition at line 1444 of file uicmd.cc.
References layout, BrowserWindow::render_layout, and dw::core::Layout::setAnchor().
Referenced by a_Nav_expect_done().
void a_UIcmd_set_scroll_xy | ( | BrowserWindow * | bw, |
int | x, | ||
int | y | ||
) |
Definition at line 1432 of file uicmd.cc.
References dw::core::HPOS_LEFT, layout, BrowserWindow::render_layout, dw::core::Layout::scrollTo(), and dw::core::VPOS_TOP.
Referenced by a_Nav_expect_done().
void a_UIcmd_stop | ( | void * | vbw | ) |
Definition at line 1132 of file uicmd.cc.
References a_Bw_stop_clients(), a_Nav_cancel_expect(), a_UIcmd_set_buttons_sens(), BW_Force, BW_Img, BW_Root, and MSG.
Referenced by b1_cb(), and UI::handle().
void a_UIcmd_tools | ( | void * | vbw, |
int | x, | ||
int | y | ||
) |
void a_UIcmd_view_page_bugs | ( | void * | vbw | ) |
Definition at line 1350 of file uicmd.cc.
References a_Dialog_msg(), a_Dialog_text_window(), BrowserWindow::num_page_bugs, BrowserWindow::page_bugs, and Dstr::str.
Referenced by bugmeter_cb(), and Menu_view_page_bugs_cb().
void a_UIcmd_view_page_source | ( | BrowserWindow * | bw, |
const DilloUrl * | url | ||
) |
Definition at line 1315 of file uicmd.cc.
References a_Misc_parse_content_type(), a_Nav_get_buf(), a_Nav_get_content_type(), a_Nav_set_vsource_url(), a_Nav_unref_buf(), a_UIcmd_open_url_nt(), a_Url_free(), a_Url_new(), dFree(), dStr_append(), dStr_free(), dStr_new(), dStrAsciiCasecmp(), Dstr::str, URL_FLAGS, URL_Post, and URL_STR.
Referenced by UI::handle(), and Menu_view_page_source_cb().
void a_UIcmd_zoom_in | ( | void * | vbw | ) |
Definition at line 942 of file uicmd.cc.
References a_Nav_repush(), a_UIcmd_set_msg(), and BrowserWindow::zoom.
Referenced by UI::handle().
void a_UIcmd_zoom_out | ( | void * | vbw | ) |
Definition at line 958 of file uicmd.cc.
References a_Nav_repush(), a_UIcmd_set_msg(), and BrowserWindow::zoom.
Referenced by UI::handle().
void a_UIcmd_zoom_reset | ( | void * | vbw | ) |
Definition at line 974 of file uicmd.cc.
References a_Nav_repush(), a_UIcmd_set_msg(), and BrowserWindow::zoom.
Referenced by UI::handle().
|
static |
|
static |
Callback for the close-tab button.
Definition at line 218 of file uicmd.cc.
References a_UIcmd_close_bw(), and a_UIcmd_get_bw_by_widget().
|
static |
Callback for mouse click.
Definition at line 200 of file uicmd.cc.
References a_UIcmd_close_bw(), a_UIcmd_get_bw_by_widget(), prefs, and DilloPrefs::right_click_closes_tab.
|
static |
Definition at line 732 of file uicmd.cc.
References dList_length(), dList_nth_data(), dStrnAsciiCasecmp(), prefs, DilloPrefs::search_url_idx, DilloPrefs::search_urls, and UIcmd_make_search_str().
Referenced by a_UIcmd_open_urlstr().
|
static |
Definition at line 987 of file uicmd.cc.
References dFree(), dStrconcat(), dStrndup(), path(), save_dir, URL_PATH, and URL_QUERY.
Referenced by UIcmd_save().
|
static |
Definition at line 1173 of file uicmd.cc.
References a_Misc_parse_search_url(), a_Url_encode_hex_str(), dFree(), dList_nth_data(), dStr_append(), dStr_append_c(), dStr_free(), dStr_sized_new(), MSG_WARN, prefs, DilloPrefs::search_url_idx, DilloPrefs::search_urls, and Dstr::str.
Referenced by a_UIcmd_search_dialog(), and UIcmd_find_search_str().
|
static |
Definition at line 813 of file uicmd.cc.
References a_Nav_push(), a_UIcmd_set_buttons_sens(), a_UIcmd_set_location_text(), BW2UI, DilloPrefs::new_tab_page, prefs, and URL_STR.
Referenced by a_UIcmd_open_url_nt(), and a_UIcmd_open_url_nw().
|
static |
Definition at line 1075 of file uicmd.cc.
References a_Dialog_save_file(), a_Nav_save_url(), dFree(), dStrdup(), MSG, UIcmd_make_save_filename(), and UIcmd_save_file_check().
Referenced by a_UIcmd_save(), and a_UIcmd_save_link().
|
static |
Definition at line 1053 of file uicmd.cc.
References a_Dialog_choice(), dStr_free(), dStr_sized_new(), dStr_sprintf(), and Dstr::str.
Referenced by UIcmd_save().
|
static |
Definition at line 613 of file uicmd.cc.
Referenced by a_UIcmd_set_page_title(), and UIcmd_tab_new().
|
static |
Definition at line 626 of file uicmd.cc.
References _MSG, a_Bw_new(), dw::core::Layout::attachView(), dw::core::style::BACKGROUND_ATTACHMENT_SCROLL, dw::core::style::BACKGROUND_REPEAT, DilloPrefs::bg_color, DilloPrefs::buffered_drawing, dw::core::style::Color::create(), dw::core::style::createPerLength(), UI::findbar_toggle(), layout, DilloPrefs::middle_click_drags_page, platform, prefs, BrowserWindow::render_layout, DilloPrefs::scroll_page_overlap, DilloPrefs::scroll_step, DilloPrefs::scrollbar_on_left, DilloPrefs::scrollbar_page_mode, UI::set_render_layout(), dw::core::Layout::setBgColor(), dw::core::Layout::setBgImage(), dw::fltk::FltkViewBase::setBufferedDrawing(), dw::fltk::FltkViewport::setDragScroll(), dw::fltk::FltkViewport::setPageOverlap(), dw::fltk::FltkViewport::setScrollbarOnLeft(), dw::fltk::FltkViewport::setScrollbarPageMode(), dw::fltk::FltkViewport::setScrollStep(), BrowserWindow::ui, UIcmd_set_window_labels(), and viewport.
Referenced by a_UIcmd_browser_window_new(), and a_UIcmd_open_url_nt().
|
static |
Definition at line 521 of file uicmd.cc.
References a_Dialog_choice(), a_UIcmd_close_bw(), a_UIcmd_get_bw_by_widget(), prefs, and DilloPrefs::show_quit_dialog.
Referenced by a_UIcmd_browser_window_new().
|
static |
Definition at line 70 of file uicmd.cc.
Referenced by a_UIcmd_init(), and UIcmd_make_save_filename().
|
static |
Definition at line 79 of file uicmd.cc.
Referenced by a_UIcmd_browser_window_new(), a_UIcmd_close_bw(), and a_UIcmd_reload_all_active().