Tidy up language configuration a bit.
[dcpomatic.git] / src / wx / table_dialog.h
index f04c2027ca4d8feba8b5397fc8330b9c16390edf..9e1d09d5737e7c9fb0f7e18f86950da8cf551a15 100644 (file)
 class TableDialog : public wxDialog
 {
 public:
-       TableDialog (wxWindow* parent, wxString title, int columns, bool cancel);
+       TableDialog (wxWindow* parent, wxString title, int columns, int growable, bool cancel);
 
 protected:
        template<class T>
-       T* add (T* w) {
-               _table->Add (w, 1, wxEXPAND);
+       T* add (T* w, int proportion = 1, int flag = wxEXPAND) {
+               _table->Add (w, proportion, flag);
                return w;
        }
 
@@ -39,9 +39,10 @@ protected:
 
        void layout ();
 
+       wxFlexGridSizer* _table;
+
 private:
        wxSizer* _overall_sizer;
-       wxFlexGridSizer* _table;
 };
 
 #endif