Remove unused image content dialog.
authorCarl Hetherington <cth@carlh.net>
Fri, 19 Jul 2013 18:56:01 +0000 (19:56 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 19 Jul 2013 18:56:01 +0000 (19:56 +0100)
src/wx/film_editor.cc
src/wx/still_image_content_dialog.cc [deleted file]
src/wx/still_image_content_dialog.h [deleted file]
src/wx/wscript

index c2351ed25b196eaeeb20785958a92453b79537d2..8ae63bd4bfad1c6d6878b9366694bd661fc4f26a 100644 (file)
@@ -48,7 +48,6 @@
 #include "gain_calculator_dialog.h"
 #include "dci_metadata_dialog.h"
 #include "audio_dialog.h"
-#include "still_image_content_dialog.h"
 #include "timeline_dialog.h"
 #include "audio_mapping_view.h"
 
diff --git a/src/wx/still_image_content_dialog.cc b/src/wx/still_image_content_dialog.cc
deleted file mode 100644 (file)
index 7042054..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
-    Copyright (C) 2013 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.
-
-*/
-
-#include <wx/spinctrl.h>
-#include "lib/still_image_content.h"
-#include "still_image_content_dialog.h"
-#include "wx_util.h"
-
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
-
-StillImageContentDialog::StillImageContentDialog (wxWindow* parent, shared_ptr<StillImageContent> content)
-       : wxDialog (parent, wxID_ANY, _("Stlll Image"))
-       , _content (content)
-{
-       wxFlexGridSizer* grid = new wxFlexGridSizer (3, 6, 6);
-       grid->AddGrowableCol (1, 1);
-
-       {
-               add_label_to_sizer (grid, this, _("Duration"), true);
-               wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
-               _video_length = new wxSpinCtrl (this);
-               s->Add (_video_length);
-               /// TRANSLATORS: this is an abbreviation for seconds, the unit of time
-               add_label_to_sizer (s, this, _("s"), false);
-               grid->Add (s);
-       }
-
-       wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
-       overall_sizer->Add (grid, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
-
-       wxSizer* buttons = CreateSeparatedButtonSizer (wxOK);
-       if (buttons) {
-               overall_sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder());
-       }
-
-       SetSizer (overall_sizer);
-       overall_sizer->Layout ();
-       overall_sizer->SetSizeHints (this);
-
-       checked_set (_video_length, content->video_length () / 24);
-       _video_length->Connect (wxID_ANY, wxEVT_COMMAND_SPINCTRL_UPDATED, wxCommandEventHandler (StillImageContentDialog::video_length_changed), 0, this);
-}
-
-void
-StillImageContentDialog::video_length_changed (wxCommandEvent &)
-{
-       shared_ptr<StillImageContent> c = _content.lock ();
-       if (!c) {
-               return;
-       }
-       
-       c->set_video_length (_video_length->GetValue() * 24);
-}
diff --git a/src/wx/still_image_content_dialog.h b/src/wx/still_image_content_dialog.h
deleted file mode 100644 (file)
index b01d79b..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
-    Copyright (C) 2013 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.
-
-*/
-
-#include <wx/wx.h>
-
-class wxSpinCtrl;
-class StillImageContent;
-class Region;
-
-class StillImageContentDialog : public wxDialog
-{
-public:
-       StillImageContentDialog (wxWindow *, boost::shared_ptr<StillImageContent>);
-
-private:
-       void video_length_changed (wxCommandEvent &);
-
-       boost::weak_ptr<StillImageContent> _content;
-       wxSpinCtrl* _video_length;
-};
index a6af05bc4f66bceb8fcf2c77875538652073647c..c46321f1cf2119ab86354d5cf6370bf5edc09557 100644 (file)
@@ -17,7 +17,6 @@ sources = """
           filter_dialog.cc
           filter_view.cc
           gain_calculator_dialog.cc
-          still_image_content_dialog.cc
           job_manager_view.cc
           job_wrapper.cc
           new_film_dialog.cc