- reorganized Kml generation
- Kml generation on demand - cleaned up GUI - removed color selector - remove track rate slider - adjusted altitude slider git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@175 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+6
-3
@@ -23,8 +23,9 @@ public:
|
||||
const String getApplicationName() override { return ProjectInfo::projectName; }
|
||||
const String getApplicationVersion() override { return ProjectInfo::versionString; }
|
||||
bool moreThanOneInstanceAllowed() override { return true; }
|
||||
static void getNetworkAdapters()
|
||||
static String getNetworkAdapters()
|
||||
{
|
||||
String hostIp("0.0.0.0");
|
||||
PIP_ADAPTER_INFO pAdapterInfo;
|
||||
pAdapterInfo = (IP_ADAPTER_INFO *) malloc(sizeof(IP_ADAPTER_INFO));
|
||||
ULONG buflen = sizeof(IP_ADAPTER_INFO);
|
||||
@@ -51,6 +52,7 @@ public:
|
||||
printf("\tDHCP Enabled: Yes\n");
|
||||
printf("\t\tDHCP Server: \t%s\n", pAdapter->DhcpServer.IpAddress.String);
|
||||
printf("\tLease Obtained: %ld\n", pAdapter->LeaseObtained);
|
||||
hostIp = String(pAdapter->IpAddressList.IpAddress.String);
|
||||
} else {
|
||||
printf("\tDHCP Enabled: No\n");
|
||||
}
|
||||
@@ -69,6 +71,7 @@ public:
|
||||
{
|
||||
printf("Call to GetAdaptersInfo failed.\n");
|
||||
}
|
||||
return hostIp;
|
||||
}
|
||||
//==============================================================================
|
||||
void initialise (const String& commandLine) override
|
||||
@@ -114,7 +117,7 @@ public:
|
||||
Colours::lightgrey,
|
||||
DocumentWindow::allButtons)
|
||||
{
|
||||
FsTrackApplication::getNetworkAdapters();
|
||||
String hostIp = FsTrackApplication::getNetworkAdapters();
|
||||
|
||||
char path[1024];
|
||||
if (!SUCCEEDED(SHGetFolderPath(nullptr, CSIDL_DESKTOP, nullptr, 0, path)))
|
||||
@@ -122,7 +125,7 @@ public:
|
||||
return;
|
||||
}
|
||||
static String pathStr(path);
|
||||
setContentOwned (new MainComponent(pathStr), true);
|
||||
setContentOwned (new MainComponent(pathStr, hostIp), true);
|
||||
|
||||
centreWithSize (getWidth(), getHeight());
|
||||
setVisible (true);
|
||||
|
||||
Reference in New Issue
Block a user