Loopp/src/gui.hxx

90 lines
1.7 KiB
C++
Raw Normal View History

2013-04-20 12:50:30 +02:00
#ifndef LUPPP_GUI
#define LUPPP_GUI
#include <vector>
#include <string>
2013-04-20 12:50:30 +02:00
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
2013-04-20 12:50:30 +02:00
#include "goptions.hxx"
#include "config.hxx"
2013-04-20 13:20:46 +02:00
#include "gtrack.hxx"
#include "gunittrack.hxx"
#include "gmastertrack.hxx"
#include "gaudioeditor.hxx"
2013-04-20 13:20:46 +02:00
#include "diskwriter.hxx"
#include "diskreader.hxx"
// non-session-manager integration
#include "nsm.h"
using namespace std;
class AudioBuffer;
2013-04-20 12:50:30 +02:00
class Gui
{
public:
Gui();
~Gui();
2013-04-20 12:50:30 +02:00
int show();
int quit();
2013-09-21 02:10:01 +02:00
void askQuit();
/// returns the options window
OptionsWindow* getOptionsWindow();
/// open audio editor window with an AudioBuffer
AudioEditor* getAudioEditor();
2013-10-01 17:04:59 +02:00
/// resets the state to "new"
void reset();
GTrack* getTrack(int id);
2013-07-27 17:37:54 +02:00
GMasterTrack* getMasterTrack(){return master;}
2013-07-24 20:09:35 +02:00
DiskWriter* getDiskWriter(){return diskWriter;}
DiskReader* getDiskReader(){return diskReader;}
/// used to load samples into the grid
void selectLoadSample( int track, int clip );
/// allows the user to select a Controller definition
static void selectLoadController(Fl_Widget* w, void*);
2013-09-23 11:53:58 +02:00
int samplerate;
2013-11-02 14:41:26 +01:00
nsm_client_t* getNsm(){return nsm;}
2013-09-23 11:53:58 +02:00
2013-04-20 12:50:30 +02:00
private:
Fl_Double_Window window;
OptionsWindow* optionWindow;
AudioEditor* audioEditor;
DiskReader* diskReader;
DiskWriter* diskWriter;
GMasterTrack* master;
vector<GTrack*> tracks;
2013-07-24 20:09:35 +02:00
// FIXME: refactor tooltip code out..?
2013-07-25 00:23:30 +02:00
std::string tooltip;
Fl_Box* tooltipLabel;
// non-session-manager
nsm_client_t* nsm;
2013-04-20 12:50:30 +02:00
};
#endif // LUPPP_GUI