|
|
|
@ -1,22 +1,19 @@
@@ -1,22 +1,19 @@
|
|
|
|
|
#ifndef BROWSER_H |
|
|
|
|
#define BROWSER_H |
|
|
|
|
#ifndef APP_H |
|
|
|
|
#define APP_H |
|
|
|
|
|
|
|
|
|
#include "interfaces/graphical/renderers/glfw/Window.h" |
|
|
|
|
#include "interfaces/components/Component.h" |
|
|
|
|
#include "interfaces/components/DocumentComponent.h" |
|
|
|
|
#include "interfaces/components/ComponentBuilder.h" |
|
|
|
|
#include "parsers/markup/Node.h" |
|
|
|
|
#include <GL/glew.h> |
|
|
|
|
#include <GLFW/glfw3.h> |
|
|
|
|
#include <memory> |
|
|
|
|
//#include <GL/glew.h>
|
|
|
|
|
//#include <GLFW/glfw3.h>
|
|
|
|
|
//#include <memory>
|
|
|
|
|
#include <vector> |
|
|
|
|
#include <algorithm> |
|
|
|
|
#include "networking/HTTPResponse.h" |
|
|
|
|
#include "URL.h" |
|
|
|
|
#include "interfaces/graphical/renderers/glfw/Window.h" |
|
|
|
|
//#include <algorithm>
|
|
|
|
|
|
|
|
|
|
void doOnClick(std::string type, Component *component, Window *win); |
|
|
|
|
|
|
|
|
|
// this is the actually application that
|
|
|
|
|
// contains a list of windows
|
|
|
|
|
class App { |
|
|
|
|
public: |
|
|
|
|
std::shared_ptr<Node> loadTheme(std::string filename); |
|
|
|
@ -42,22 +39,4 @@ public:
@@ -42,22 +39,4 @@ public:
|
|
|
|
|
size_t windowCounter = 0; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// this is the actually application that
|
|
|
|
|
// contains a list of windows
|
|
|
|
|
// separate window functions from browser functions
|
|
|
|
|
class Browser : public App { |
|
|
|
|
private: |
|
|
|
|
public: |
|
|
|
|
Browser(); |
|
|
|
|
std::shared_ptr<DocumentComponent> getActiveDocumentComponent(); |
|
|
|
|
|
|
|
|
|
std::shared_ptr<Component> tabComponent = nullptr; |
|
|
|
|
std::shared_ptr<Component> addressComponent = nullptr; |
|
|
|
|
|
|
|
|
|
//URL currentURL;
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
//bool setWindowContent(URL const& url);
|
|
|
|
|
//void handleRequest(const HTTPResponse &response);
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|