NetSurf
Data Structures | Macros | Functions | Variables
scaffolding.cpp File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <BeBuild.h>
#include <Bitmap.h>
#include <Box.h>
#include <Button.h>
#include <Dragger.h>
#include <Menu.h>
#include <MenuBar.h>
#include <MenuItem.h>
#include <Node.h>
#include <Path.h>
#include <PopUpMenu.h>
#include <Resources.h>
#include <Roster.h>
#include <Screen.h>
#include <ScrollView.h>
#include <String.h>
#include <StringView.h>
#include <TextControl.h>
#include <View.h>
#include <Window.h>
#include <fs_attr.h>
#include "utils/messages.h"
#include "utils/utils.h"
#include "utils/log.h"
#include "utils/nsurl.h"
#include "utils/nsoption.h"
#include "netsurf/netsurf.h"
#include "netsurf/plotters.h"
#include "netsurf/clipboard.h"
#include "netsurf/content.h"
#include "netsurf/content_type.h"
#include "netsurf/browser_window.h"
#include "netsurf/form.h"
#include "netsurf/keypress.h"
#include "desktop/browser_history.h"
#include "desktop/version.h"
#include "desktop/searchweb.h"
#include "desktop/search.h"
#include "beos/about.h"
#include "beos/bitmap.h"
#include "beos/gui.h"
#include "beos/plotters.h"
#include "beos/scaffolding.h"
#include "beos/gui_options.h"
#include "beos/throbber.h"
#include "beos/window.h"
#include "beos/schedule.h"
#include "beos/cookies.h"
Include dependency graph for scaffolding.cpp:

Go to the source code of this file.

Data Structures

struct  beos_scaffolding
 
struct  beos_history_window
 
struct  menu_events
 
struct  replicant_thread_info
 
class  NSIconTextControl
 
class  NSResizeKnob
 
class  NSThrobber
 
class  BBitmapButton
 

Macros

#define __STDBOOL_H__   1
 
#define TOOLBAR_HEIGHT   32
 
#define DRAGGER_WIDTH   8
 
#define ICON_WIDTH   16
 

Functions

static void nsbeos_window_update_back_forward (struct beos_scaffolding *)
 
static void nsbeos_throb (void *)
 
static int32 nsbeos_replicant_main_thread (void *_arg)
 
int main (int argc, char **argv)
 Normal entry point from OS. More...
 
static void nsbeos_window_destroy_event (NSBrowserWindow *window, nsbeos_scaffolding *g, BMessage *event)
 
static void nsbeos_scaffolding_update_colors (nsbeos_scaffolding *g)
 
void nsbeos_scaffolding_dispatch_event (nsbeos_scaffolding *scaffold, BMessage *message)
 
void nsbeos_scaffolding_destroy (nsbeos_scaffolding *scaffold)
 
NSBrowserWindownsbeos_find_last_window (void)
 
NSBrowserWindownsbeos_get_bwindow_for_scaffolding (nsbeos_scaffolding *scaffold)
 
NSBaseViewnsbeos_get_baseview_for_scaffolding (nsbeos_scaffolding *scaffold)
 
static void recursively_set_menu_items_target (BMenu *menu, BHandler *handler)
 
void nsbeos_attach_toplevel_view (nsbeos_scaffolding *g, BView *view)
 
static BMenuItem * make_menu_item (const char *name, BMessage *message, bool enabled=false)
 
nsbeos_scaffoldingnsbeos_new_scaffolding (struct gui_window *toplevel)
 
void gui_window_set_title (struct gui_window *_g, const char *title)
 
void gui_window_set_status (struct gui_window *_g, const char *text)
 
nserror gui_window_set_url (struct gui_window *gw, nsurl *url)
 
void gui_window_start_throbber (struct gui_window *_g)
 
void gui_window_stop_throbber (struct gui_window *_g)
 
void gui_window_set_icon (struct gui_window *_g, hlcache_handle *icon)
 add retrieved favicon to the gui More...
 
void nsbeos_scaffolding_popup_menu (nsbeos_scaffolding *scaffold, struct browser_window *bw, BPoint where, BPoint screenWhere)
 

Variables

static int open_windows = 0
 current number of open browsers More...
 
static NSBaseViewreplicant_view = NULL
 if not NULL, the replicant View we are running NetSurf for More...
 
static sem_id replicant_done_sem = -1
 
