Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1322 from guilhermito/autotune_share_data
Autotune data share
- Loading branch information
Showing
13 changed files
with
1,048 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/** | ||
****************************************************************************** | ||
* @file foruminteractionform.cpp | ||
* @author Tau Labs, http://taulabs.org, Copyright (C) 2014 | ||
* @addtogroup Utils | ||
* @{ | ||
* @addtogroup ForumInteractionForm | ||
* @{ | ||
* @brief Utility to present a form to the user where he can input is forum | ||
* credentials and aircraft details | ||
*****************************************************************************/ | ||
/* | ||
* This program 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 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program 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 this program; if not, write to the Free Software Foundation, Inc., | ||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
*/ | ||
|
||
#include "foruminteractionform.h" | ||
#include "ui_foruminteractionform.h" | ||
|
||
namespace Utils { | ||
|
||
ForumInteractionForm::ForumInteractionForm(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::ForumInteractionForm) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
|
||
ForumInteractionForm::~ForumInteractionForm() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void ForumInteractionForm::setPassword(QString value) | ||
{ | ||
ui->passwordLE->setText(value); | ||
ui->saveCredentialsCB->setChecked(true); | ||
} | ||
|
||
void ForumInteractionForm::setUserName(QString value) | ||
{ | ||
ui->userNameLE->setText(value); | ||
ui->saveCredentialsCB->setChecked(true); | ||
} | ||
|
||
QString ForumInteractionForm::getUserName() | ||
{ | ||
return ui->userNameLE->text(); | ||
} | ||
|
||
QString ForumInteractionForm::getPassword() | ||
{ | ||
return ui->passwordLE->text(); | ||
} | ||
|
||
void ForumInteractionForm::setObservations(QString value) | ||
{ | ||
ui->observationsTE->setText(value); | ||
} | ||
|
||
void ForumInteractionForm::setAircraftDescription(QString value) | ||
{ | ||
ui->aircraftDescriptionTE->setText(value); | ||
} | ||
|
||
QString ForumInteractionForm::getObservations() | ||
{ | ||
return ui->observationsTE->toPlainText(); | ||
} | ||
|
||
QString ForumInteractionForm::getAircraftDescription() | ||
{ | ||
return ui->aircraftDescriptionTE->toPlainText(); | ||
} | ||
|
||
bool ForumInteractionForm::getSaveCredentials() | ||
{ | ||
return ui->saveCredentialsCB->isChecked(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/** | ||
****************************************************************************** | ||
* @file foruminteractionform.h | ||
* @author Tau Labs, http://taulabs.org, Copyright (C) 2014 | ||
* @addtogroup [Utils | ||
* @{ | ||
* @addtogroup ForumInteractionForm | ||
* @{ | ||
* @brief Utility to present a form to the user where he can input is forum | ||
* credentials and aircraft details | ||
*****************************************************************************/ | ||
/* | ||
* This program 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 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program 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 this program; if not, write to the Free Software Foundation, Inc., | ||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
*/ | ||
|
||
#ifndef FORUMINTERACTIONFORM_H | ||
#define FORUMINTERACTIONFORM_H | ||
|
||
#include <QDialog> | ||
#include "utils_global.h" | ||
|
||
namespace Ui { | ||
class ForumInteractionForm; | ||
} | ||
|
||
namespace Utils { | ||
|
||
class QTCREATOR_UTILS_EXPORT ForumInteractionForm : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit ForumInteractionForm(QWidget *parent = 0); | ||
~ForumInteractionForm(); | ||
void setPassword(QString value); | ||
void setUserName(QString value); | ||
QString getUserName(); | ||
QString getPassword(); | ||
void setObservations(QString value); | ||
void setAircraftDescription(QString value); | ||
QString getObservations(); | ||
QString getAircraftDescription(); | ||
bool getSaveCredentials(); | ||
|
||
private: | ||
Ui::ForumInteractionForm *ui; | ||
}; | ||
|
||
} | ||
#endif // FORUMINTERACTIONFORM_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>ForumInteractionForm</class> | ||
<widget class="QDialog" name="ForumInteractionForm"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>456</width> | ||
<height>336</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Dialog</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QTabWidget" name="otherInfoTab"> | ||
<property name="currentIndex"> | ||
<number>0</number> | ||
</property> | ||
<widget class="QWidget" name="loginTab"> | ||
<attribute name="title"> | ||
<string>Login Details</string> | ||
</attribute> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<item> | ||
<widget class="QLabel" name="label_4"> | ||
<property name="font"> | ||
<font> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>Use your forum credentials</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignCenter</set> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="label"> | ||
<property name="text"> | ||
<string>Username</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLineEdit" name="userNameLE"/> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="text"> | ||
<string>Password</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLineEdit" name="passwordLE"> | ||
<property name="echoMode"> | ||
<enum>QLineEdit::Password</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QCheckBox" name="saveCredentialsCB"> | ||
<property name="text"> | ||
<string>Save Credentials*</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="label_3"> | ||
<property name="font"> | ||
<font> | ||
<pointsize>8</pointsize> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>*Password will be stored on your computer in clear text</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<widget class="QWidget" name="ttt"> | ||
<attribute name="title"> | ||
<string>Other Information</string> | ||
</attribute> | ||
<layout class="QVBoxLayout" name="verticalLayout_3"> | ||
<item> | ||
<widget class="QLabel" name="label_5"> | ||
<property name="text"> | ||
<string>Aircraft Description</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QTextEdit" name="aircraftDescriptionTE"> | ||
<property name="acceptRichText"> | ||
<bool>false</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="label_6"> | ||
<property name="text"> | ||
<string>Observations</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QTextEdit" name="observationsTE"> | ||
<property name="acceptRichText"> | ||
<bool>false</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>ForumInteractionForm</receiver> | ||
<slot>accept()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>227</x> | ||
<y>315</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>227</x> | ||
<y>167</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>rejected()</signal> | ||
<receiver>ForumInteractionForm</receiver> | ||
<slot>reject()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>227</x> | ||
<y>315</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>227</x> | ||
<y>167</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
</ui> |
Oops, something went wrong.