- 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:
2015-01-31 14:29:37 +00:00
parent 7f94243ee4
commit daefae6a5b
3 changed files with 20 additions and 2 deletions
+3 -2
View File
@@ -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)
{
+16
View File
@@ -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"/>
<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>
END_JUCER_METADATA
+1
View File
@@ -83,6 +83,7 @@ private:
ScopedPointer<ToggleButton> m_cameraAutoFlyToView;
ScopedPointer<Label> m_labelCameraAltitude;
ScopedPointer<Label> m_labelCameraTilt;
ScopedPointer<Label> m_labelAbout;
//==============================================================================