VACUUM worked and DB is compressed each exit

This commit is contained in:
jaime 2015-01-11 18:48:25 +00:00
parent 0d53749a3d
commit 9b04b43588
13 changed files with 72 additions and 292 deletions

View File

@ -6,9 +6,11 @@ December-2013 - 0.9.0.3RC1
- Bugfix: Search results showed the default Station Callsign if non was in the QSO. This lead to errors if QRZ was not the default.
- KLog recognizes now .ADIF files (instead of only .ADI).
- KLog shows now the WAZ status.
- Added a very basic support of DX Marathon (http://www.dxmarathon.com/)
- DXCluster filters are now working.
- The user can manually assign the DXCC entity for a DX.
- Improved the function to update the DB from one release to the following.
- DB file is compressed everytime KLog finishes.
- It is possible to find QSL pending to receive.
- It is possible to modify entities data in the World Editor in preferences.
- It is possible to choose in preferences whether to keep my Data Tab from one QSO to the next or not.

12
TODO
View File

@ -5,28 +5,28 @@ Feel free to request any roadmap change if you have any suggestion.
Bug: Check if the dxcluster configuration to show or not confirmed/worked works properly
KLog 0.9.1
TODO: when File New:
Clean the DB & query.exec("VACUUM");
TODO: When Saving As, KLog should offer the default filename.
TODO: Adapt to ADIF 3.0.4
TODO: Make a tool to mark and export QSO from the right button. (i.e. To mark several QSO to print and export the ADIF file with just those QSO)
TODO: Add the awards functionality (to manage awa files, TPEA, WAS, ...)
TODO: Check the colors in the searchBox, they may be not correct.
TODO: Add CQ DX Marathon support.
TODO: Keep adapting to ADIF 3.0.4
KLog 0.9.2
TODO: Add Satellite support (maybe another Tab) (look this file (below) for details.
TODO: Add another tab in the botton to list the DXCC status.
TBD - Added the feature to add and manage several logs.
TBD - Add the feature to add and manage several logs.
TODO: Add an option to auto-complete info (QTH, Locator, Name, QSL Manager(qsl_via), IOTA, AWARD, Entity...) from previously worked QSO.
TODO: UI: Modify the DX-Cluster tab to show the data in a table: DX de/Freq/DX/Comment/Time/Loc
TODO: Keep adapting to ADIF 3.0.4
KLog 0.9.3
TODO: Support CQ WW SSB (Including Cabrillo Import/Export)
TODO: Support CQ WW CW (Including Cabrillo Import/Export)
KLog 0.9.4
TODO: Hamlib support (Linux)
TODO: Hamlib support (Linux).
TODO: Add a DXCluster bandmap.
KLog 0.9.5
TODO: Support CQ WPX SSB (Including Cabrillo Import/Export)

View File

@ -41,6 +41,21 @@ DataBase::~DataBase()
//qDebug() << "DataBase::~DataBase" << endl;
}
void DataBase::compress()
{
//qDebug() << "DataBase::compress " << endl;
QSqlDatabase db = QSqlDatabase::database();
if (!db.open()) {
QMessageBox::warning(0, QObject::tr("Database Error"),
db.lastError().text());
}
else
{
db.exec("VACUUM;");
}
}
bool DataBase::createConnection()
{
@ -72,7 +87,8 @@ bool DataBase::createConnection()
}
else
{
//qDebug() << "DataBase::createConnection: creted?" << endl;
//qDebug() << "DataBase::createConnection: created?" << endl;
if (isTheDBCreated())
{
@ -1140,7 +1156,7 @@ bool DataBase::updateToLatest()
* The updateXXX are recursive calls that calls the previous one.
*
*/
qDebug() << "DataBase::updateToLatest-003 " << endl;
//qDebug() << "DataBase::updateToLatest-003 " << endl;
return updateTo004();
}
@ -1156,7 +1172,7 @@ bool DataBase::updateTo003()
* QString stringQuery = QString ("ALTER TABLE award_enumeration ADD COLUMN dxcc INTEGER;");
*
*/
qDebug() << "DataBase::updateTo003" << endl;
//qDebug() << "DataBase::updateTo003" << endl;
bool IAmIn003 = false;
bool IAmIn002 = false;
bool ErrorUpdating = false;
@ -1201,7 +1217,7 @@ bool DataBase::updateTo004()
* QString stringQuery = QString ("ALTER TABLE award_enumeration ADD COLUMN dxcc INTEGER;");
*
*/
qDebug() << "DataBase::updateTo004" << endl;
//qDebug() << "DataBase::updateTo004" << endl;
bool IAmIn004 = false;
bool IAmIn003 = false;
bool ErrorUpdating = false;

View File

@ -69,6 +69,7 @@ public:
bool unMarkAllQSO();
bool updateIfNeeded();
void compress();
@ -94,6 +95,8 @@ private:
QMap<QString, int> bandQMap;
QMap<QString, int> modeQMap;
//QSqlDatabase *db;
};
#endif // DATABASE_H

View File

@ -30,7 +30,7 @@
DataProxy::DataProxy()
{
// qDebug() << "DataProxy::DataProxy" << endl;
//qDebug() << "DataProxy::DataProxy" << endl;
}
@ -165,6 +165,10 @@ QStringList DataProxy::getOperatingYears(const int _currentLog)
return QStringList();
}
void DataProxy::compressDB()
{
}

