The Browser class is a top-level window for viewing SGML documents. More...
Publicly inherits QWidget.
Browser | ( QWidget* parent=???, const char* name=??? ); | |
const Url& | baseUrl | ( ); |
bool | reload | ( ); |
void | setTitle | ( QString title ); |
void | setTransfer | ( bool b ); |
void | stop | ( ); |
~Browser | ( ); |
void | aboutAboutQweb | ( ); |
void | back | ( ); |
void | bookmarksChanged | ( ); |
void | canClose | ( bool b ); |
void | canGoBack | ( bool b ); |
void | canGoForward | ( bool b ); |
void | doClose | ( ); |
void | doNewBrowser | ( ); |
void | doReload | ( ); |
void | doSaveAs | ( ); |
void | dtdSelected | ( QString dtdName ); |
void | errDialog | ( QString error ); |
void | forward | ( ); |
void | goActivated | ( int id ); |
void | home | ( ); |
void | open | ( ); |
void | open | ( const Url& url, bool reload=??? ); |
void | optionsClearDocumentCache | ( ); |
void | optionsClearDtdCache | ( ); |
void | optionsSavePreferences | ( ); |
void | optionsSaveSgmlCatalog | ( ); |
void | setBaseUrl | ( const Url& url ); |
void | startOfData | ( ); |
void | status | ( QString msg ); |
void | urlChanged | ( const Url& url ); |
void | windowsConsole | ( ); |
void | windowsPreferences | ( ); |
void | windowsSgmlCatalog | ( ); |
void | windowsStyleEditor | ( ); |
void | closeEvent | ( QCloseEvent* e ); |
void | enterEvent | ( QEvent* e ); |
void | resizeEvent | ( QResizeEvent* e ); |
void | timerEvent | ( QTimerEvent* e ); |
QPushButton* | _back; |
Url | _baseUrl; |
Canvas* | _canvas; |
QString | _dtdName; |
QPopupMenu* | _file; |
QPushButton* | _forward; |
QPopupMenu* | _go; |
History* | _history; |
QPushButton* | _home; |
TransferLogo* | _logo; |
QMenuBar* | _menu; |
QPushButton* | _reload; |
bool | _reloadFlag; |
QFrame* | _separator1; |
QFrame* | _separator2; |
QLabel* | _status; |
int | _statusTimerId; |
QPushButton* | _stop; |
QLineEdit* | _url; |
The Browser class is a top-level window for viewing SGML documents.
The Browser is the window used for viewing SGML documents and other data types. Each Browser has a single Canvas that manages a scrolled window containing an appropriate renderer for whatever type of document has been requested. Usually the renderer is a VerticalRenderer, for displaying an SGML document.The Browser communicates with the global Bookmarks object to provide an up-to-date list of the user's bookmarks in a menu. The Bookmarks object manages the menu, and processes menu selection events. The Browser just displays the menu.
Each browser has a separate History of visited URLs. The user can step forward and backward through the History, or go directly to a visited URL by selecting it from the "Go" menu.
The user can navigate a "web" of linked documents by clicking on hyperlinks within the document (on text and images), or by typing a URL directly into an entry field and pressing RETURN.
A new browser can be spawned from an existing browser, however there is no ownership relationship between the two browsers.
The browser also provides menu items, under "Options", for clearing caches, editing style sheets, the SGML catalog, and user preferences, and for saving the SGML catalog and user preferences.
Create a new browser window.
Return the current base URL for the document.
Set the text in the browser window title bar.
Abort all requests, and die.
This is the action routine for the menu item Go-Backward and the back button. Open the previous URL in the browser history.
This function is invoked whenever there is a change in the bookamrks. The old bookmarks menu is deleted, and a new one is requested.
If b is TRUE then that means there is more than one Browser window open, and this one can close itself with call exit(). Activate the File-Close menu item.
If b id TRUE then there is at least one entry in the browser before the current one. Activate the back button and the Go-Backward menu item.
If b is TRUE then there is at least one entry in the browser history after the current one. Activate the forward button and the Go-Forward menu item.
This is the action routine for the menu item File-Close. It closes the browser window, if it can (if it is not the only browser window).
This is the action routine for the menu item File-New Browser... Create a new top-level browser window, and send it on its way.
Reload the current page, withut using the cache.
This function notifies the browser that the SgmlParser has settled on a document type declaration for the current document.
Popup and error dialog, centered over the browser window.
This is the action routine for the menu item Go-Forward and the forward button. Open the next URL in the browser history.
This is the action routine for a menu selection event from the Go menu. Open the curresponding url (if any).
This is the action routine for the menu item Go-Home and the home button. Open the home URL in the browser window, and append it to the browser history.
Take the string in the URL entry field and (attempt to) open it in this browser.
Open the given URL in this browser, and append it to the browser history.
Asks the Cache to clear all of its stored data.
Asks the DtdManager to clear its cache of DTDs and Style Sheets.
This is the action routine for the menu item Options-Save Preferences. It just calls options-save().
Asks the SgmlCatalog to write itself out to a file.
This function sets the base URL for the browser. This function is called when a new document is opened, or when following HTTP redirects.
Place the given string in the status bar at the bottom of the browser window for at most five seconds.
Remove ourself from the list of open browsers, and die.
Notify the Bookmarks that we are the active browser, so that any selection from the Bookmarks menu will be opened in this browser.
Reposition everything and notify the renderers of the size change.
Depending on the timer ID... Clear the status bar's text, flip to the next frame in the cheezy animated icon, or give the renderers a chance to redraw themselves.