Initial stuff; mostly ok but some hints are still not implemented as warnings.
[dcpomatic.git] / src / wx / table_dialog.h
index 23017c3b635c2d4652e229e0aa67cbbd3d262493..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;
        }
 
        void add (wxString text, bool label);
        void add_spacer ();
-       
+
        void layout ();
 
-private:       
-       wxSizer* _overall_sizer;
        wxFlexGridSizer* _table;
+
+private:
+       wxSizer* _overall_sizer;
 };
 
 #endif