static thread_id replicant_thread = -1
 
BResources * gAppResources
 

Macro Definition Documentation

◆ __STDBOOL_H__

#define __STDBOOL_H__   1

Definition at line 21 of file scaffolding.cpp.

◆ DRAGGER_WIDTH

#define DRAGGER_WIDTH   8

Definition at line 89 of file scaffolding.cpp.

◆ ICON_WIDTH

#define ICON_WIDTH   16

Definition at line 176 of file scaffolding.cpp.

◆ TOOLBAR_HEIGHT

#define TOOLBAR_HEIGHT   32

Definition at line 88 of file scaffolding.cpp.

Function Documentation

◆ gui_window_set_icon()

void gui_window_set_icon ( struct gui_window _g,
hlcache_handle icon 
)

add retrieved favicon to the gui

Definition at line 2347 of file scaffolding.cpp.

References content_get_bitmap(), nsbeos_bitmap_get_primary(), nsbeos_get_scaffold(), NSIconTextControl::SetBitmap(), beos_scaffolding::top_view, and beos_scaffolding::url_bar.

Here is the call graph for this function:

◆ gui_window_set_status()

void gui_window_set_status ( struct gui_window _g,
const char *  text 
)

Definition at line 2266 of file scaffolding.cpp.

References netsurf_version, nsbeos_get_scaffold(), beos_scaffolding::status_bar, text(), and beos_scaffolding::top_view.

Here is the call graph for this function:

◆ gui_window_set_title()

void gui_window_set_title ( struct gui_window _g,
const char *  title 
)

Definition at line 2244 of file scaffolding.cpp.

References nsbeos_get_scaffold(), beos_scaffolding::top_level, beos_scaffolding::top_view, and beos_scaffolding::window.

Here is the call graph for this function:

◆ gui_window_set_url()

nserror gui_window_set_url ( struct gui_window gw,
nsurl url 
)

Definition at line 2288 of file scaffolding.cpp.

References nsbeos_get_scaffold(), NSERROR_OK, nsurl_access(), beos_scaffolding::status_bar, beos_scaffolding::top_level, beos_scaffolding::top_view, and beos_scaffolding::url_bar.

Here is the call graph for this function:

◆ gui_window_start_throbber()

void gui_window_start_throbber ( struct gui_window _g)

Definition at line 2307 of file scaffolding.cpp.

References beos_schedule(), nsbeos_get_scaffold(), nsbeos_throb(), nsbeos_window_update_back_forward(), beos_scaffolding::reload_button, beos_scaffolding::stop_button, and beos_scaffolding::top_view.

Here is the call graph for this function:

◆ gui_window_stop_throbber()

void gui_window_stop_throbber ( struct gui_window _g)

Definition at line 2324 of file scaffolding.cpp.

References beos_schedule(), nsbeos_throbber::framedata, nsbeos_get_scaffold(), nsbeos_throb(), nsbeos_window_update_back_forward(), beos_scaffolding::reload_button, NSThrobber::SetBitmap(), beos_scaffolding::stop_button, beos_scaffolding::throbber, and beos_scaffolding::top_view.

Here is the call graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Normal entry point from OS.

Normal entry point from OS.

/param argc The number of arguments in the string vector. /param argv The argument string vector. /return The return code to the OS

Normal entry point from OS.

Todo:
logging file descriptor update belongs in a nslog_init callback

Definition at line 6528 of file gui.c.

