Loopp/src/gtrack.hxx

101 lines
2.3 KiB
C++
Raw Normal View History

2013-12-08 22:44:43 +01:00
/*
* Author: Harry van Haaren 2013
* harryhaaren@gmail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2013-04-20 13:20:46 +02:00
#ifndef LUPPP_G_TRACK_H
#define LUPPP_G_TRACK_H
#include <iostream>
2013-04-20 13:20:46 +02:00
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Slider.H>
#include <FL/Fl_Progress.H>
#include <FL/Fl_Native_File_Chooser.H>
2013-04-20 13:20:46 +02:00
#include "avtk/avtk_box.h"
#include "avtk/avtk_dial.h"
2013-04-20 13:20:46 +02:00
#include "avtk/avtk_button.h"
#include "avtk/avtk_background.h"
2013-08-27 01:01:51 +02:00
#include "avtk/avtk_light_button.h"
2013-07-30 17:15:02 +02:00
#include "avtk/avtk_radial_status.h"
2013-04-20 13:20:46 +02:00
2013-09-08 15:24:27 +02:00
#include "avtk/volume.hxx"
#include "avtk/clipselector.hxx"
2013-07-24 20:09:35 +02:00
#include "config.hxx"
#include "audiobuffer.hxx"
#include "eventhandler.hxx"
using namespace std;
2013-04-20 13:20:46 +02:00
class GTrack : public Fl_Group
{
public:
Avtk::Volume* getVolume(){return &volume;}
Avtk::RadialStatus* getRadialStatus(){return &radial;}
Avtk::ClipSelector* getClipSelector(){return &clipSel;}
2013-09-10 23:26:37 +02:00
GTrack(int x, int y, int w, int h, const char* l = 0 );
2013-04-20 13:20:46 +02:00
// getters
float getSend();
float getXSide();
bool getSendActive();
bool getKeyActive();
bool getRecordActive();
// setters
void setSend(float s);
void setXSide(float s);
void setSendActive(bool a);
void setKeyActive(bool a);
void setRecordActive(bool a);
2013-05-15 03:17:08 +02:00
int ID;
Avtk::Background bg;
2013-07-30 17:15:02 +02:00
Avtk::RadialStatus radial;
Avtk::ClipSelector clipSel;
Avtk::Box volBox;
Avtk::Volume volume;
private:
Avtk::Dial sendDial;
Avtk::LightButton sendActive;
Avtk::Dial xsideDial;
Avtk::LightButton keyActive;
Avtk::LightButton recordActive;
static int privateID;
2013-04-20 13:20:46 +02:00
};
#endif // LUPPP_G_TRACK_H