From 63085a71850d690ddbfa822eb365fad2d42589c1 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 20 Sep 2012 12:27:39 +0100 Subject: [PATCH] Introjucer: minor fixes. --- .../Source/Application/jucer_Application.h | 27 ++++++++++--------- .../Project/jucer_ProjectContentComponent.h | 2 +- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/extras/Introjucer/Source/Application/jucer_Application.h b/extras/Introjucer/Source/Application/jucer_Application.h index 46f9697e22..54662395b9 100644 --- a/extras/Introjucer/Source/Application/jucer_Application.h +++ b/extras/Introjucer/Source/Application/jucer_Application.h @@ -479,11 +479,24 @@ public: if (logger == nullptr) { logger = FileLogger::createDateStampedLogger (getLogFolderName(), filePrefix, ".txt", - getApplicationName() + " " + getApplicationVersion()); + getApplicationName() + " " + getApplicationVersion() + + " --- Build date: " __DATE__); Logger::setCurrentLogger (logger); } } + struct FileWithTime + { + FileWithTime (const File& f) : file (f), time (f.getLastModificationTime()) {} + FileWithTime() {} + + bool operator< (const FileWithTime& other) const { return time < other.time; } + bool operator== (const FileWithTime& other) const { return time == other.time; } + + File file; + Time time; + }; + void deleteLogger() { const int maxNumLogFilesToKeep = 50; @@ -497,18 +510,6 @@ public: if (logFiles.size() > maxNumLogFilesToKeep) { - struct FileWithTime - { - FileWithTime (const File& f) : file (f), time (f.getLastModificationTime()) {} - FileWithTime() {} - - bool operator< (const FileWithTime& other) const { return time < other.time; } - bool operator== (const FileWithTime& other) const { return time == other.time; } - - File file; - Time time; - }; - Array files; for (int i = 0; i < logFiles.size(); ++i) diff --git a/extras/Introjucer/Source/Project/jucer_ProjectContentComponent.h b/extras/Introjucer/Source/Project/jucer_ProjectContentComponent.h index 9d7107d961..e60006574a 100644 --- a/extras/Introjucer/Source/Project/jucer_ProjectContentComponent.h +++ b/extras/Introjucer/Source/Project/jucer_ProjectContentComponent.h @@ -78,7 +78,7 @@ public: void updateMissingFileStatuses(); virtual void createProjectTabs(); - void deleteProjectTabs(); + virtual void deleteProjectTabs(); void rebuildProjectTabs(); void showBubbleMessage (const Rectangle& pos, const String& text);