References ami_amiupdate(), ami_arexx_execute(), ami_bitmap_fini(), ami_clipboard_init(), ami_ctxmenu_init(), ami_file_req_init(), ami_font_init(), ami_font_setdevicedpi(), ami_get_msg(), ami_gui_commandline(), ami_gui_get_user_dir(), ami_gui_read_all_tooltypes(), ami_gui_resources_free(), ami_gui_resources_open(), ami_gui_splash_close(), ami_gui_splash_open(), ami_init_mouse_pointers(), ami_layout_table, ami_libs_close(), ami_libs_open(), ami_locate_resource(), ami_memory_fini(), ami_memory_init(), ami_mime_free(), ami_mime_init(), ami_misc_fatal_error(), ami_nsoption_free(), ami_nsoption_read(), ami_openurl_open(), ami_quit, ami_set_options(), ami_theme_init(), amiga_bitmap_table, amiga_clipboard_table, amiga_datatypes_init, amiga_download_table, amiga_fetch_table, amiga_file_table, amiga_icon_init, amiga_misc_table, amiga_plugin_hack_init(), amiga_search_table, amiga_search_web_table, amiga_utf8_table, amiga_window_table, artworks_init(), ASPrintf(), atari_bitmap_table, atari_clipboard_table, atari_download_table, atari_fetch_table, atari_file_table, atari_find_resource(), atari_layout_table, atari_misc_table, atari_poll(), atari_quit, atari_search_table, atari_utf8_table, atari_warn_user(), atari_window_table, beos_bitmap_table, beos_clipboard_table, beos_download_table, beos_fetch_table, beos_layout_table, beos_misc_table, beos_window_table, browser_window_create(), browser_window_destroy(), browser_window::bw, BW_CREATE_HISTORY, CreateDirTree, current_user_dir, current_user_faviconcache, die(), draw_init(), fb_font_finalise(), fb_font_init(), fb_init_resource_path(), fb_warn_user(), fbtk, fbtk_enable_oskb(), fbtk_init(), febpp, feheight, fename, feurl, fewidth, filepath_find(), filepath_sfinddef(), filesystem_llcache_table, framebuffer_bitmap_table, framebuffer_clipboard_table, framebuffer_fetch_table, framebuffer_initialise(), framebuffer_layout_table, framebuffer_misc_table, framebuffer_run(), framebuffer_set_cursor(), framebuffer_utf8_table, framebuffer_window_table, get_cachepath(), get_messages_path(), gui_init(), gui_init2(), init_os_info(), local_file_to_url(), main(), messages_add_from_file(), messages_add_from_inline(), messages_get_errorcode(), netsurf_table::misc, monkey_bitmap_table, monkey_download_table, monkey_fetch_filetype_init(), monkey_fetch_table, monkey_free_handlers(), monkey_kill_browser_windows(), monkey_layout_table, monkey_login_handle_command(), monkey_misc_table, monkey_options_handle_command(), monkey_register_handler(), monkey_run(), monkey_window_handle_command(), monkey_window_table, MOUT_GENERIC, moutf(), netsurf_exit(), netsurf_init(), netsurf_register(), NewObjList(), nsbeos_done, nsbeos_gui_poll(), NSERROR_OK, nsfb, nsgtk_bitmap_table, nsgtk_clipboard_table, nsgtk_download_table, nsgtk_fetch_table, nsgtk_finalise(), nsgtk_init(), nsgtk_layout_table, nsgtk_main(), nsgtk_misc_table, nsgtk_search_table, nsgtk_search_web_table, nsgtk_setup(), nsgtk_window_table, NSLOG, nslog_finalise(), nslog_init(), nslog_stream_configure(), nsmonkey_init_resource(), nsoption_charp, nsoption_commandline(), nsoption_finalise(), nsoption_init(), nsoption_read(), nsoption_set_bool, nsoptions, nsoptions_default, nsurl_create(), nsurl_unref(), option_homepage_url, options, path(), PATH_MAX, pointer_image, process_cmdline(), quit_handler(), replicated, respaths, riscos_bitmap_table, riscos_clipboard_table, riscos_done, riscos_download_table, riscos_fetch_table, riscos_file_table, riscos_layout_table, riscos_misc_table, riscos_poll(), riscos_search_table, riscos_utf8_table, riscos_window_table, ro_gui_choose_language(), ro_warn_user(), save_complete_init(), search_web_init(), set_defaults(), sprite_init(), store(), type, urldb_load(), urldb_load_cookies(), verbose_log, win_destroyed, and window_list.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_menu_item()

static BMenuItem * make_menu_item ( const char *  name,
BMessage *  message,
bool  enabled = false 
)
static

Definition at line 1580 of file scaffolding.cpp.

References messages_get().

Referenced by nsbeos_new_scaffolding().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_attach_toplevel_view()

void nsbeos_attach_toplevel_view ( nsbeos_scaffolding g,
BView *  view 
)

Definition at line 1448 of file scaffolding.cpp.

