/*

    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


extern finestra_pr* MainWindow;

extern Fl_Pixmap image_lb_subs;
extern Fl_Pixmap image_lb_supers;
extern Fl_Pixmap image_lb_select_font_color;
extern Fl_Pixmap image_lb_color_atom;
extern Fl_Pixmap image_lb_normal_str_atom;


void string_prop_color_cb(Fl_Widget* w, void* d);
void string_prop_ok_cb(Fl_Widget* w, void* d);
void string_prop_canc_cb(Fl_Widget* w, void* d);

void string_prop_font_cb(Fl_Widget* w, void* d);


/**
 *Questa classe  rappresenta la finestra per cambiare  le proprietà delle
 *stringhe
 */

class string_prop : public Fl_Double_Window {
  friend void string_prop_ok_cb(Fl_Widget* w, void* d);
  friend void string_prop_canc_cb(Fl_Widget* w, void* d);
  friend void string_prop_color_cb(Fl_Widget* w, void* d);
  friend void string_prop_font_cb(Fl_Widget* w, void* d);

public:
  string_prop(etichetta* et);
  virtual ~string_prop();

  virtual int handle(int e);

protected:

  void set_type_text_button(int which);

  etichetta* _str;

};

