Blame hdspmixer/src/HDSPMixerPresets.h

Packit 427e91
/*
Packit 427e91
 *   HDSPMixer
Packit 427e91
 *    
Packit 427e91
 *   Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
Packit 427e91
 *    
Packit 427e91
 *   This program is free software; you can redistribute it and/or modify
Packit 427e91
 *   it under the terms of the GNU General Public License as published by
Packit 427e91
 *   the Free Software Foundation; either version 2 of the License, or
Packit 427e91
 *   (at your option) any later version.
Packit 427e91
 *
Packit 427e91
 *   This program is distributed in the hope that it will be useful,
Packit 427e91
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 427e91
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 427e91
 *   GNU General Public License for more details.
Packit 427e91
 *
Packit 427e91
 *   You should have received a copy of the GNU General Public License
Packit 427e91
 *   along with this program; if not, write to the Free Software
Packit 427e91
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit 427e91
 */
Packit 427e91
Packit 427e91
#pragma interface
Packit 427e91
#ifndef HDSPMixerPresets_H
Packit 427e91
#define HDSPMixerPresets_H
Packit 427e91
Packit 427e91
#include <math.h>
Packit 427e91
#include <FL/Fl.H>
Packit 427e91
#include <FL/Fl_Widget.H>
Packit 427e91
#include <FL/fl_draw.H>
Packit 427e91
#include "HDSPMixerWindow.h"
Packit 427e91
#include "pixmaps.h"
Packit 427e91
Packit 427e91
class HDSPMixerWindow;
Packit 427e91
Packit 427e91
enum presets {
Packit 427e91
    NONE = 0,
Packit 427e91
    PRE1 = 1,
Packit 427e91
    PRE2 = 2,
Packit 427e91
    PRE3 = 4,
Packit 427e91
    PRE4 = 8,
Packit 427e91
    PRE5 = 16,
Packit 427e91
    PRE6 = 32,
Packit 427e91
    PRE7 = 64,
Packit 427e91
    PRE8 = 128,
Packit 427e91
};
Packit 427e91
Packit 427e91
Packit 427e91
class HDSPMixerPresets:public Fl_Widget
Packit 427e91
{
Packit 427e91
private:
Packit 427e91
    HDSPMixerWindow *basew;
Packit 427e91
public:
Packit 427e91
    int preset, presetmask, save, saving;
Packit 427e91
    HDSPMixerPresets(int x, int y, int w, int h);
Packit 427e91
    void draw();
Packit 427e91
    int handle(int e);
Packit 427e91
    void restore_preset(int preset);
Packit 427e91
    void save_preset(int preset);
Packit 427e91
    void preset_change(int preset);
Packit 427e91
};
Packit 427e91
Packit 427e91
#endif
Packit 427e91