References NSBrowserWindow::activeWindow, BWindowStack::AddWindow(), B_PANEL_TEXT_COLOR, beos_scaffolding::back_button, beos_scaffolding::forward_button, beos_scaffolding::home_button, beos_scaffolding::menu_bar, nsbeos_scaffolding_update_colors(), NSLOG, beos_scaffolding::popup_menu, recursively_set_menu_items_target(), beos_scaffolding::reload_button, beos_scaffolding::scroll_view, beos_scaffolding::search_bar, beos_scaffolding::status_bar, beos_scaffolding::stop_button, TOOLBAR_HEIGHT, beos_scaffolding::top_view, beos_scaffolding::url_bar, view, and beos_scaffolding::window.

Referenced by gui_window_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_find_last_window()

NSBrowserWindow * nsbeos_find_last_window ( void  )

Definition at line 1408 of file scaffolding.cpp.

Referenced by NSBrowserApplication::ArgvReceived(), nsbeos_new_scaffolding(), and NSBrowserApplication::RefsReceived().

Here is the caller graph for this function:

◆ nsbeos_get_baseview_for_scaffolding()

NSBaseView * nsbeos_get_baseview_for_scaffolding ( nsbeos_scaffolding scaffold)

Definition at line 1433 of file scaffolding.cpp.

References beos_scaffolding::top_view.

◆ nsbeos_get_bwindow_for_scaffolding()

NSBrowserWindow * nsbeos_get_bwindow_for_scaffolding ( nsbeos_scaffolding scaffold)

Definition at line 1428 of file scaffolding.cpp.

References beos_scaffolding::window.

◆ nsbeos_new_scaffolding()

nsbeos_scaffolding * nsbeos_new_scaffolding ( struct gui_window toplevel)

Definition at line 1724 of file scaffolding.cpp.

References APPLICATION_QUIT, beos_scaffolding::back_button, beos_scaffolding::being_destroyed, beos_warn_user(), BROWSER_BUFFER_ALL, BROWSER_BUFFER_ANIMS, BROWSER_EXPORT_TEXT, BROWSER_FIND_TEXT, BROWSER_IMAGES_BACKGROUND, BROWSER_IMAGES_FOREGROUND, BROWSER_NAVIGATE_BACK, BROWSER_NAVIGATE_FORWARD, BROWSER_NAVIGATE_HOME, BROWSER_NAVIGATE_RELOAD, BROWSER_NAVIGATE_STOP, BROWSER_NAVIGATE_UP, BROWSER_NEW_WINDOW, BROWSER_OBJECT_INFO, BROWSER_OBJECT_RELOAD, BROWSER_OBJECT_SAVE, BROWSER_OBJECT_SAVE_URL_URL, BROWSER_PAGE_INFO, BROWSER_PRINT, BROWSER_SAVE, BROWSER_SAVE_COMPLETE, BROWSER_SCALE_VIEW, BROWSER_VIEW_SOURCE, BROWSER_WINDOW_COPY, BROWSER_WINDOW_DEFAULT, BROWSER_WINDOW_RESET, BROWSER_WINDOW_STAGGER, CHOICES_SHOW, COOKIES_SHOW, DRAGGER_WIDTH, beos_scaffolding::forward_button, nsbeos_throbber::framedata, beos_scaffolding::fullscreen, HELP_LAUNCH_INTERACTIVE, HELP_OPEN_ABOUT, HELP_OPEN_CONTENTS, HELP_OPEN_GUIDE, HELP_OPEN_INFORMATION, HELP_OPEN_LICENCE, HISTORY_SHOW_GLOBAL, HISTORY_SHOW_LOCAL, beos_scaffolding::home_button, HOTLIST_ADD_URL, HOTLIST_SHOW, make_menu_item(), beos_scaffolding::menu_bar, messages_get(), netsurf_version, NO_ACTION, nsbeos_find_last_window(), NSLOG, nsoption_int, open_windows, beos_scaffolding::popup_menu, beos_scaffolding::reload_button, replicant_done_sem, replicant_view, replicated, beos_scaffolding::search_bar, NSThrobber::SetBitmap(), NSBaseView::SetScaffolding(), beos_scaffolding::status_bar, beos_scaffolding::stop_button, beos_scaffolding::throb_frame, beos_scaffolding::throbber, beos_scaffolding::tool_bar, TOOLBAR_HEIGHT, beos_scaffolding::top_level, beos_scaffolding::top_view, beos_scaffolding::url_bar, and beos_scaffolding::window.

Referenced by gui_window_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_replicant_main_thread()

int32 nsbeos_replicant_main_thread ( void *  _arg)
static

