MEPP2 Project
DialogMSDM21.cpp
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published
6 // by the Free Software Foundation; either version 3 of the License,
7 // or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 #include "DialogMSDM21.h"
12 #include "ui_DialogMSDM21.h"
15  : BasePluginDialogQt(parent), ui(new Ui::DialogMSDM21)
16 {
17  ui->setupUi(this);
18 
19  ui->verticalLayout->addWidget(helpButton, 0, Qt::AlignRight);
20  QObject::connect( helpButton, SIGNAL(clicked(bool)), this, SLOT(onHelpTriggered()) );
21 
22  // ---
23 
24  link = "https://liris.cnrs.fr/mepp/doc/nightly/_filter_m_s_d_m2.html";
25 }
29 void
31  bool &two_one,
32  int &scales,
33  bool &colors)
34 {
35  one_two =
36  ui->radioButton_1to2->isChecked() || ui->radioButton_Sim->isChecked();
37  two_one =
38  ui->radioButton_2to1->isChecked() || ui->radioButton_Sim->isChecked();
39  scales = ui->spinBox_scales->value();
40  colors = ui->checkBox_color->isChecked();
41 }
FEVV::DialogMSDM21
Definition: DialogMSDM21.h:23
FEVV::DialogMSDM21::~DialogMSDM21
~DialogMSDM21()
Definition: DialogMSDM21.cpp:27
DialogMSDM21.h
FEVV::DialogMSDM21::ui
Ui::DialogMSDM21 * ui
Definition: DialogMSDM21.h:36
FEVV::BasePluginDialogQt::helpButton
QPushButton * helpButton
Definition: BasePluginDialogQt.h:61
FEVV::BasePluginDialogQt::link
QString link
Definition: BasePluginDialogQt.h:63
FEVV::DialogMSDM21::onHelpTriggered
void onHelpTriggered()
Definition: DialogMSDM21.h:33
Ui
Definition: DialogBooleanOperations1.h:17
FEVV::DialogMSDM21::DialogMSDM21
DialogMSDM21(QWidget *parent=0)
Definition: DialogMSDM21.cpp:14
FEVV::DialogMSDM21::getProcess
void getProcess(bool &one_two, bool &two_one, int &scales, bool &colors)
Definition: DialogMSDM21.cpp:30
FEVV::BasePluginDialogQt
This class is intended to provide a help message to plugins dialogs.
Definition: BasePluginDialogQt.h:29