/*

    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.0105


#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Return_Button.H>
#include <insert_template_dialog.hpp>
#include <iostream>


void include_template_cb(Fl_Widget* w, void* d){
  Fl_Double_Window* win=dynamic_cast<Fl_Double_Window*>(w->parent());
  win->hide();
}

Fl_Double_Window* make_insert_template_dialog() {
  Fl_Double_Window* a = new Fl_Double_Window(350, 80, "Insert template by his name");
  
  Fl_Box*  b= new Fl_Box(10, 5, 330, 70);
  b->box(FL_EMBOSSED_BOX);
  a->add(b);



  Fl_Input* d = new Fl_Input(65, 15, 160, 30, "Name:");
  a->add(d);

  Fl_Return_Button* e=new Fl_Return_Button(230, 15, 105, 30, "OK");
  e->callback(include_template_cb);
  a->add(e);
    
  a->end();
  
  a->set_modal();
  a->show();
   
  return a;
}

