Files
FsTrack/Source/MainComponent.h
T
jens f471a98b52 - added ViewFormat for parsing GE queries for Camera and stuff
- Camera now controlled with adjustable alt, tilt, auto roll based on aircraft banking and auto heading based on aircraft heading


git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@129 b431acfa-c32f-4a4a-93f1-934dc6c82436
2015-01-13 23:12:57 +00:00

96 lines
3.3 KiB
C++

/*
==============================================================================
This is an automatically generated GUI class created by the Introjucer!
Be careful when adding custom code to these files, as only the code within
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved.
Created with Introjucer version: 3.1.0
------------------------------------------------------------------------------
The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright 2004-13 by Raw Material Software Ltd.
==============================================================================
*/
#ifndef __JUCE_HEADER_9002020A4DD09B20__
#define __JUCE_HEADER_9002020A4DD09B20__
//[Headers] -- You can add your own extra header files here --
#include "JuceHeader.h"
#include "Kml.hpp"
#include "FsLink.hpp"
#include "HttpServer.hpp"
//[/Headers]
//==============================================================================
/**
//[Comments]
An auto-generated component, created by the Introjucer.
Describe your class and how it works here!
//[/Comments]
*/
class MainComponent : public Component,
public IFsLinkListener,
public ChangeListener,
public SliderListener,
public ComboBoxListener,
public ButtonListener
{
public:
//==============================================================================
MainComponent (String const &homeDir);
~MainComponent();
//==============================================================================
//[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods]
void paint (Graphics& g);
void resized();
void sliderValueChanged (Slider* sliderThatWasMoved);
void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
void buttonClicked (Button* buttonThatWasClicked);
private:
//[UserVariables] -- You can add your own custom variables in this section.
ScopedPointer<TooltipWindow> m_toolTip;
ScopedPointer<FsLink> m_fsLink;
ScopedPointer<Kml> m_kml;
ScopedPointer<HttpServer> m_httpServer;
void onStateChanged(IFsLink &obj);
void onDataChanged(IFsLink &obj);
void changeListenerCallback(juce::ChangeBroadcaster *source);
//[/UserVariables]
//==============================================================================
ScopedPointer<Label> m_fsuipcStatus;
ScopedPointer<Label> m_flightStatus;
ScopedPointer<Slider> m_kmlUpdInterval_s;
ScopedPointer<ColourSelector> m_colorSelector;
ScopedPointer<ComboBox> m_altitudeMode;
ScopedPointer<Slider> m_cameraAltitude;
ScopedPointer<Slider> m_CameraTilt;
ScopedPointer<ToggleButton> m_cameraAutoHeadingEnable;
ScopedPointer<ToggleButton> m_cameraAutoRollEnable;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainComponent)
};
//[EndFile] You can add extra defines here...
//[/EndFile]
#endif // __JUCE_HEADER_9002020A4DD09B20__