Fix indentation.
[ardour.git] / gtk2_ardour / window_proxy.h
index e2b015c27b22758593339b1f14456ca2274c8f2c..58a67eb3918a6389e449e313c9854594c81aa027 100755 (executable)
@@ -51,6 +51,12 @@ public:
        /** Show this window */
        virtual void show () = 0;
 
+       /** @return true if the configuration for this window should be
+        *  global (ie across all sessions), otherwise false if it should
+        *  be session-specific.
+        */
+       virtual bool rc_configured () const = 0;
+
        virtual Gtk::Window* get_gtk_window () const = 0;
 
 private:
@@ -84,10 +90,12 @@ public:
                return _window;
        }
 
-       /** Set the window and set it up.  To be used after initial window creation */
-       void set (T* w) {
+       /** Set the window and maybe set it up.  To be used after initial window creation */
+       void set (T* w, bool s = true) {
                _window = w;
-               setup ();
+               if (s) {
+                       setup ();
+               }
        }
 
 private:
@@ -124,6 +132,10 @@ public:
                }
        }
 
+       bool rc_configured () const {
+               return true;
+       }
+
 private:
        std::string _action;
 };