Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
ui.cc File Reference

UI for Dillo. More...

#include <unistd.h>
#include <stdio.h>
#include <math.h>
#include "keys.hh"
#include "ui.hh"
#include "msg.h"
#include "timeout.hh"
#include "utf8.hh"
#include "tipwin.hh"
#include <FL/Fl.H>
#include <FL/Fl_Pixmap.H>
#include <FL/Fl_Box.H>
#include <FL/names.h>
#include "pixmaps.h"
#include "uicmd.hh"
#include "history.h"
#include "nav.h"
Include dependency graph for ui.cc:

Go to the source code of this file.

Functions

static void search_cb (Fl_Widget *wid, void *data)
 Callback for the search button.
 
static void help_cb (Fl_Widget *w, void *)
 Callback for the help button.
 
static void filemenu_cb (Fl_Widget *wid, void *)
 Callback for the File menu button.
 
static void clear_cb (Fl_Widget *w, void *data)
 Callback for the location's clear-button.
 
static void location_cb (Fl_Widget *wid, void *data)
 Send the browser to the new URL in the location.
 
static void b1_cb (Fl_Widget *wid, void *cb_data)
 Callback handler for button press on the panel.
 
static void bugmeter_cb (Fl_Widget *wid, void *data)
 Callback for the bug meter button.
 

Variables

static struct iconset standard_icons
 
static struct iconset small_icons
 
static struct iconset * icons = &standard_icons
 

Detailed Description

UI for Dillo.

Definition in file ui.cc.

Function Documentation

◆ b1_cb()

static void b1_cb ( Fl_Widget *  wid,
void *  cb_data 
)
static

◆ bugmeter_cb()

static void bugmeter_cb ( Fl_Widget *  wid,
void *  data 
)
static

Callback for the bug meter button.

Definition at line 367 of file ui.cc.

References a_UIcmd_bugmeter_popup(), a_UIcmd_get_bw_by_widget(), and a_UIcmd_view_page_bugs().

Referenced by UI::make_status_bar().

◆ clear_cb()

static void clear_cb ( Fl_Widget *  w,
void *  data 
)
static

Callback for the location's clear-button.

Definition at line 271 of file ui.cc.

References UI::focus_location(), UI::paste_url(), and UI::set_location().

Referenced by UI::make_location().

◆ filemenu_cb()

static void filemenu_cb ( Fl_Widget *  wid,
void *   
)
static

Callback for the File menu button.

Definition at line 260 of file ui.cc.

References a_UIcmd_file_popup(), and a_UIcmd_get_bw_by_widget().

◆ help_cb()

static void help_cb ( Fl_Widget *  w,
void *   
)
static

Callback for the help button.

Definition at line 240 of file ui.cc.

References a_UIcmd_get_bw_by_widget(), a_UIcmd_open_urlstr(), dFree(), dStrconcat(), MSG, and path().

Referenced by UI::make_location().

◆ location_cb()

static void location_cb ( Fl_Widget *  wid,
void *  data 
)
static

Send the browser to the new URL in the location.

Definition at line 287 of file ui.cc.

References _MSG, a_UIcmd_get_bw_by_widget(), a_UIcmd_open_urlstr(), UI::panels_toggle(), and UI::temporaryPanels().

Referenced by UI::make_location().

◆ search_cb()

static void search_cb ( Fl_Widget *  wid,
void *  data 
)
static

Callback for the search button.

Definition at line 228 of file ui.cc.

References a_UIcmd_get_bw_by_widget(), and a_UIcmd_search_dialog().

Referenced by UI::make_location().

Variable Documentation

◆ icons

struct iconset* icons = &standard_icons
static

◆ small_icons

struct iconset small_icons
static
Initial value:
= {
standard_icons.ImgMeterOK,
standard_icons.ImgMeterBug,
new Fl_Pixmap(home_s_xpm),
new Fl_Pixmap(reload_s_xpm),
new Fl_Pixmap(save_s_xpm),
new Fl_Pixmap(bm_s_xpm),
new Fl_Pixmap(tools_s_xpm),
new Fl_Pixmap(new_s_xpm),
standard_icons.ImgSearch,
standard_icons.ImgHelp,
new Fl_Pixmap(left_s_xpm),
NULL,
new Fl_Pixmap(right_s_xpm),
NULL,
new Fl_Pixmap(stop_s_xpm),
NULL,
}
static const char *const stop_s_xpm[]
Definition pixmaps.h:1178
static const char *const left_s_xpm[]
Definition pixmaps.h:815
static const char *const new_s_xpm[]
Definition pixmaps.h:1413
static const char *const right_s_xpm[]
Definition pixmaps.h:867
static const char *const save_s_xpm[]
Definition pixmaps.h:1108
static const char *const reload_s_xpm[]
Definition pixmaps.h:1015
static const char *const bm_s_xpm[]
Definition pixmaps.h:1263
static const char *const home_s_xpm[]
Definition pixmaps.h:942
static const char *const tools_s_xpm[]
Definition pixmaps.h:1346
static struct iconset standard_icons
Definition ui.cc:46

Definition at line 65 of file ui.cc.

Referenced by UI::change_panel(), and UI::make_panel().

◆ standard_icons

struct iconset standard_icons
static
Initial value:
= {
new Fl_Pixmap(mini_ok_xpm),
new Fl_Pixmap(mini_bug_xpm),
new Fl_Pixmap(home_xpm),
new Fl_Pixmap(reload_xpm),
new Fl_Pixmap(save_xpm),
new Fl_Pixmap(bm_xpm),
new Fl_Pixmap(tools_xpm),
new Fl_Pixmap(new_s_xpm),
new Fl_Pixmap(search_xpm),
new Fl_Pixmap(help_xpm),
new Fl_Pixmap(left_xpm),
NULL,
new Fl_Pixmap(right_xpm),
NULL,
new Fl_Pixmap(stop_xpm),
NULL,
}
static const char *const home_xpm[]
Definition pixmaps.h:331
static const char *const save_xpm[]
Definition pixmaps.h:462
static const char *const help_xpm[]
Definition pixmaps.h:1494
static const char *const left_xpm[]
Definition pixmaps.h:17
static const char *const stop_xpm[]
Definition pixmaps.h:547
static const char *const search_xpm[]
Definition pixmaps.h:1463
static const char *const mini_bug_xpm[]
Definition pixmaps.h:1530
static const char *const tools_xpm[]
Definition pixmaps.h:762
static const char *const bm_xpm[]
Definition pixmaps.h:650
static const char *const reload_xpm[]
Definition pixmaps.h:159
static const char *const right_xpm[]
Definition pixmaps.h:88
static const char *const mini_ok_xpm[]
Definition pixmaps.h:1557

Definition at line 46 of file ui.cc.

Referenced by UI::make_panel().