summaryrefslogtreecommitdiff
path: root/src/wx/wx_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/wx_util.cc')
-rw-r--r--src/wx/wx_util.cc45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc
new file mode 100644
index 000000000..97a66a5ba
--- /dev/null
+++ b/src/wx/wx_util.cc
@@ -0,0 +1,45 @@
+/*
+ Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+
+ This program 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,
+ 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.
+
+*/
+
+/** @file src/wx/wx_util.cc
+ * @brief Some utility functions.
+ */
+
+#include "wx_util.h"
+
+using namespace std;
+
+wxStaticText *
+add_label_to_sizer (wxSizer* s, wxWindow* p, list<wxControl*>& c, string t)
+{
+ wxStaticText* m = new wxStaticText (p, wxID_ANY, wxString (t.c_str (), wxConvUTF8));
+ c.push_back (m);
+ s->Add (m, 0, wxALIGN_CENTER_VERTICAL);
+ return m;
+}
+
+#if 0
+void
+error_dialog (string m)
+{
+ Gtk::MessageDialog d (m, false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
+ d.set_title ("DVD-o-matic");
+ d.run ();
+}
+#endif