Definition at line 779 of file scaffolding.cpp.

References netsurf_exit(), nsbeos_done, nsbeos_gui_poll(), and replicant_done_sem.

Referenced by NSBaseView::Instantiate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_scaffolding_destroy()

void nsbeos_scaffolding_destroy ( nsbeos_scaffolding scaffold)

Definition at line 1362 of file scaffolding.cpp.

References beos_scaffolding::being_destroyed, nsbeos_window_destroy_event(), NSLOG, and beos_scaffolding::window.

Referenced by gui_window_destroy(), and nsbeos_scaffolding_dispatch_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_scaffolding_dispatch_event()

void nsbeos_scaffolding_dispatch_event ( nsbeos_scaffolding scaffold,
BMessage *  message 
)

Definition at line 851 of file scaffolding.cpp.

References NSBrowserWindow::activeWindow, APPLICATION_QUIT, B_UI_SETTINGS_CHANGED, beos_warn_user(), BROWSER_BUFFER_ALL, BROWSER_BUFFER_ANIMS, BROWSER_EXPORT_DRAW, BROWSER_EXPORT_TEXT, BROWSER_FIND_TEXT, BROWSER_IMAGES_BACKGROUND, BROWSER_IMAGES_FOREGROUND, BROWSER_NAVIGATE_BACK, BROWSER_NAVIGATE_FORWARD, BROWSER_NAVIGATE_HOME, BROWSER_NAVIGATE_RELOAD, BROWSER_NAVIGATE_RELOAD_ALL, BROWSER_NAVIGATE_STOP, BROWSER_NAVIGATE_UP, BROWSER_NAVIGATE_URL, BROWSER_NEW_WINDOW, BROWSER_OBJECT, BROWSER_OBJECT_EXPORT_SPRITE, BROWSER_OBJECT_INFO, BROWSER_OBJECT_RELOAD, BROWSER_OBJECT_SAVE, BROWSER_OBJECT_SAVE_URL_TEXT, BROWSER_OBJECT_SAVE_URL_URI, BROWSER_OBJECT_SAVE_URL_URL, BROWSER_PAGE, BROWSER_PAGE_INFO, BROWSER_PRINT, BROWSER_SAVE, BROWSER_SAVE_COMPLETE, BROWSER_SAVE_URL_TEXT, BROWSER_SAVE_URL_URI, BROWSER_SAVE_URL_URL, BROWSER_SAVE_VIEW, BROWSER_SCALE_VIEW, BROWSER_VIEW_SOURCE, BROWSER_WINDOW_COPY, browser_window_create(), BROWSER_WINDOW_DEFAULT, browser_window_get_content(), browser_window_has_content(), browser_window_history_back(), browser_window_history_back_available(), browser_window_history_forward(), browser_window_history_forward_available(), browser_window_key_press(), browser_window_navigate(), browser_window_reload(), BROWSER_WINDOW_RESET, BROWSER_WINDOW_STAGGER, browser_window_stop(), browser_window::bw, BW_CREATE_CLONE, BW_CREATE_HISTORY, BW_CREATE_TAB, BW_NAVIGATE_HISTORY, BW_NAVIGATE_UNVERIFIABLE, CHOICES_SHOW, content_invalidate_reuse_data(), COOKIES_DELETE, COOKIES_SHOW, beos_scaffolding::current_menu_object, find_resource(), HELP_LAUNCH_INTERACTIVE, HELP_OPEN_ABOUT, HELP_OPEN_CONTENTS, HELP_OPEN_GUIDE, HELP_OPEN_INFORMATION, HELP_OPEN_LICENCE, HISTORY_EXPORT, HISTORY_SHOW_GLOBAL, HISTORY_SHOW_LOCAL, HOTLIST_ADD_URL, HOTLIST_EXPORT, HOTLIST_SHOW, messages_get_errorcode(), NO_ACTION, NS_KEY_COPY_SELECTION, NS_KEY_CUT_SELECTION, NS_KEY_PASTE, NS_KEY_SELECT_ALL, nsbeos_about(), nsbeos_cookies_init(), nsbeos_done, nsbeos_get_browser_for_gui(), nsbeos_gui_view_source(), nsbeos_scaffolding_destroy(), nsbeos_scaffolding_update_colors(), nsbeos_update_system_ui_colors(), nsbeos_window_update_back_forward(), NSERROR_OK, NSLOG, nsoption_charp, nsurl_create(), nsurl_unref(), path(), PATH_MAX, beos_scaffolding::scroll_view, beos_scaffolding::search_bar, search_web_finalise(), search_web_init(), search_web_omni(), SEARCH_WEB_OMNI_SEARCHONLY, text(), TOOLBAR_ADDRESS_BAR, TOOLBAR_BUTTONS, TOOLBAR_EDIT, TOOLBAR_THROBBER, beos_scaffolding::top_level, TREE_CLEAR_SELECTION, TREE_COLLAPSE_ALL, TREE_COLLAPSE_FOLDERS, TREE_COLLAPSE_LINKS, TREE_EXPAND_ALL, TREE_EXPAND_FOLDERS, TREE_EXPAND_LINKS, TREE_NEW_FOLDER, TREE_NEW_LINK, TREE_SELECT_ALL, TREE_SELECTION, TREE_SELECTION_DELETE, TREE_SELECTION_EDIT, TREE_SELECTION_LAUNCH, beos_scaffolding::url_bar, and beos_scaffolding::window.

