mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-10 01:39:59 +01:00
First incomplete implementation of garbage collector in Scene
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user