MEPP2 Project
cmdm_dialog.cpp
Go to the documentation of this file.
1 // Copyright (c) 2012-2020 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 "cmdm_dialog.h"
12 #include "ui_cmdm_dialog.h"
15  : BasePluginDialogQt(parent), ui(new Ui::CMDMDialog)
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_c_m_d_m.html";
25 }
29 void
31  bool &two_one,
32  int &scales,
33  bool &colors)
34 {
35  one_two = ui->radioButton_1to2->isChecked() || ui->radioButton_Sym->isChecked();
36  two_one = ui->radioButton_2to1->isChecked() || ui->radioButton_Sym->isChecked();
37  scales = ui->spinBox_scales->value();
38  colors = ui->checkBox_color->isChecked();
39 }
FEVV::CMDMDialog::ui
Ui::CMDMDialog * ui
Definition: cmdm_dialog.h:36
FEVV::CMDMDialog::onHelpTriggered
void onHelpTriggered()
Definition: cmdm_dialog.h:33
FEVV::BasePluginDialogQt::helpButton
QPushButton * helpButton
Definition: BasePluginDialogQt.h:61
FEVV::BasePluginDialogQt::link
QString link
Definition: BasePluginDialogQt.h:63
FEVV::CMDMDialog::getProcess
void getProcess(bool &one_two, bool &two_one, int &scales, bool &colors)
Definition: cmdm_dialog.cpp:30
cmdm_dialog.h
Ui
Definition: DialogBooleanOperations1.h:17
FEVV::CMDMDialog::~CMDMDialog
~CMDMDialog()
Definition: cmdm_dialog.cpp:27
FEVV::BasePluginDialogQt
This class is intended to provide a help message to plugins dialogs.
Definition: BasePluginDialogQt.h:29
FEVV::CMDMDialog::CMDMDialog
CMDMDialog(QWidget *parent=0)
Definition: cmdm_dialog.cpp:14
FEVV::CMDMDialog
Definition: cmdm_dialog.h:23