|
NetSurf
|
#include <stdbool.h>#include <Application.h>#include <FilePanel.h>#include <Window.h>#include <BeBuild.h>Go to the source code of this file.
Data Structures | |
| class | NSBrowserApplication |
Macros | |
| #define | B_UI_SETTINGS_CHANGED '_UIC' |
| #define | CALLED() fprintf(stderr, "%s()\n", __FUNCTION__); |
Functions | |
| int | gui_init_replicant (int argc, char **argv) |
| called when replicated from NSBaseView::Instantiate() More... | |
| nserror | gui_401login_open (struct nsurl *url, const char *realm, const char *username, const char *password, nserror(*cb)(const char *username, const char *password, void *pw), void *cbpw) |
| void | nsbeos_gui_poll (void) |
| void | nsbeos_pipe_message (BMessage *message, BView *_this, struct gui_window *gui) |
| void | nsbeos_pipe_message_top (BMessage *message, BWindow *_this, struct beos_scaffolding *scaffold) |
| void | nsbeos_gui_view_source (struct hlcache_handle *content) |
| Send the source of a content to a text editor. More... | |
| image_id | nsbeos_find_app_path (char *path) |
| char * | find_resource (char *buf, const char *filename, const char *def) |
| Locate a shared resource file by searching known places in order. More... | |
| void | nsbeos_update_system_ui_colors (void) |
| void | die (const char *const error) __attribute__((noreturn)) |
| Cause an abnormal program termination. More... | |
| nserror | beos_warn_user (const char *warning, const char *detail) |
| Display a warning for a serious problem (eg memory exhaustion). More... | |
Variables | |
| bool | nsbeos_done |
| bool | replicated |
| if we are running as a replicant More... | |
| char * | options_file_location |
| BWindow * | wndAbout |
| BWindow * | wndTooltip |
| BFilePanel * | wndOpenFile |
| nserror beos_warn_user | ( | const char * | warning, |
| const char * | detail | ||
| ) |
Display a warning for a serious problem (eg memory exhaustion).
| warning | message key for warning message |
| detail | additional message, or 0 |
Definition at line 116 of file gui.cpp.
References NSERROR_OK, NSLOG, and text().
Referenced by beos_fetch_filetype_init(), fetch_rsrc_register(), gui_init(), gui_launch_url(), gui_window_create(), nsbeos_gui_view_source(), nsbeos_new_scaffolding(), nsbeos_plot_arc(), nsbeos_plot_bbitmap(), nsbeos_plot_bitmap(), nsbeos_plot_clip(), nsbeos_plot_disc(), nsbeos_plot_line(), nsbeos_plot_polygon(), nsbeos_plot_rectangle(), nsbeos_scaffolding_dispatch_event(), and nsfont_paint().
| void die | ( | const char *const | error | ) |
| char * find_resource | ( | char * | buf, |
| const char * | filename, | ||
| const char * | def | ||
| ) |
Locate a shared resource file by searching known places in order.
Search order is: ~/config/settings/NetSurf/, ~/.netsurf/, $NETSURFRES/ (where NETSURFRES is an environment variable), and finally the path specified by the macro at the top of this file.
| buf | buffer to write to. must be at least PATH_MAX chars |
| filename | file to look for |
| def | default to return if file not found |
Definition at line 277 of file gui.cpp.
References find_resource(), path(), PATH_MAX, and realpath().
Referenced by find_resource(), gui_init(), and nsbeos_scaffolding_dispatch_event().
| nserror gui_401login_open | ( | struct nsurl * | url, |
| const char * | realm, | ||
| const char * | username, | ||
| const char * | password, | ||
| nserror(*)(const char *username, const char *password, void *pw) | cb, | ||
| void * | cbpw | ||
| ) |
Definition at line 175 of file login.cpp.
References create_login_window(), NSERROR_OK, nsurl_get_component(), and NSURL_HOST.
| int gui_init_replicant | ( | int | argc, |
| char ** | argv | ||
| ) |
called when replicated from NSBaseView::Instantiate()
Definition at line 1173 of file gui.cpp.
References beos_bitmap_table, beos_clipboard_table, beos_download_table, beos_fetch_table, beos_layout_table, beos_misc_table, beos_window_table, die(), get_messages_path(), gui_init(), messages_add_from_file(), netsurf_init(), netsurf_register(), NSERROR_OK, nslog_init(), nslog_stream_configure(), nsoption_commandline(), nsoption_init(), nsoption_read(), nsoptions, nsoptions_default, options, and set_option_defaults().
Referenced by NSBaseView::Instantiate().
| image_id nsbeos_find_app_path | ( | char * | path | ) |
Definition at line 246 of file gui.cpp.
References nsbeos_find_app_path(), and path().
Referenced by find_app_resources(), NSBaseView::Instantiate(), and nsbeos_find_app_path().
| void nsbeos_gui_poll | ( | void | ) |
Definition at line 813 of file gui.cpp.
References earliest_callback_timeout, fetch_fdset(), nsbeos_dispatch_event(), NSLOG, schedule_run(), and sEventPipe.
Referenced by main(), and nsbeos_replicant_main_thread().
| void nsbeos_gui_view_source | ( | struct hlcache_handle * | content | ) |
Send the source of a content to a text editor.
Definition at line 898 of file gui.cpp.
References beos_warn_user(), content_get_mime_type(), content_get_source_data(), filename_request(), hlcache_handle_get_url(), nsurl_access(), path(), TEMP_FILENAME_PREFIX, type, and url_to_path().
Referenced by nsbeos_scaffolding_dispatch_event().
| void nsbeos_pipe_message | ( | BMessage * | message, |
| BView * | _this, | ||
| struct gui_window * | gui | ||
| ) |
Definition at line 785 of file gui.cpp.
References sEventPipe.
Referenced by NSBrowserApplication::AboutRequested(), NSBrowserFrameView::Draw(), NSBrowserFrameView::FrameResized(), NSBrowserFrameView::KeyDown(), LoginAlert::MessageReceived(), NSBrowserFrameView::MouseDown(), NSBrowserFrameView::MouseMoved(), NSBrowserFrameView::MouseUp(), and NSBrowserApplication::QuitRequested().
| void nsbeos_pipe_message_top | ( | BMessage * | message, |
| BWindow * | _this, | ||
| struct beos_scaffolding * | scaffold | ||
| ) |
Definition at line 799 of file gui.cpp.
References sEventPipe.
Referenced by NSBrowserApplication::ArgvReceived(), NSBrowserWindow::DispatchMessage(), NSBaseView::MessageReceived(), NSBrowserWindow::MessageReceived(), NSBrowserFrameView::MessageReceived(), NSBrowserWindow::QuitRequested(), NSBrowserApplication::RefsReceived(), and NSBaseView::~NSBaseView().
| void nsbeos_update_system_ui_colors | ( | void | ) |
Definition at line 571 of file gui.cpp.
References nsoptions, and set_option_defaults().
Referenced by gui_init(), nsbeos_dispatch_event(), and nsbeos_scaffolding_dispatch_event().
|
extern |
Definition at line 90 of file gui.cpp.
Referenced by main(), nsbeos_dispatch_event(), nsbeos_replicant_main_thread(), nsbeos_scaffolding_dispatch_event(), and nsbeos_window_destroy_event().
|
extern |
Definition at line 94 of file gui.cpp.
Referenced by gui_init().
|
extern |
if we are running as a replicant
Definition at line 92 of file gui.cpp.
Referenced by gui_init(), NSBaseView::Instantiate(), main(), nsbeos_new_scaffolding(), and NSBaseView::~NSBaseView().