1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef VVTOOLCROPIMAGE_H
19 #define VVTOOLCROPIMAGE_H
22 #include <QtDesigner/QDesignerExportWidget>
26 #include "vvToolBase.h"
27 #include "vvToolWidgetBase.h"
28 #include "vvMainWindowBase.h"
29 #include "ui_vvToolCropImage.h"
31 //------------------------------------------------------------------------------
32 class vvToolCropImage:
33 public vvToolWidgetBase,
34 public vvToolBase<vvToolCropImage>,
35 private Ui::vvToolCropImage
39 vvToolCropImage(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
42 virtual void InputIsSelected(vvSlicerManager *m);
47 virtual void reject();
48 void autoCropValueChanged(double v);
49 void sliderValueChanged(int id);
52 //-----------------------------------------------------
53 static void Initialize() {
55 SetToolMenuName("Crop");
56 SetToolIconFilename(":/common/icons/crop.png");
57 SetToolTip("Crop image.");
61 Ui::vvToolCropImage ui;
66 virtual void closeEvent(QCloseEvent *event);
68 std::vector<QSlider*> mSliders;
69 }; // end class vvToolCropImage
70 //------------------------------------------------------------------------------