/*

    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 multiline_label_prop_color_cb(Fl_Widget* w, void* d);
void multiline_label_prop_ok_cb(Fl_Widget* w, void* d);
void multiline_label_prop_canc_cb(Fl_Widget* w, void* d);
void multiline_label_threat_as_a_whole_cb(Fl_Widget* w, void* d);
void multiline_label_increase_interline(Fl_Widget* w, void* d);
void multiline_label_decrease_interline(Fl_Widget* w, void* d);
void multiline_label_set_l_layout(Fl_Widget* w, void* d);
void multiline_label_set_c_layout(Fl_Widget* w, void* d);
void multiline_label_set_r_layout(Fl_Widget* w, void* d);

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

class multiline_label_prop: public Fl_Double_Window {
  friend void multiline_label_prop_ok_cb(Fl_Widget* w, void* d);
  friend void multiline_label_prop_canc_cb(Fl_Widget* w, void* d);
  friend void multiline_label_prop_color_cb(Fl_Widget* w, void* d);
  friend void multiline_label_threat_as_a_whole_cb(Fl_Widget* w, void* d);
  friend void multiline_label_increase_interline(Fl_Widget* w, void* d);
  friend void multiline_label_decrease_interline(Fl_Widget* w, void* d);
  friend void multiline_label_set_l_layout(Fl_Widget* w, void* d);
  friend void multiline_label_set_c_layout(Fl_Widget* w, void* d);
  friend void multiline_label_set_r_layout(Fl_Widget* w, void* d);
public:
  multiline_label_prop(multiline_label* et);
  multiline_label_prop(etichetta* et);
  virtual ~multiline_label_prop();

  virtual int handle(int e);

protected:

  void highlight_text();

  void de_highlight_text();

  void set_type_text_button(int which);

  void initialize_GUI();

  multiline_label* _str;

  const static int    _button_mouse_highlight;
  const static Fl_Menu_Item _str_font_face[];
  const static Fl_Menu_Item _font_dim_str[];

};

