// generated by Fast Light User Interface Designer (fluid) version 1.0110

#ifndef mainwindow_h
#define mainwindow_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Input.H>
#include "xpp.h"
#include <FL/Fl_Button.H>
#include <FL/fl_file_chooser.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Counter.H>
#include <FL/Fl_Return_Button.H>
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Choice.H>
#include <FL/Fl_Value_Input.H>
#include <FL/Fl_Menu_Button.H>
#include <FL/Fl_Light_Button.H>
#include "inputslider.h"
#include <FL/Fl_Round_Button.H>

class xppMainWindow {
public:
  typedef enum {U_MM, U_IN, U_PT, U_CM, U_PICA, U_DIDOT,
  U_CICERO, U_BIGPT} custom_unit_t;
  int printstat; 
  printFiles *print; 
  xppMainWindow(int  argc, char *argv[], int &exitstat);
  Fl_Double_Window *mainWindow;
  Fl_Input *fileList;
private:
  void cb_fileList_i(Fl_Input*, void*);
  static void cb_fileList(Fl_Input*, void*);
  void cb_Browse_i(Fl_Button*, void*);
  static void cb_Browse(Fl_Button*, void*);
public:
  Fl_Scroll *printerList;
  Fl_Counter *numCopies;
private:
  void cb_numCopies_i(Fl_Counter*, void*);
  static void cb_numCopies(Fl_Counter*, void*);
public:
  Fl_Counter *priority;
private:
  void cb_priority_i(Fl_Counter*, void*);
  static void cb_priority(Fl_Counter*, void*);
  void cb_Options_i(Fl_Button*, void*);
  static void cb_Options(Fl_Button*, void*);
  void cb_Instances_i(Fl_Button*, void*);
  static void cb_Instances(Fl_Button*, void*);
  void cb_Close_i(Fl_Button*, void*);
  static void cb_Close(Fl_Button*, void*);
  void cb_Print_i(Fl_Return_Button*, void*);
  static void cb_Print(Fl_Return_Button*, void*);
public:
  void show();
  ~xppMainWindow();
  Fl_Double_Window* xppOptionDialog();
  Fl_Double_Window *optionDialog;
  Fl_Tabs *optionGroups;
  Fl_Group *basicOpts;
  Fl_Choice *papersource;
private:
  void cb_papersource_i(Fl_Choice*, void*);
  static void cb_papersource(Fl_Choice*, void*);
  static Fl_Menu_Item menu_papersource[];
public:
  Fl_Choice *papersize;
private:
  void cb_papersize_i(Fl_Choice*, void*);
  static void cb_papersize(Fl_Choice*, void*);
  static Fl_Menu_Item menu_papersize[];
public:
  Fl_Choice *papertype;
private:
  void cb_papertype_i(Fl_Choice*, void*);
  static void cb_papertype(Fl_Choice*, void*);
  static Fl_Menu_Item menu_papertype[];
public:
  Fl_Choice *orientation;
private:
  void cb_orientation_i(Fl_Choice*, void*);
  static void cb_orientation(Fl_Choice*, void*);
  static Fl_Menu_Item menu_orientation[];
public:
  Fl_Group *custom_size;
private:
  void cb_custom_size_i(Fl_Group*, void*);
  static void cb_custom_size(Fl_Group*, void*);
public:
  Fl_Value_Input *custom_width;
private:
  void cb_custom_width_i(Fl_Value_Input*, void*);
  static void cb_custom_width(Fl_Value_Input*, void*);
public:
  Fl_Value_Input *custom_height;
private:
  void cb_custom_height_i(Fl_Value_Input*, void*);
  static void cb_custom_height(Fl_Value_Input*, void*);
public:
  Fl_Menu_Button *custom_unit;
private:
  void cb_custom_unit_i(Fl_Menu_Button*, void*);
  static void cb_custom_unit(Fl_Menu_Button*, void*);
  static Fl_Menu_Item menu_custom_unit[];
  void cb_Mirror_i(Fl_Light_Button*, void*);
  static void cb_Mirror(Fl_Light_Button*, void*);
  void cb_Fit_i(Fl_Light_Button*, void*);
  static void cb_Fit(Fl_Light_Button*, void*);
  void cb_Page_i(Fl_Input*, void*);
  static void cb_Page(Fl_Input*, void*);
  void cb_Reverse_i(Fl_Light_Button*, void*);
  static void cb_Reverse(Fl_Light_Button*, void*);
  void cb_Collate_i(Fl_Light_Button*, void*);
  static void cb_Collate(Fl_Light_Button*, void*);
public:
  Fl_Choice *pageset;
private:
  void cb_pageset_i(Fl_Choice*, void*);
  static void cb_pageset(Fl_Choice*, void*);
  static Fl_Menu_Item menu_pageset[];
public:
  Fl_Choice *duplex;
private:
  void cb_duplex_i(Fl_Choice*, void*);
  static void cb_duplex(Fl_Choice*, void*);
  static Fl_Menu_Item menu_duplex[];
public:
  Fl_Choice *numberup;
private:
  void cb_numberup_i(Fl_Choice*, void*);
  static void cb_numberup(Fl_Choice*, void*);
  static Fl_Menu_Item menu_numberup[];
public:
  Fl_Choice *layout;
private:
  void cb_layout_i(Fl_Choice*, void*);
  static void cb_layout(Fl_Choice*, void*);
  static Fl_Menu_Item menu_layout[];
public:
  Fl_Choice *border;
private:
  void cb_border_i(Fl_Choice*, void*);
  static void cb_border(Fl_Choice*, void*);
  static Fl_Menu_Item menu_border[];
public:
  Fl_Group *textOpts;
private:
  void cb_Characters_i(Fl_Counter*, void*);
  static void cb_Characters(Fl_Counter*, void*);
  void cb_Lines_i(Fl_Counter*, void*);
  static void cb_Lines(Fl_Counter*, void*);
  void cb_Columns_i(Fl_Counter*, void*);
  static void cb_Columns(Fl_Counter*, void*);
  void cb_Pretty_i(Fl_Light_Button*, void*);
  static void cb_Pretty(Fl_Light_Button*, void*);
  void cb_Wrap_i(Fl_Light_Button*, void*);
  static void cb_Wrap(Fl_Light_Button*, void*);
public:
  Fl_Light_Button *defaultmargins;
private:
  void cb_defaultmargins_i(Fl_Light_Button*, void*);
  static void cb_defaultmargins(Fl_Light_Button*, void*);
public:
  Input_Slider *topmargin;
private:
  void cb_topmargin_i(Input_Slider*, void*);
  static void cb_topmargin(Input_Slider*, void*);
public:
  Input_Slider *bottommargin;
private:
  void cb_bottommargin_i(Input_Slider*, void*);
  static void cb_bottommargin(Input_Slider*, void*);
public:
  Input_Slider *leftmargin;
private:
  void cb_leftmargin_i(Input_Slider*, void*);
  static void cb_leftmargin(Input_Slider*, void*);
public:
  Input_Slider *rightmargin;
private:
  void cb_rightmargin_i(Input_Slider*, void*);
  static void cb_rightmargin(Input_Slider*, void*);
public:
  Fl_Group *advancedOpts;
private:
  void cb_Brightness_i(Input_Slider*, void*);
  static void cb_Brightness(Input_Slider*, void*);
  void cb_Gamma_i(Input_Slider*, void*);
  static void cb_Gamma(Input_Slider*, void*);
public:
  Fl_Choice *imagepos;
private:
  void cb_imagepos_i(Fl_Choice*, void*);
  static void cb_imagepos(Fl_Choice*, void*);
  static Fl_Menu_Item menu_imagepos[];
public:
  Fl_Choice *imagesizetype;
private:
  void cb_imagesizetype_i(Fl_Choice*, void*);
  static void cb_imagesizetype(Fl_Choice*, void*);
  static Fl_Menu_Item menu_imagesizetype[];
public:
  Input_Slider *imagesize;
private:
  void cb_imagesize_i(Input_Slider*, void*);
  static void cb_imagesize(Input_Slider*, void*);
  void cb_Saturation_i(Input_Slider*, void*);
  static void cb_Saturation(Input_Slider*, void*);
  void cb_Hue_i(Input_Slider*, void*);
  static void cb_Hue(Input_Slider*, void*);
  void cb_Plot_i(Fl_Light_Button*, void*);
  static void cb_Plot(Fl_Light_Button*, void*);
  void cb_Pen_i(Input_Slider*, void*);
  static void cb_Pen(Input_Slider*, void*);
public:
  Fl_Group *otherOpts;
  Fl_Choice *job_hold_until;
private:
  void cb_job_hold_until_i(Fl_Choice*, void*);
  static void cb_job_hold_until(Fl_Choice*, void*);
  static Fl_Menu_Item menu_job_hold_until[];
public:
  Fl_Value_Input *job_sched_hours;
private:
  void cb_job_sched_hours_i(Fl_Value_Input*, void*);
  static void cb_job_sched_hours(Fl_Value_Input*, void*);
public:
  Fl_Value_Input *job_sched_minutes;
private:
  void cb_job_sched_minutes_i(Fl_Value_Input*, void*);
  static void cb_job_sched_minutes(Fl_Value_Input*, void*);
public:
  Fl_Value_Input *job_sched_seconds;
private:
  void cb_job_sched_seconds_i(Fl_Value_Input*, void*);
  static void cb_job_sched_seconds(Fl_Value_Input*, void*);
  void cb_Billing_i(Fl_Input*, void*);
  static void cb_Billing(Fl_Input*, void*);
  void cb_Job_i(Fl_Input*, void*);
  static void cb_Job(Fl_Input*, void*);
public:
  Fl_Choice *beforejob;
private:
  void cb_beforejob_i(Fl_Choice*, void*);
  static void cb_beforejob(Fl_Choice*, void*);
public:
  Fl_Choice *afterjob;
private:
  void cb_afterjob_i(Fl_Choice*, void*);
  static void cb_afterjob(Fl_Choice*, void*);
  void cb__i(Fl_Input*, void*);
  static void cb_(Fl_Input*, void*);
  void cb_1_i(Fl_Input*, void*);
  static void cb_1(Fl_Input*, void*);
  void cb_OK_i(Fl_Return_Button*, void*);
  static void cb_OK(Fl_Return_Button*, void*);
  void cb_Cancel_i(Fl_Button*, void*);
  static void cb_Cancel(Fl_Button*, void*);
  void cb_Save_i(Fl_Button*, void*);
  static void cb_Save(Fl_Button*, void*);
  void cb_This_i(Fl_Button*, void*);
  static void cb_This(Fl_Button*, void*);
  void cb_Raw_i(Fl_Light_Button*, void*);
  static void cb_Raw(Fl_Light_Button*, void*);
public:
  Fl_Double_Window* xppInstanceDialog();
  Fl_Double_Window *instanceDialog;
  Fl_Choice *instancelist;
  Fl_Round_Button *copybutton;
private:
  void cb_copybutton_i(Fl_Round_Button*, void*);
  static void cb_copybutton(Fl_Round_Button*, void*);
public:
  Fl_Round_Button *renamebutton;
private:
  void cb_renamebutton_i(Fl_Round_Button*, void*);
  static void cb_renamebutton(Fl_Round_Button*, void*);
public:
  Fl_Input *newname;
  Fl_Round_Button *deletebutton;
private:
  void cb_deletebutton_i(Fl_Round_Button*, void*);
  static void cb_deletebutton(Fl_Round_Button*, void*);
  void cb_Apply_i(Fl_Return_Button*, void*);
  static void cb_Apply(Fl_Return_Button*, void*);
  void cb_Close1_i(Fl_Button*, void*);
  static void cb_Close1(Fl_Button*, void*);
public:
  void xppRecalculCustom(int refresh);
  double xpppspttod(int val, custom_unit_t what);
  int xppdtopspt(double val, custom_unit_t what);
  void xppUpdatePaperSizeOption(Fl_Widget *o, int flags);
  void xppSetPaperSizeOption(Fl_Widget *o, unsigned int flags);
};
#endif
