2013-04-20 12:50:30 +02:00
|
|
|
|
|
|
|
#ifndef LUPPP_GUI
|
|
|
|
#define LUPPP_GUI
|
|
|
|
|
|
|
|
#include <FL/Fl.H>
|
2013-05-13 03:43:44 +02:00
|
|
|
#include <FL/Fl_Double_Window.H>
|
2013-04-20 12:50:30 +02:00
|
|
|
#include <FL/Fl_Box.H>
|
|
|
|
|
2013-05-16 02:38:11 +02:00
|
|
|
#include "config.hxx"
|
2013-04-20 13:20:46 +02:00
|
|
|
#include "gtrack.hxx"
|
2013-07-22 12:53:08 +02:00
|
|
|
#include "gunittrack.hxx"
|
2013-05-16 02:38:11 +02:00
|
|
|
#include "gmastertrack.hxx"
|
2013-04-20 13:20:46 +02:00
|
|
|
|
2013-05-13 03:43:44 +02:00
|
|
|
#include <vector>
|
2013-07-24 20:09:35 +02:00
|
|
|
#include <string>
|
2013-05-13 03:43:44 +02:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2013-04-20 12:50:30 +02:00
|
|
|
class Gui
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Gui();
|
|
|
|
int show();
|
2013-05-16 14:38:46 +02:00
|
|
|
GTrack* getTrack(int id);
|
2013-07-27 17:37:54 +02:00
|
|
|
GMasterTrack* getMasterTrack(){return master;}
|
2013-07-24 20:09:35 +02:00
|
|
|
|
|
|
|
// for pushing strings to tooltip area
|
2013-07-25 00:23:30 +02:00
|
|
|
void setTooltip( std::string s );
|
2013-04-20 12:50:30 +02:00
|
|
|
|
|
|
|
private:
|
2013-05-16 00:27:31 +02:00
|
|
|
Fl_Double_Window window;
|
|
|
|
Fl_Box* box;
|
2013-05-16 02:38:11 +02:00
|
|
|
|
|
|
|
GMasterTrack* master;
|
|
|
|
|
2013-05-16 00:27:31 +02:00
|
|
|
vector<GTrack*> tracks;
|
2013-07-24 20:09:35 +02:00
|
|
|
|
2013-07-25 00:23:30 +02:00
|
|
|
std::string tooltip;
|
|
|
|
Fl_Box* tooltipLabel;
|
2013-04-20 12:50:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LUPPP_GUI
|