-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jmbowman
committed
Mar 6, 2004
1 parent
a8e970c
commit 6a05821
Showing
85 changed files
with
4,608 additions
and
4,765 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* calcnode.cpp | ||
* | ||
* (c) 2003 by Jeremy Bowman <[email protected]> | ||
* (c) 2003-2004 by Jeremy Bowman <[email protected]> | ||
* | ||
* 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 | ||
|
@@ -15,7 +15,7 @@ | |
#include "calcnode.h" | ||
#include "../database.h" | ||
|
||
CalcNode::CalcNode(int type, const QString &value) : nodeType(type) | ||
CalcNode::CalcNode(int type, const QString &value) : QObject(), nodeType(type) | ||
{ | ||
nodeValue = value; | ||
} | ||
|
@@ -216,27 +216,27 @@ QString CalcNode::description(Database *db, int type, const QString &value) | |
case CALC_DIVIDE: | ||
return "/"; | ||
case CALC_DAYS: | ||
return QObject::tr("Days_Between"); | ||
return tr("Days_Between"); | ||
case CALC_MAX: | ||
return QObject::tr("MAX"); | ||
return tr("MAX"); | ||
case CALC_MIN: | ||
return QObject::tr("MIN"); | ||
return tr("MIN"); | ||
case CALC_AVERAGE: | ||
return QObject::tr("AVERAGE"); | ||
return tr("AVERAGE"); | ||
case CALC_ABS: | ||
return QObject::tr("ABS"); | ||
return tr("ABS"); | ||
case CALC_SQRT: | ||
return QObject::tr("SQRT"); | ||
return tr("SQRT"); | ||
case CALC_LOG: | ||
return QObject::tr("LOG"); | ||
return tr("LOG"); | ||
case CALC_LN: | ||
return QObject::tr("LN"); | ||
return tr("LN"); | ||
case CALC_SECONDS: | ||
return QObject::tr("Seconds_Between"); | ||
return tr("Seconds_Between"); | ||
case CALC_MINUTES: | ||
return QObject::tr("Minutes_Between"); | ||
return tr("Minutes_Between"); | ||
case CALC_HOURS: | ||
return QObject::tr("Hours_Between"); | ||
return tr("Hours_Between"); | ||
default: | ||
return ""; | ||
} | ||
|
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,7 +1,7 @@ | ||
/* | ||
* calcnode.h | ||
* | ||
* (c) 2003 by Jeremy Bowman <[email protected]> | ||
* (c) 2003-2004 by Jeremy Bowman <[email protected]> | ||
* | ||
* 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 | ||
|
@@ -37,15 +37,17 @@ | |
#define CALC_HOURS 34 | ||
#define CALC_LAST_OP 34 | ||
|
||
#include <qobject.h> | ||
#include <qstringlist.h> | ||
|
||
class CalcNode; | ||
class Database; | ||
|
||
typedef QValueList<CalcNode*> CalcNodeList; | ||
|
||
class CalcNode | ||
class CalcNode : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
CalcNode(int type, const QString &value); | ||
~CalcNode(); | ||
|
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
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.