2013-12-08 21:44:43 +00: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 12:20:46 +01:00
|
|
|
|
|
|
|
#ifndef LUPPP_G_TRACK_H
|
|
|
|
#define LUPPP_G_TRACK_H
|
|
|
|
|
2013-05-13 22:04:12 +01:00
|
|
|
#include <iostream>
|
|
|
|
|
2013-04-20 12:20:46 +01:00
|
|
|
#include <FL/Fl.H>
|
|
|
|
#include <FL/Fl_Group.H>
|
|
|
|
#include <FL/Fl_Slider.H>
|
2013-05-16 13:38:46 +01:00
|
|
|
#include <FL/Fl_Progress.H>
|
2013-05-19 23:57:12 +01:00
|
|
|
#include <FL/Fl_Native_File_Chooser.H>
|
2013-04-20 12:20:46 +01:00
|
|
|
|
2013-10-18 12:32:57 +01:00
|
|
|
#include "avtk/avtk_box.h"
|
2013-05-13 02:43:44 +01:00
|
|
|
#include "avtk/avtk_dial.h"
|
2013-04-20 12:20:46 +01:00
|
|
|
#include "avtk/avtk_button.h"
|
2013-05-13 02:43:44 +01:00
|
|
|
#include "avtk/avtk_background.h"
|
2013-08-27 00:01:51 +01:00
|
|
|
#include "avtk/avtk_light_button.h"
|
2013-07-30 16:15:02 +01:00
|
|
|
#include "avtk/avtk_radial_status.h"
|
2013-04-20 12:20:46 +01:00
|
|
|
|
2013-09-08 14:24:27 +01:00
|
|
|
#include "avtk/volume.hxx"
|
2013-09-05 18:33:16 +01:00
|
|
|
#include "avtk/clipselector.hxx"
|
2013-05-13 22:04:12 +01:00
|
|
|
|
2013-07-24 19:09:35 +01:00
|
|
|
#include "config.hxx"
|
2013-05-19 23:57:12 +01:00
|
|
|
#include "audiobuffer.hxx"
|
2013-05-13 22:04:12 +01:00
|
|
|
#include "eventhandler.hxx"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2013-04-20 12:20:46 +01:00
|
|
|
class GTrack : public Fl_Group
|
|
|
|
{
|
|
|
|
public:
|
2013-07-25 15:20:16 +01:00
|
|
|
|
2013-07-26 01:27:19 +01:00
|
|
|
Avtk::Volume* getVolume(){return &volume;}
|
2013-08-22 02:42:11 +01:00
|
|
|
Avtk::RadialStatus* getRadialStatus(){return &radial;}
|
2013-07-25 15:20:16 +01:00
|
|
|
Avtk::ClipSelector* getClipSelector(){return &clipSel;}
|
|
|
|
|
2013-09-10 22:26:37 +01:00
|
|
|
GTrack(int x, int y, int w, int h, const char* l = 0 );
|
2013-04-20 12:20:46 +01:00
|
|
|
|
2013-09-23 12:51:41 +01:00
|
|
|
|
2013-10-03 01:50:16 +01: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);
|
|
|
|
|
2016-11-15 18:11:28 +01:00
|
|
|
void setJackSend(float s);
|
|
|
|
void setJackSendActivate(bool a);
|
2013-10-03 01:50:16 +01:00
|
|
|
|
2013-05-15 02:17:08 +01:00
|
|
|
int ID;
|
|
|
|
|
2013-05-13 02:43:44 +01:00
|
|
|
Avtk::Background bg;
|
|
|
|
|
2013-07-30 16:15:02 +01:00
|
|
|
Avtk::RadialStatus radial;
|
|
|
|
|
2013-07-21 16:04:54 +01:00
|
|
|
Avtk::ClipSelector clipSel;
|
2016-11-10 23:13:37 +01:00
|
|
|
|
2013-10-18 12:32:57 +01:00
|
|
|
Avtk::Box volBox;
|
2013-07-21 16:04:54 +01:00
|
|
|
|
2013-07-22 08:38:18 +01:00
|
|
|
Avtk::Volume volume;
|
2013-05-16 17:16:18 +01:00
|
|
|
|
2016-11-19 00:35:43 +01:00
|
|
|
float getJackSend();
|
|
|
|
bool getJackSendActivate();
|
|
|
|
private:
|
2016-11-10 23:13:37 +01:00
|
|
|
Avtk::Box jackSendBox;
|
|
|
|
Avtk::Dial jackSendDial;
|
|
|
|
Avtk::LightButton jackSendActivate;
|
|
|
|
|
2013-10-03 01:50:16 +01:00
|
|
|
Avtk::Dial sendDial;
|
|
|
|
Avtk::LightButton sendActive;
|
|
|
|
|
|
|
|
Avtk::Dial xsideDial;
|
|
|
|
Avtk::LightButton keyActive;
|
|
|
|
|
|
|
|
Avtk::LightButton recordActive;
|
|
|
|
|
2013-05-13 02:43:44 +01:00
|
|
|
|
|
|
|
static int privateID;
|
2013-04-20 12:20:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LUPPP_G_TRACK_H
|
|
|
|
|