View File

@ -47,6 +47,7 @@ public:
virtual QString getCallFromId(const int _qsoId);
virtual QStringList getOperatingYears(const int _currentLog);
virtual void compressDB();
/*
virtual bool addDXMarathonQSO(const int _year, const int _dxcc, const int _cqz, const int _power, const int _mode, const int qsoid, const int _currentLog);
virtual int getDXMarathonTotalScore(const int _year);

View File

@ -520,7 +520,7 @@ int DataProxy_SQLite::isWorkedB4(const QString _qrz, const int _currentLog)
bool DataProxy_SQLite::isDXCCConfirmed(const int _dxcc, const int _currentLog)
{
qDebug() << "DataProxy_SQLite::isDXCCConfirmed: " << QString::number(_dxcc) << "/" << QString::number(_currentLog) << endl;
//qDebug() << "DataProxy_SQLite::isDXCCConfirmed: " << QString::number(_dxcc) << "/" << QString::number(_currentLog) << endl;
QString queryString = QString("SELECT confirmed from awarddxcc WHERE dxcc='%1' AND lognumber='%2'").arg(_dxcc).arg(_currentLog);
QSqlQuery query;
@ -531,27 +531,27 @@ bool DataProxy_SQLite::isDXCCConfirmed(const int _dxcc, const int _currentLog)
{
if ( (query.value(0)).toInt() == 1)
{
qDebug() << "DataProxy_SQLite::isDXCCConfrmed: TRUE" << endl;
//qDebug() << "DataProxy_SQLite::isDXCCConfrmed: TRUE" << endl;
return true;
}
else
{
qDebug() << "DataProxy_SQLite::isDXCCConfrmed: FALSE1" << endl;
//qDebug() << "DataProxy_SQLite::isDXCCConfrmed: FALSE1" << endl;
return false;
}
}
else
{
qDebug() << "DataProxy_SQLite::isDXCCConfrmed: FALSE2" << endl;
//qDebug() << "DataProxy_SQLite::isDXCCConfrmed: FALSE2" << endl;
return false;
}
}
else
{
qDebug() << "DataProxy_SQLite::isDXCCConfrmed: FALSE3" << endl;
//qDebug() << "DataProxy_SQLite::isDXCCConfrmed: FALSE3" << endl;
return false;
}
qDebug() << "DataProxy_SQLite::isDXCCConfrmed: FALSE4" << endl;
//qDebug() << "DataProxy_SQLite::isDXCCConfrmed: FALSE4" << endl;
return false;
}
@ -559,12 +559,12 @@ bool DataProxy_SQLite::isHF(const int _band)
{
if ((_band>=18) && (_band<=27))
{
qDebug() << "DataProxy_SQLite::isHF: TRUE" << endl;
//qDebug() << "DataProxy_SQLite::isHF: TRUE" << endl;
return true;
}
else
{
qDebug() << "DataProxy_SQLite::isHF: FALSE" << endl;
//qDebug() << "DataProxy_SQLite::isHF: FALSE" << endl;
return false;
}
}
@ -573,12 +573,12 @@ bool DataProxy_SQLite::isWARC(const int _band)
{
if ((_band == 19) || (_band==21) ||(_band==23) )
{
qDebug() << "DataProxy_SQLite::isWARC: tRUE" << endl;
//qDebug() << "DataProxy_SQLite::isWARC: tRUE" << endl;
return true;
}
else
{
qDebug() << "DataProxy_SQLite::isWARC: FALSE" << endl;
//qDebug() << "DataProxy_SQLite::isWARC: FALSE" << endl;
return false;
}
}
@ -587,19 +587,19 @@ bool DataProxy_SQLite::isVHF(const int _band)
{
if (_band<=17)
{
qDebug() << "DataProxy_SQLite::isVHF: TRUE" << endl;
//qDebug() << "DataProxy_SQLite::isVHF: TRUE" << endl;
return true;
}
else
{
qDebug() << "DataProxy_SQLite::isVHF: FALSE" << endl;
//qDebug() << "DataProxy_SQLite::isVHF: FALSE" << endl;
return false;
}
}
QStringList DataProxy_SQLite::getOperatingYears(const int _currentLog)
{
qDebug() << "DataProxy_SQLite::getYearsOperating: " << QString::number(_currentLog) << endl;
//qDebug() << "DataProxy_SQLite::getYearsOperating: " << QString::number(_currentLog) << endl;
QStringList years = QStringList();
QSqlQuery query;
QString queryString = QString("SELECT DISTINCT (substr (qso_date, 0, 5)) FROM log WHERE lognumber='%0'").arg(_currentLog);
@ -626,3 +626,8 @@ QStringList DataProxy_SQLite::getOperatingYears(const int _currentLog)
}
}
void DataProxy_SQLite::compressDB()
{
db->compress();
}

View File

@ -44,6 +44,7 @@ public:
QString getCallFromId(const int _qsoId);
QStringList getOperatingYears(const int _currentLog);
void compressDB();
bool clearLog();

View File

@ -29,7 +29,7 @@
FileManager::FileManager()
{
qDebug() << "FileManager::FileManager()" << endl;
//qDebug() << "FileManager::FileManager()" << endl;
ignoreUnknownAlways = false;
world = new World();
awards = new Awards();
@ -143,7 +143,7 @@ bool FileManager::adifLogExport(const QString& _fileName)
}
bool FileManager::adifLogExportToFile(const QString& _fileName, bool justMarked, bool _qslRequested ){
qDebug() << "FileManager::adifLogExportToFile: " << _fileName << endl;
//qDebug() << "FileManager::adifLogExportToFile: " << _fileName << endl;
bool exportJustMarkedQSO = justMarked;
bool marked = false;
bool exportOnlyQSLRequested = _qslRequested;
@ -1683,7 +1683,7 @@ bool FileManager::cabrilloLogExport(const QString& _fileName, const int _contest
bool FileManager::cabrilloLogExportCQWWToFile(const QString& _fileName, const int logNconst)
{
qDebug() << "FileManager::cabrilloLogExportCQWWToFile" << _fileName, endl;
//qDebug() << "FileManager::cabrilloLogExportCQWWToFile" << _fileName, endl;
/*
START-OF-LOG:
ARRL-SECTION:
@ -1935,7 +1935,7 @@ QFile file(_fileName);
bool FileManager::cabrilloLogExportToFile(const QString& _fileName, const int logNconst)
{
qDebug() << "FileManager::cabrilloLogExportToFile" << endl;
//qDebug() << "FileManager::cabrilloLogExportToFile" << endl;
//TODO: Message "You must select a proper file format
QMessageBox msgBox;

View File

@ -1,257 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 2.8.1, 2014-12-15T20:39:51. -->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="int">0</value>
</data>
<data>
<variable>ProjectExplorer.Project.EditorSettings</variable>
<valuemap type="QVariantMap">
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
<value type="QString" key="language">Cpp</value>
<valuemap type="QVariantMap" key="value">
<value type="QString" key="CurrentPreferences">CppGlobal</value>
</valuemap>
</valuemap>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
<value type="QString" key="language">QmlJS</value>
<valuemap type="QVariantMap" key="value">
<value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
</valuemap>
</valuemap>
<value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
<value type="int" key="EditorConfiguration.IndentSize">4</value>
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
<value type="int" key="EditorConfiguration.TabSize">8</value>
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap"/>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">mi kit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">mi kit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{31e882c5-4f69-48a6-94f6-f45bc581a7e6}</value>
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
<value type="QString">-w</value>
<value type="QString">-r</value>
</valuelist>
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
<value type="QString">-w</value>
<value type="QString">-r</value>
</valuelist>
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/Users/jaime/Desktop/devel/build-klog-mi_kit-Debug</value>
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
<value type="QString">-w</value>
<value type="QString">-r</value>
</valuelist>
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
<value type="QString">-w</value>
<value type="QString">-r</value>
</valuelist>
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/Users/jaime/Desktop/devel/build-klog-mi_kit-Release</value>
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy locally</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Project.UseGlobal">true</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
<value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
<value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
<value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
<value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
<value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
<value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
<value type="int">0</value>
<value type="int">1</value>
<value type="int">2</value>
<value type="int">3</value>
<value type="int">4</value>
<value type="int">5</value>
<value type="int">6</value>
<value type="int">7</value>
<value type="int">8</value>
<value type="int">9</value>
<value type="int">10</value>
<value type="int">11</value>
<value type="int">12</value>
<value type="int">13</value>
<value type="int">14</value>
</valuelist>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">klog</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/Users/jaime/Desktop/devel/klog/klog.pro</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">klog.pro</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="int">1</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
<value type="QByteArray">{b0d8e9d0-533e-4d6a-921f-d47a63d739aa}</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
<value type="int">14</value>
</data>
</qtcreator>

View File

@ -154,12 +154,12 @@ int main(int argc, char *argv[])
}
else
{
//qDebug() << "MAIN: Not the first time that is executed! " << endl;
MainWindow mw(kontestDir, version);
mw.show();
return app.exec();
}
return app.exec();
//return app.exec();
}

View File

@ -180,6 +180,7 @@ MainWindow::MainWindow(const QString _kontestDir, const QString tversion)
//qDebug() << "MainWindow::MainWindow: 1 " << endl;
world = new World(kontestDir, softwareVersion);
@ -416,6 +417,8 @@ MainWindow::MainWindow(const QString _kontestDir, const QString tversion)
readConfigData();
if (needToEnd)
{
//QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
db->compress();
exit(0);
}
@ -2612,7 +2615,7 @@ void MainWindow::slotSearchBoxReSearchButtonClicked()
/*
void MainWindow::slotSearchBoxOnItemChanged( QTreeWidgetItem * item, int column)
{
qDebug() << "MainWindow::slotSearchBoxOnItemChanged: " << (item->data (0, Qt::DisplayRole)).toString() << QString::number(column) << endl;
//qDebug() << "MainWindow::slotSearchBoxOnItemChanged: " << (item->data (0, Qt::DisplayRole)).toString() << QString::number(column) << endl;
//searchResultsTreeWidget
//item->data (0, Qt::DisplayRole)
@ -3154,6 +3157,8 @@ void MainWindow::closeEvent(QCloseEvent *event)
{
db->unMarkAllQSO();
//slotFileClose();
dataProxy->compressDB();
//db->compress();
event->accept();
}
else
@ -8113,7 +8118,7 @@ void MainWindow::slotToolSearchQSL(const int actionQSL)
if (stationCallSignShownInSearch)
{
qDebug() << "MainWindow::slotToolSearchQSL: stationCallSign "<< endl;
//qDebug() << "MainWindow::slotToolSearchQSL: stationCallSign "<< endl;
nameCol = rec.indexOf("station_callsign");
if (((query.value(nameCol)).toString()).length()>=3)
@ -8351,9 +8356,9 @@ void MainWindow::selectCorrectComboBoxEntity(const int _ent)
int MainWindow::getDXCCFromComboBox()
{
qDebug() << "MainWindow::getDXCCFromComboBox" << endl;
//qDebug() << "MainWindow::getDXCCFromComboBox" << endl;
QString pref = (entityNameComboBox->currentText()).split('-').at(0);
qDebug() << "MainWindow::getDXCCFromComboBox: " << pref << "/" << QString::number(world->getQRZARRLId(pref))<< endl;
//qDebug() << "MainWindow::getDXCCFromComboBox: " << pref << "/" << QString::number(world->getQRZARRLId(pref))<< endl;
return world->getQRZARRLId(pref);
}

View File

@ -31,7 +31,7 @@
SetupPageColors::SetupPageColors(QWidget *parent) : QWidget(parent)
{
// qDebug() << "SetupPageColors::SetupPageColors" << endl;
//Debug() << "SetupPageColors::SetupPageColors" << endl;
newOneColorButton = new QPushButton;
neededColorButton = new QPushButton;