X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftable_dialog.h;h=8969dc56134a8bdeba72c9e815068f67955e8f07;hb=e1093a718c15e1c9ca98abbf514ec54293f0723a;hp=f04c2027ca4d8feba8b5397fc8330b9c16390edf;hpb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;p=dcpomatic.git diff --git a/src/wx/table_dialog.h b/src/wx/table_dialog.h index f04c2027c..8969dc561 100644 --- a/src/wx/table_dialog.h +++ b/src/wx/table_dialog.h @@ -1,19 +1,20 @@ /* Copyright (C) 2014 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -25,12 +26,12 @@ 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 - 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 +40,10 @@ protected: void layout (); + wxFlexGridSizer* _table; + private: wxSizer* _overall_sizer; - wxFlexGridSizer* _table; }; #endif