Blame hdspconf/src/HC_SyncCheck.h

Packit Service b98cfc
/*
Packit Service b98cfc
 *   HDSPConf
Packit Service b98cfc
 *    
Packit Service b98cfc
 *   Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
Packit Service b98cfc
 *    
Packit Service b98cfc
 *   This program is free software; you can redistribute it and/or modify
Packit Service b98cfc
 *   it under the terms of the GNU General Public License as published by
Packit Service b98cfc
 *   the Free Software Foundation; either version 2 of the License, or
Packit Service b98cfc
 *   (at your option) any later version.
Packit Service b98cfc
 *
Packit Service b98cfc
 *   This program is distributed in the hope that it will be useful,
Packit Service b98cfc
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service b98cfc
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service b98cfc
 *   GNU General Public License for more details.
Packit Service b98cfc
 *
Packit Service b98cfc
 *   You should have received a copy of the GNU General Public License
Packit Service b98cfc
 *   along with this program; if not, write to the Free Software
Packit Service b98cfc
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit Service b98cfc
 */
Packit Service b98cfc
Packit Service b98cfc
#pragma interface
Packit Service b98cfc
#ifndef HC_SYNCCHECK_H
Packit Service b98cfc
#define HC_SYNCCHECK_H
Packit Service b98cfc
Packit Service b98cfc
#include <FL/Fl_Widget.H>
Packit Service b98cfc
#include <FL/fl_draw.H>
Packit Service b98cfc
#include <FL/Fl.H>
Packit Service b98cfc
#include "HC_CardPane.h"
Packit Service b98cfc
Packit Service b98cfc
#define NO_LOCK 0
Packit Service b98cfc
#define LOCK    1
Packit Service b98cfc
#define SYNC    2
Packit Service b98cfc
Packit Service b98cfc
class HC_CardPane;
Packit Service b98cfc
Packit Service b98cfc
class HC_SyncCheck:public Fl_Widget
Packit Service b98cfc
{
Packit Service b98cfc
public:
Packit Service b98cfc
    HC_SyncCheck(int x, int y, int w, int h);
Packit Service b98cfc
    void draw();
Packit Service b98cfc
    int adat1_lock_status;
Packit Service b98cfc
    int adat2_lock_status;
Packit Service b98cfc
    int adat3_lock_status;
Packit Service b98cfc
    int wordclock_lock_status;
Packit Service b98cfc
    int adatsync_lock_status;
Packit Service b98cfc
    int spdif_lock_status;    
Packit Service b98cfc
    void setSpdifStatus(unsigned char s);
Packit Service b98cfc
    void setAdat1Status(unsigned char s);
Packit Service b98cfc
    void setAdat2Status(unsigned char s);
Packit Service b98cfc
    void setAdat3Status(unsigned char s);
Packit Service b98cfc
    void setAdatSyncStatus(unsigned char s);
Packit Service b98cfc
    void setWCStatus(unsigned char s);
Packit Service b98cfc
private:
Packit Service b98cfc
    char *adat_name;
Packit Service b98cfc
    int h_step;
Packit Service b98cfc
    Fl_Box_Draw_F *draw_box;
Packit Service b98cfc
};
Packit Service b98cfc
Packit Service b98cfc
#endif
Packit Service b98cfc