- added Kml export
- added HttpServer git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@124 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -37,6 +37,14 @@ MainComponent::MainComponent ()
|
||||
m_fsuipcStatus->setColour (TextEditor::textColourId, Colours::black);
|
||||
m_fsuipcStatus->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
||||
|
||||
addAndMakeVisible (m_flightStatus = new Label ("Flight Status",
|
||||
TRANS("Unknown")));
|
||||
m_flightStatus->setFont (Font (15.00f, Font::plain));
|
||||
m_flightStatus->setJustificationType (Justification::centredLeft);
|
||||
m_flightStatus->setEditable (false, false, false);
|
||||
m_flightStatus->setColour (TextEditor::textColourId, Colours::black);
|
||||
m_flightStatus->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
||||
|
||||
|
||||
//[UserPreSize]
|
||||
//[/UserPreSize]
|
||||
@@ -45,6 +53,14 @@ MainComponent::MainComponent ()
|
||||
|
||||
|
||||
//[Constructor] You can add your own custom stuff here..
|
||||
m_kml = new Kml("C:\\Users\\jens");
|
||||
|
||||
m_fsLink = new FsLink("C:\\Users\\jens");
|
||||
m_fsLink->addListener(this);
|
||||
m_fsLink->setKml(m_kml);
|
||||
|
||||
m_httpServer = new HttpServer("C:\\Users\\jens");
|
||||
m_httpServer->addListener(m_kml);
|
||||
//[/Constructor]
|
||||
}
|
||||
|
||||
@@ -54,6 +70,7 @@ MainComponent::~MainComponent()
|
||||
//[/Destructor_pre]
|
||||
|
||||
m_fsuipcStatus = nullptr;
|
||||
m_flightStatus = nullptr;
|
||||
|
||||
|
||||
//[Destructor]. You can add your own custom destruction code here..
|
||||
@@ -79,7 +96,8 @@ void MainComponent::paint (Graphics& g)
|
||||
|
||||
void MainComponent::resized()
|
||||
{
|
||||
m_fsuipcStatus->setBounds (32, 256, 150, 24);
|
||||
m_fsuipcStatus->setBounds (16, 256, 150, 24);
|
||||
m_flightStatus->setBounds (216, 256, 150, 24);
|
||||
//[UserResized] Add your own custom resize handling here..
|
||||
//[/UserResized]
|
||||
}
|
||||
@@ -87,6 +105,16 @@ void MainComponent::resized()
|
||||
|
||||
|
||||
//[MiscUserCode] You can add your own definitions of your custom methods or any other code here...
|
||||
void MainComponent::onStateChanged(IFsLink &obj)
|
||||
{
|
||||
m_fsuipcStatus->setText(obj.getLinkState(), juce::sendNotification);
|
||||
m_flightStatus->setText(obj.getFlightState(), juce::sendNotification);
|
||||
}
|
||||
|
||||
void MainComponent::onDataChanged(IFsLink &obj)
|
||||
{
|
||||
(void)obj;
|
||||
}
|
||||
//[/MiscUserCode]
|
||||
|
||||
|
||||
@@ -100,12 +128,17 @@ void MainComponent::resized()
|
||||
BEGIN_JUCER_METADATA
|
||||
|
||||
<JUCER_COMPONENT documentType="Component" className="MainComponent" componentName=""
|
||||
parentClasses="public Component" constructorParams="" variableInitialisers=""
|
||||
snapPixels="8" snapActive="1" snapShown="1" overlayOpacity="0.330"
|
||||
fixedSize="1" initialWidth="400" initialHeight="300">
|
||||
parentClasses="public Component, public IFsLinkListener" constructorParams=""
|
||||
variableInitialisers="" snapPixels="8" snapActive="1" snapShown="1"
|
||||
overlayOpacity="0.330" fixedSize="1" initialWidth="400" initialHeight="300">
|
||||
<BACKGROUND backgroundColour="ffffffff"/>
|
||||
<LABEL name="FSUIP Status" id="a891503ff0f699d7" memberName="m_fsuipcStatus"
|
||||
virtualName="" explicitFocusOrder="0" pos="32 256 150 24" edTextCol="ff000000"
|
||||
virtualName="" explicitFocusOrder="0" pos="16 256 150 24" edTextCol="ff000000"
|
||||
edBkgCol="0" labelText="Unknown" editableSingleClick="0" editableDoubleClick="0"
|
||||
focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
||||
bold="0" italic="0" justification="33"/>
|
||||
<LABEL name="Flight Status" id="2a046c84c0638c1f" memberName="m_flightStatus"
|
||||
virtualName="" explicitFocusOrder="0" pos="216 256 150 24" edTextCol="ff000000"
|
||||
edBkgCol="0" labelText="Unknown" editableSingleClick="0" editableDoubleClick="0"
|
||||
focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
||||
bold="0" italic="0" justification="33"/>
|
||||
|
||||
Reference in New Issue
Block a user