- added Version Info and About ToolTip
git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@185 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+3
-2
@@ -78,8 +78,9 @@ public:
|
|||||||
{
|
{
|
||||||
(void)commandLine;
|
(void)commandLine;
|
||||||
|
|
||||||
|
String windowTitle = ProjectInfo::projectName + String( " v") + ProjectInfo::versionString;
|
||||||
// This method is where you should put your application's initialisation code..
|
// This method is where you should put your application's initialisation code..
|
||||||
mainWindow = new MainWindow();
|
mainWindow = new MainWindow(windowTitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void shutdown() override
|
void shutdown() override
|
||||||
@@ -113,7 +114,7 @@ public:
|
|||||||
class MainWindow : public DocumentWindow
|
class MainWindow : public DocumentWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MainWindow() : DocumentWindow (ProjectInfo::projectName,
|
MainWindow(String const &windowTitle) : DocumentWindow (windowTitle,
|
||||||
Colours::lightgrey,
|
Colours::lightgrey,
|
||||||
DocumentWindow::allButtons)
|
DocumentWindow::allButtons)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -94,6 +94,14 @@ MainComponent::MainComponent (String const &homeDir, String const &hostIp)
|
|||||||
m_labelCameraTilt->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
m_labelCameraTilt->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
||||||
m_labelCameraTilt->addListener (this);
|
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]
|
||||||
//[/UserPreSize]
|
//[/UserPreSize]
|
||||||
@@ -102,6 +110,7 @@ MainComponent::MainComponent (String const &homeDir, String const &hostIp)
|
|||||||
|
|
||||||
|
|
||||||
//[Constructor] You can add your own custom stuff here..
|
//[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);
|
m_toolTip = new TooltipWindow(this);
|
||||||
|
|
||||||
static String workDir(homeDir + String("\\FsTrack"));
|
static String workDir(homeDir + String("\\FsTrack"));
|
||||||
@@ -145,6 +154,7 @@ MainComponent::~MainComponent()
|
|||||||
m_cameraAutoFlyToView = nullptr;
|
m_cameraAutoFlyToView = nullptr;
|
||||||
m_labelCameraAltitude = nullptr;
|
m_labelCameraAltitude = nullptr;
|
||||||
m_labelCameraTilt = nullptr;
|
m_labelCameraTilt = nullptr;
|
||||||
|
m_labelAbout = nullptr;
|
||||||
|
|
||||||
|
|
||||||
//[Destructor]. You can add your own custom destruction code here..
|
//[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_cameraAutoFlyToView->setBounds (24, 176, 176, 24);
|
||||||
m_labelCameraAltitude->setBounds (168, 32, 88, 24);
|
m_labelCameraAltitude->setBounds (168, 32, 88, 24);
|
||||||
m_labelCameraTilt->setBounds (168, 64, 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] Add your own custom resize handling here..
|
||||||
//[/UserResized]
|
//[/UserResized]
|
||||||
}
|
}
|
||||||
@@ -387,6 +398,11 @@ BEGIN_JUCER_METADATA
|
|||||||
edTextCol="ff000000" edBkgCol="0" labelText="0" editableSingleClick="1"
|
edTextCol="ff000000" edBkgCol="0" labelText="0" editableSingleClick="1"
|
||||||
editableDoubleClick="1" focusDiscardsChanges="0" fontname="Default font"
|
editableDoubleClick="1" focusDiscardsChanges="0" fontname="Default font"
|
||||||
fontsize="15" bold="0" italic="0" justification="34"/>
|
fontsize="15" bold="0" italic="0" justification="34"/>
|
||||||
|
<LABEL name="Label About" id="a9e9b977874f4753" memberName="m_labelAbout"
|
||||||
|
virtualName="" explicitFocusOrder="0" pos="272 0 24 24" edTextCol="ff000000"
|
||||||
|
edBkgCol="0" labelText="" editableSingleClick="0" editableDoubleClick="0"
|
||||||
|
focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
||||||
|
bold="0" italic="0" justification="33"/>
|
||||||
</JUCER_COMPONENT>
|
</JUCER_COMPONENT>
|
||||||
|
|
||||||
END_JUCER_METADATA
|
END_JUCER_METADATA
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ private:
|
|||||||
ScopedPointer<ToggleButton> m_cameraAutoFlyToView;
|
ScopedPointer<ToggleButton> m_cameraAutoFlyToView;
|
||||||
ScopedPointer<Label> m_labelCameraAltitude;
|
ScopedPointer<Label> m_labelCameraAltitude;
|
||||||
ScopedPointer<Label> m_labelCameraTilt;
|
ScopedPointer<Label> m_labelCameraTilt;
|
||||||
|
ScopedPointer<Label> m_labelAbout;
|
||||||
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user