Referenced by nsbeos_dispatch_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_scaffolding_popup_menu()

void nsbeos_scaffolding_popup_menu ( nsbeos_scaffolding scaffold,
struct browser_window bw,
BPoint  where,
BPoint  screenWhere 
)

Definition at line 2369 of file scaffolding.cpp.

References browser_window_get_features(), beos_scaffolding::current_menu_object, browser_window_features::object, beos_scaffolding::popup_menu, and browser_window::x.

Referenced by nsbeos_dispatch_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_scaffolding_update_colors()

static void nsbeos_scaffolding_update_colors ( nsbeos_scaffolding g)
static

◆ nsbeos_throb()

void nsbeos_throb ( void *  p)
static

Definition at line 1386 of file scaffolding.cpp.

References beos_schedule(), nsbeos_throbber::framedata, nsbeos_throbber::nframes, nsbeos_throb(), NSThrobber::SetBitmap(), beos_scaffolding::throb_frame, beos_scaffolding::throbber, and beos_scaffolding::top_view.

Referenced by gui_window_start_throbber(), gui_window_stop_throbber(), and nsbeos_throb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_window_destroy_event()

static void nsbeos_window_destroy_event ( NSBrowserWindow window,
nsbeos_scaffolding g,
BMessage *  event 
)
static

Definition at line 797 of file scaffolding.cpp.

References beos_scaffolding::being_destroyed, nsbeos_done, nsbeos_window_destroy_browser(), NSLOG, open_windows, and beos_scaffolding::top_level.

Referenced by nsbeos_scaffolding_destroy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsbeos_window_update_back_forward()

void nsbeos_window_update_back_forward ( struct beos_scaffolding g)
static

Definition at line 1372 of file scaffolding.cpp.

References beos_scaffolding::back_button, browser_window_history_back_available(), browser_window_history_forward_available(), browser_window::bw, beos_scaffolding::forward_button, nsbeos_get_browser_for_gui(), beos_scaffolding::top_level, and beos_scaffolding::top_view.

Referenced by gui_window_start_throbber(), gui_window_stop_throbber(), and nsbeos_scaffolding_dispatch_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ recursively_set_menu_items_target()

static void recursively_set_menu_items_target ( BMenu *  menu,
BHandler *  handler 
)
static

Definition at line 1438 of file scaffolding.cpp.

References recursively_set_menu_items_target().

Referenced by nsbeos_attach_toplevel_view(), and recursively_set_menu_items_target().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ gAppResources

BResources* gAppResources
extern

◆ open_windows

int open_windows = 0
static

current number of open browsers

Definition at line 159 of file scaffolding.cpp.

Referenced by nsbeos_new_scaffolding(), and nsbeos_window_destroy_event().

◆ replicant_done_sem

sem_id replicant_done_sem = -1
static

◆ replicant_thread

thread_id replicant_thread = -1
static

Definition at line 162 of file scaffolding.cpp.

Referenced by NSBaseView::Instantiate(), and NSBaseView::~NSBaseView().

◆ replicant_view

NSBaseView* replicant_view = NULL
static

if not NULL, the replicant View we are running NetSurf for

Definition at line 160 of file scaffolding.cpp.

Referenced by NSBaseView::Instantiate(), and nsbeos_new_scaffolding().