summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_server.cc21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_server.cc b/src/tools/dcpomatic_server.cc
index 72ac66706..978f600b2 100644
--- a/src/tools/dcpomatic_server.cc
+++ b/src/tools/dcpomatic_server.cc
@@ -68,11 +68,19 @@ private:
static shared_ptr<MemoryLog> memory_log (new MemoryLog);
+#ifdef DCPOMATIC_OSX
+class StatusDialog : public wxFrame
+#else
class StatusDialog : public wxDialog
+#endif
{
public:
StatusDialog ()
+#ifdef DCPOMATIC_OSX
+ : wxFrame (0, wxID_ANY, _("DCP-o-matic encode server"), wxDefaultPosition, wxSize (600, 80), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
+#else
: wxDialog (0, wxID_ANY, _("DCP-o-matic encode server"), wxDefaultPosition, wxSize (600, 80), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
+#endif
, _timer (this, ID_timer)
{
_sizer = new wxFlexGridSizer (1, 6, 6);
@@ -115,10 +123,19 @@ public:
icon.CopyFromBitmap (bitmap);
#endif
#ifndef DCPOMATIC_OSX
- /* XXX: fix this for OS X */
SetIcon (icon, std_to_wx ("DCP-o-matic encode server"));
#endif
+#ifdef DCPOMATIC_OSX
+ wxMenu* file = new wxMenu;
+ file->Append (wxID_EXIT, _("&Exit"));
+ wxMenuBar* bar = new wxMenuBar;
+ bar->Append (file, _("&File"));
+ SetMenuBar (bar);
+
+ status ();
+#endif
+
Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&TaskBarIcon::status, this), ID_status);
Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&TaskBarIcon::quit, this), ID_quit);
}
@@ -162,7 +179,9 @@ private:
}
dcpomatic_setup_path_encoding ();
+ dcpomatic_setup_i18n ();
dcpomatic_setup ();
+ Config::drop ();
_icon = new TaskBarIcon;
_thread = new thread (bind (&App::main_thread, this));