First incomplete implementation of garbage collector in Scene

This commit is contained in:
brunoherbelin
2020-05-05 17:17:29 +02:00
parent 4e2e3bc739
commit 451c793cdd
11 changed files with 202 additions and 101 deletions

View File

@@ -1,6 +1,7 @@
#ifndef __UI_MANAGER_H_
#define __UI_MANAGER_H_
#include <thread>
#include <string>
#include <list>
using namespace std;
@@ -15,19 +16,19 @@ class Source;
class Navigator
{
// geometry left bar
float width;
float height;
float sourcelist_height;
float padding_width;
// top items : group of buttons openning a pannel
int selected_source_index;
bool selected_button[NAV_COUNT];
void clearSelection();
void toggle(int index);
// bottom items : individual buttons
float width;
float height;
float sourcelist_height;
float padding_width;
// side pannels
void RenderSourcePannel(Source *s);
void RenderNewPannel();
void RenderMainPannel();
@@ -35,6 +36,8 @@ class Navigator
public:
Navigator();
void hidePannel();
void showPannelSource(int index);
void Render();
};
@@ -51,6 +54,8 @@ public:
void Render();
};
// TODO: class ShaderEditor
class UserInterface
{
friend class Navigator;
@@ -68,6 +73,16 @@ class UserInterface
void handleMouse();
void showMenuFile();
// typedef enum {
// FILE_DIALOG_INACTIVE = 0,
// FILE_DIALOG_ACTIVE,
// FILE_DIALOG_FINISHED
// } FileDialogStatus;
// FileDialogStatus filestatus_;
// std::string filename_;
// std::thread filethread_;
// void startOpenFileDialog();
// Private Constructor
UserInterface();
UserInterface(UserInterface const& copy); // Not Implemented