diff options
author | zeldakatze <mail@zeldakatze.de> | 2025-10-03 23:41:33 +0200 |
---|---|---|
committer | zeldakatze <mail@zeldakatze.de> | 2025-10-03 23:44:51 +0200 |
commit | 885816be897838130354223de7f5c7e3fd54e216 (patch) | |
tree | ac81a4adf6ff471f210bc1ff868418e8ce4fbde6 /BrowserTab.h | |
download | BeCapsulated-main.tar.gz BeCapsulated-main.zip |
Diffstat (limited to 'BrowserTab.h')
-rw-r--r-- | BrowserTab.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/BrowserTab.h b/BrowserTab.h new file mode 100644 index 0000000..fe9540d --- /dev/null +++ b/BrowserTab.h @@ -0,0 +1,46 @@ +/* + * Copyright 2025, Maite Gamper <mail@zeldakatze.de> + * All rights reserved. Distributed under the terms of the MIT license. + */ +#ifndef _BROWSER_TAB_H +#define _BROWSER_TAB_H + + +#include <SupportDefs.h> + +#include <View.h> +#include <Button.h> +#include <TextControl.h> +#include <ScrollBar.h> +#include <StringView.h> +#include <StatusBar.h> + +#include "GeminiView.h" +#include "GeminiConnectionHandler.h" + +class ConnectionHandler; + +class BrowserTab : public BView { + public: + BrowserTab(); + virtual ~BrowserTab(); + + virtual void MessageReceived(BMessage* msg); + + virtual void ChangePage(); + void SetStatusText(BString text); + + GeminiView *GetGeminiView() {return text_view;}; + private: + BTextControl *url_field; + BButton *load_button; + BStringView *status_text; + GeminiView *text_view; + BScrollBar *scroll_bar; + BStatusBar *status_bar; + ConnectionHandler *connection_handler; + + BMessage *goMsg; +}; + +#endif // _BROWSER_TAB_H |