diff --git a/Source/Main.cpp b/Source/Main.cpp
index 07a2ee6..c7fc4c1 100644
--- a/Source/Main.cpp
+++ b/Source/Main.cpp
@@ -78,8 +78,9 @@ public:
{
(void)commandLine;
+ String windowTitle = ProjectInfo::projectName + String( " v") + ProjectInfo::versionString;
// This method is where you should put your application's initialisation code..
- mainWindow = new MainWindow();
+ mainWindow = new MainWindow(windowTitle);
}
void shutdown() override
@@ -113,7 +114,7 @@ public:
class MainWindow : public DocumentWindow
{
public:
- MainWindow() : DocumentWindow (ProjectInfo::projectName,
+ MainWindow(String const &windowTitle) : DocumentWindow (windowTitle,
Colours::lightgrey,
DocumentWindow::allButtons)
{
diff --git a/Source/MainComponent.cpp b/Source/MainComponent.cpp
index e709068..5da67a4 100644
--- a/Source/MainComponent.cpp
+++ b/Source/MainComponent.cpp
@@ -94,6 +94,14 @@ MainComponent::MainComponent (String const &homeDir, String const &hostIp)
m_labelCameraTilt->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
m_labelCameraTilt->addListener (this);
+ addAndMakeVisible (m_labelAbout = new Label ("Label About",
+ String::empty));
+ m_labelAbout->setFont (Font (15.00f, Font::plain));
+ m_labelAbout->setJustificationType (Justification::centredLeft);
+ m_labelAbout->setEditable (false, false, false);
+ m_labelAbout->setColour (TextEditor::textColourId, Colours::black);
+ m_labelAbout->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
+
//[UserPreSize]
//[/UserPreSize]
@@ -102,6 +110,7 @@ MainComponent::MainComponent (String const &homeDir, String const &hostIp)
//[Constructor] You can add your own custom stuff here..
+ m_labelAbout->setTooltip(ProjectInfo::projectName + String(", Version ") + ProjectInfo::versionString + String("\n(C) 2015, Jens Ahrensfeld"));
m_toolTip = new TooltipWindow(this);
static String workDir(homeDir + String("\\FsTrack"));
@@ -145,6 +154,7 @@ MainComponent::~MainComponent()
m_cameraAutoFlyToView = nullptr;
m_labelCameraAltitude = nullptr;
m_labelCameraTilt = nullptr;
+ m_labelAbout = nullptr;
//[Destructor]. You can add your own custom destruction code here..
@@ -186,6 +196,7 @@ void MainComponent::resized()
m_cameraAutoFlyToView->setBounds (24, 176, 176, 24);
m_labelCameraAltitude->setBounds (168, 32, 88, 24);
m_labelCameraTilt->setBounds (168, 64, 88, 24);
+ m_labelAbout->setBounds (272, 0, 24, 24);
//[UserResized] Add your own custom resize handling here..
//[/UserResized]
}
@@ -387,6 +398,11 @@ BEGIN_JUCER_METADATA
edTextCol="ff000000" edBkgCol="0" labelText="0" editableSingleClick="1"
editableDoubleClick="1" focusDiscardsChanges="0" fontname="Default font"
fontsize="15" bold="0" italic="0" justification="34"/>
+
END_JUCER_METADATA
diff --git a/Source/MainComponent.h b/Source/MainComponent.h
index d72b868..f26cfb3 100644
--- a/Source/MainComponent.h
+++ b/Source/MainComponent.h
@@ -83,6 +83,7 @@ private:
ScopedPointer m_cameraAutoFlyToView;
ScopedPointer