|
|
@ -1,8 +1,12 @@ |
|
|
|
#ifndef APP_BROWSER_CONTAINER_TAB_H |
|
|
|
#ifndef APP_BROWSER_CONTAINER_TAB_H |
|
|
|
#define APP_BROWSER_CONTAINER_TAB_H |
|
|
|
#define APP_BROWSER_CONTAINER_TAB_H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dependencies
|
|
|
|
#include "../container.h" |
|
|
|
#include "../container.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Requirements
|
|
|
|
|
|
|
|
#include "page.h" |
|
|
|
|
|
|
|
|
|
|
|
namespace app |
|
|
|
namespace app |
|
|
|
{ |
|
|
|
{ |
|
|
|
namespace browser |
|
|
|
namespace browser |
|
|
@ -11,18 +15,31 @@ namespace app |
|
|
|
|
|
|
|
|
|
|
|
namespace container |
|
|
|
namespace container |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
class Page; // @TODO not required here
|
|
|
|
|
|
|
|
|
|
|
|
class Tab |
|
|
|
class Tab |
|
|
|
{ |
|
|
|
{ |
|
|
|
public: |
|
|
|
public: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// GTK
|
|
|
|
GtkWidget *gtk; |
|
|
|
GtkWidget *gtk; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Defaults
|
|
|
|
const gboolean REORDERABLE = true; |
|
|
|
const gboolean REORDERABLE = true; |
|
|
|
const gboolean SCROLLABLE = true; |
|
|
|
const gboolean SCROLLABLE = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dependencies
|
|
|
|
|
|
|
|
Container *container; |
|
|
|
|
|
|
|
|
|
|
|
Tab( |
|
|
|
Tab( |
|
|
|
Container *container |
|
|
|
Container *container |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void append( |
|
|
|
|
|
|
|
char *request, |
|
|
|
|
|
|
|
bool open, |
|
|
|
|
|
|
|
bool focus |
|
|
|
|
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|