/*

    Bist: a chemical drawing tool
    Copyright (C) 2008 Valerio Benfante

    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/>.
*/
// generated by Fast Light User Interface Designer (fluid) version 1.0104



/**
 *Crea la finetra e ritorna un vettore che contiene nell'ordine:
 * componente r g b del colore el legame e tipo di legame;
 *
 *\param quale il tipo di legame a cui si vogliono cambiare le prprietą.
 */




vector<float> bond_win(int quale);


int trasl_rev_tipo_leg(int quale);


void legame_prop_color_cb(Fl_Widget* w, void* d);
void legame_prop_ok_cb(Fl_Widget* w, void* d);
void legame_prop_cancel_cb(Fl_Widget* w, void* d);
void legame_prop_scale_cb(Fl_Widget* w, void* d);


/**
 *Questa classe  rappresenta la finestra per cabiare  le proprietą dei
 *legami
 */


class legame_prop : public Fl_Window{
  friend vector<float> bond_win(int quale);
  friend void legame_prop_color_cb(Fl_Widget* w, void* d);
  friend void legame_prop_ok_cb(Fl_Widget* w, void* d);
  friend void legame_prop_cancel_cb(Fl_Widget* w, void* d);
  friend void legame_prop_scale_cb(Fl_Widget* w, void* d);
  
 public:
  legame_prop(int x,int y,int w, int h, char* tit,int quale);
  
 protected:
  int _r, _g, _b;
  int _radioval;
  float _scale;

};


