Skip to content

Commit

Permalink
organization!
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerryliu committed May 30, 2017
1 parent 09cacbe commit 5f57b66
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,24 @@ class Window : public Gtk::ApplicationWindow {
Gtk::HeaderBar m_headerbar;
Gtk::StackSwitcher m_stackswitcher;
Gtk::Stack m_stack;

// Computer Devices:
vector<Device> devices;
vector<vector<vector<Device::sensor_reading>>> all_readings;
vector<string> device_names;

// Summary tree
Gtk::ScrolledWindow m_scrolledwindow;
std::unique_ptr<Tree> tree;

// Notebook:
Gtk::Notebook m_notebook;
vector<Gtk::Box> m_Notebook_Boxes;
vector<vector<std::unique_ptr<Graph>>> m_notebook_graphs;
vector<vector<std::unique_ptr<Legend>>> m_notebook_legends;
vector<vector<vector<Gdk::RGBA>>> m_colors;
vector<Gdk::RGBA> gen_colors(unsigned int size);

// Async value updates to prevent stalls:
Glib::Dispatcher m_Dispatcher;
bool stop_work = false;
Expand All @@ -47,7 +51,6 @@ class Window : public Gtk::ApplicationWindow {

void update_device_vals();
void update_all_components();
vector<Gdk::RGBA> gen_colors(unsigned int size);
void on_button_quit();
};

Expand Down

0 comments on commit 5f57b66

Please sign in to comment.