-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clang-formated everything to fix all indentation issues
- Loading branch information
1 parent
0d4551e
commit 17ca225
Showing
212 changed files
with
20,578 additions
and
23,653 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (C) 2000,2001 Stefan Duffner | ||
Copyright (C) 2000,2001 Stefan Duffner | ||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
|
@@ -16,20 +16,17 @@ along with this program; if not, write to the Free Software | |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
*/ | ||
|
||
#include <qmessagebox.h> | ||
#include <QIcon> | ||
#include <qmessagebox.h> | ||
|
||
#include "AppInfo.h" | ||
|
||
|
||
/** | ||
* Constructor. | ||
* Initialises the AppInfo object by setting version und author. | ||
* @param par parent widget. | ||
*/ | ||
AppInfo::AppInfo(QWidget* par) | ||
:QObject(par) | ||
{ | ||
AppInfo::AppInfo(QWidget *par) : QObject(par) { | ||
parent_widget = par; | ||
version_major = 0; | ||
|
||
|
@@ -38,34 +35,33 @@ AppInfo::AppInfo(QWidget* par) | |
author = "Stefan Duffner, Rainer Strobel"; | ||
} | ||
|
||
double AppInfo::getVersionDouble() | ||
{ | ||
double AppInfo::getVersionDouble() { | ||
double dec; | ||
double res; | ||
|
||
dec = version_minor; | ||
while (dec>1) | ||
while (dec > 1) | ||
dec /= 10; | ||
|
||
res = dec + version_major; | ||
|
||
return res; | ||
} | ||
|
||
/** | ||
* Display about-dialogbox. | ||
*/ | ||
void AppInfo::about() | ||
{ | ||
void AppInfo::about() { | ||
QString text; | ||
text = tr("Qfsm - A graphical tool for designing and simulating " | ||
"finite state machines")+"\n"; | ||
text += tr("Version %1.%2").arg(version_major).arg(version_minor)+"\n"; | ||
text += tr("Development version %1").arg(date)+"\n"; | ||
text += tr("Copyright 2000-2015 by ")+ author+"\n"; | ||
"finite state machines") + | ||
"\n"; | ||
text += tr("Version %1.%2").arg(version_major).arg(version_minor) + "\n"; | ||
text += tr("Development version %1").arg(date) + "\n"; | ||
text += tr("Copyright 2000-2015 by ") + author + "\n"; | ||
text += tr("email: [email protected]"); | ||
|
||
//QMessageBox::about(parent_widget, tr("Qfsm"), text); | ||
// QMessageBox::about(parent_widget, tr("Qfsm"), text); | ||
|
||
QMessageBox mbox(parent_widget); | ||
|
||
|
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
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
Oops, something went wrong.