make the command queue static so it is shared by all screen instances
[clinton/Smoothieware.git] / src / modules / utils / panel / PanelScreen.h
index d44a41b..b249dee 100644 (file)
@@ -9,6 +9,7 @@
 #define PANELSCREEN_H
 
 #include <string>
+#include <vector>
 
 class Panel;
 
@@ -16,6 +17,8 @@ class PanelScreen
 {
 public:
     PanelScreen();
+    virtual ~PanelScreen();
+
     virtual void on_refresh();
     virtual void on_main_loop();
     PanelScreen *set_parent(PanelScreen *passed_parent);
@@ -34,7 +37,7 @@ protected:
     void send_gcode(std::string g);
     void send_gcode(const char *gm_code, char parameter, float value);
     void send_command(const char *gcstr);
-
+    static std::vector<std::string> command_queue;
     PanelScreen *parent;
 };