MEPP2 Project
DialogBooleanOperations1.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 
13 #include "ui_DialogBooleanOperations1.h"
17 {
18  ui->setupUi(this);
19 
20  ui->verticalLayout->addWidget(helpButton, 0, Qt::AlignRight);
21  QObject::connect( helpButton, SIGNAL(clicked(bool)), this, SLOT(onHelpTriggered()) );
22 
23  // ---
24 
25  link = "https://liris.cnrs.fr/mepp/doc/nightly/_filter_boolean_operation.html";
26 }
30 void
31 FEVV::DialogBooleanOperations1::setParameters(const std::string &operation)
32 {
33  if( operation == "UNION")
34  ui->radioButton_Union->setChecked(true);
35  else if( operation == "INTER")
36  ui->radioButton_Inter->setChecked(true);
37  else
38  ui->radioButton_Minus->setChecked(true);
39 }
41 void
43 {
44  if(ui->radioButton_Union->isChecked())
45  operation = "UNION";
46  else if(ui->radioButton_Inter->isChecked())
47  operation = "INTER";
48  else
49  operation = "MINUS";
50 }
FEVV::DialogBooleanOperations1::DialogBooleanOperations1
DialogBooleanOperations1(QWidget *parent=0)
Definition: DialogBooleanOperations1.cpp:15
FEVV::DialogBooleanOperations1::getParameters
void getParameters(std::string &operation)
Definition: DialogBooleanOperations1.cpp:42
FEVV::DialogBooleanOperations1::setParameters
void setParameters(const std::string &operation)
Definition: DialogBooleanOperations1.cpp:31
FEVV::DialogBooleanOperations1
Definition: DialogBooleanOperations1.h:24
DialogBooleanOperations1.h
FEVV::BasePluginDialogQt::helpButton
QPushButton * helpButton
Definition: BasePluginDialogQt.h:61
FEVV::BasePluginDialogQt::link
QString link
Definition: BasePluginDialogQt.h:63
FEVV::DialogBooleanOperations1::~DialogBooleanOperations1
~DialogBooleanOperations1()
Definition: DialogBooleanOperations1.cpp:28
Ui
Definition: DialogBooleanOperations1.h:17
FEVV::DialogBooleanOperations1::onHelpTriggered
void onHelpTriggered()
Definition: DialogBooleanOperations1.h:35
FEVV::BasePluginDialogQt
This class is intended to provide a help message to plugins dialogs.
Definition: BasePluginDialogQt.h:29
FEVV::DialogBooleanOperations1::ui
Ui::DialogBooleanOperations1 * ui
Definition: DialogBooleanOperations1.h:38