2014-08-29 07:49:51 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2014
|
|
|
|
// David Freese, W1HKJ
|
|
|
|
// Remi Chateauneu
|
2010-05-03 13:15:11 +00:00
|
|
|
//
|
2014-08-29 07:49:51 +00:00
|
|
|
// This file is part of fldigi
|
|
|
|
//
|
|
|
|
// fldigi 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.
|
|
|
|
//
|
|
|
|
// fldigi 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/>.
|
|
|
|
// ----------------------------------------------------------------------------
|
2010-05-03 13:15:11 +00:00
|
|
|
|
|
|
|
#ifndef _WEFAX_PIC_H
|
|
|
|
#define _WEFAX_PIC_H
|
|
|
|
|
2012-02-12 19:30:28 +00:00
|
|
|
#include <FL/Fl_Double_Window.H>
|
|
|
|
|
2010-05-03 13:15:11 +00:00
|
|
|
class Fl_Menu_ ;
|
|
|
|
|
|
|
|
class wefax ;
|
|
|
|
|
|
|
|
class wefax_pic
|
|
|
|
{
|
2012-01-06 23:59:04 +00:00
|
|
|
static void create_rx_viewer(int wid_x, int wid_y,int wid_win, int hei_win);
|
|
|
|
static void create_tx_viewer(int wid_x, int wid_y,int wid_win, int hei_win);
|
2010-05-03 13:15:11 +00:00
|
|
|
public:
|
2012-04-17 20:42:35 +00:00
|
|
|
static void set_tx_pic(unsigned char data, int col, int row, bool is_color );
|
2010-05-03 13:15:11 +00:00
|
|
|
static int normalize_lpm( double the_lpm_value );
|
|
|
|
static void update_rx_lpm(int lpm);
|
|
|
|
static int update_rx_pic_col(unsigned char data, int pos);
|
|
|
|
static void update_rx_pic_bw(unsigned char data, int pos);
|
|
|
|
static void tx_viewer_resize(int the_width, int the_height);
|
|
|
|
static void restart_tx_viewer(void);
|
|
|
|
static void abort_rx_viewer(void);
|
|
|
|
static void abort_tx_viewer(void);
|
|
|
|
static void resize_rx_viewer(int width_img);
|
|
|
|
static void set_rx_label(const std::string & win_label);
|
|
|
|
static void delete_rx_viewer(void);
|
|
|
|
static void delete_tx_viewer(void);
|
|
|
|
static void skip_rx_apt(void);
|
|
|
|
static void skip_rx_phasing(bool auto_center);
|
2012-01-06 23:59:04 +00:00
|
|
|
static void cb_mnu_pic_viewer_rx(Fl_Menu_ *, void *);
|
|
|
|
static void cb_mnu_pic_viewer_tx(Fl_Menu_ *, void *);
|
2010-05-03 13:15:11 +00:00
|
|
|
static void setpicture_link(wefax *me);
|
|
|
|
static void save_image(const std::string & fil_name, const std::string & extra_comments);
|
|
|
|
static void power( double start, double phase, double image, double black, double stop );
|
2011-06-27 22:53:29 +00:00
|
|
|
static void send_image( const std::string & fil_name );
|
2012-02-19 16:29:02 +00:00
|
|
|
static void set_manual( bool manual_mode );
|
2012-04-17 20:42:35 +00:00
|
|
|
static void update_auto_center( bool is_auto_center );
|
2012-01-06 23:59:04 +00:00
|
|
|
|
|
|
|
static void create_both( bool called_from_fl_digi );
|
|
|
|
static void show_both();
|
|
|
|
static void hide_both();
|
2010-05-03 13:15:11 +00:00
|
|
|
};
|
|
|
|
|
2012-02-12 19:30:28 +00:00
|
|
|
extern Fl_Double_Window *wefax_pic_tx_win;
|
|
|
|
extern Fl_Double_Window *wefax_pic_rx_win;
|
|
|
|
|
2010-05-03 13:15:11 +00:00
|
|
|
#endif // _WEFAX_PIC_H
|