diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-19 19:56:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-19 19:56:01 +0100 |
| commit | e1b818fe3eb59d854c1b8b7951a8af58c3095ba2 (patch) | |
| tree | 4fcbce880badddd3e364a857b6d77c3e02cd37f0 /src | |
| parent | a2fd8a4e3750cfa3ff7be305b4052a0699a3ffee (diff) | |
Remove unused image content dialog.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_editor.cc | 1 | ||||
| -rw-r--r-- | src/wx/still_image_content_dialog.cc | 70 | ||||
| -rw-r--r-- | src/wx/still_image_content_dialog.h | 36 | ||||
| -rw-r--r-- | src/wx/wscript | 1 |
4 files changed, 0 insertions, 108 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index c2351ed25..8ae63bd4b 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -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 index 704205418..000000000 --- a/src/wx/still_image_content_dialog.cc +++ /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 index b01d79b28..000000000 --- a/src/wx/still_image_content_dialog.h +++ /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; -}; diff --git a/src/wx/wscript b/src/wx/wscript index a6af05bc4..c46321f1c 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -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 |
