- retrieving home dir and create FsTrack folder

- added adjustable KML update interval
- prepared for .kmz

git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@125 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2015-01-11 11:04:51 +00:00
parent 14fc402ff3
commit b138370221
10 changed files with 103 additions and 27 deletions
+7 -2
View File
@@ -7,6 +7,8 @@
==============================================================================
*/
#include <Shlobj.h>
#include <Knownfolders.h>
#include "../JuceLibraryCode/JuceHeader.h"
#include "MainComponent.h"
@@ -29,7 +31,6 @@ public:
(void)commandLine;
// This method is where you should put your application's initialisation code..
mainWindow = new MainWindow();
}
@@ -68,7 +69,11 @@ public:
Colours::lightgrey,
DocumentWindow::allButtons)
{
setContentOwned (new MainComponent(), true);
PWSTR path;
SHGetKnownFolderPath(FOLDERID_Profile, 0, NULL, &path);
static String pathStr(path);
setContentOwned (new MainComponent(pathStr), true);
centreWithSize (getWidth(), getHeight());
setVisible (true);