summaryrefslogtreecommitdiff
path: root/src/wx/auto_crop_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-01 21:20:51 +0000
committerCarl Hetherington <cth@carlh.net>2022-04-29 01:44:15 +0200
commitd5c059a2ff9bab5c2973db6bc4860591679dd42b (patch)
treec8ec57cdeae4c3746f6ff7abd28816310540604b /src/wx/auto_crop_dialog.h
parent5b2b8279d8eb33d31166027d876b4c9f86087bfd (diff)
Primitive auto-crop (#1477).
Diffstat (limited to 'src/wx/auto_crop_dialog.h')
-rw-r--r--src/wx/auto_crop_dialog.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/wx/auto_crop_dialog.h b/src/wx/auto_crop_dialog.h
new file mode 100644
index 000000000..0615c14bb
--- /dev/null
+++ b/src/wx/auto_crop_dialog.h
@@ -0,0 +1,47 @@
+/*
+ Copyright (C) 2021 Carl Hetherington <cth@carlh.net>
+
+ 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.
+
+ 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 DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
+#include "table_dialog.h"
+#include "lib/types.h"
+#include <boost/signals2.hpp>
+
+
+class SpinCtrl;
+
+
+class AutoCropDialog : public TableDialog
+{
+public:
+ AutoCropDialog (wxWindow* parent, Crop crop);
+
+ Crop get () const;
+ void set (Crop crop);
+
+ boost::signals2::signal<void (Crop)> Changed;
+
+private:
+ SpinCtrl* _left;
+ SpinCtrl* _right;
+ SpinCtrl* _top;
+ SpinCtrl* _bottom;
+ SpinCtrl* _threshold;
+};
+