GNU Exterior Ballistics Computer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.3 KiB

10 months ago
#ifndef __RANGEWINDOW
#define __RANGEWINDOW
10 months ago
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Menu_Bar.H>
#include <FL/Fl_Menu_Item.H>
#include <FL/Fl_Browser.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_File_Chooser.H>
#include <stdlib.h>
#include <stdio.h>
#include "GBCSolution.h"
#include "hpdf.h"
10 months ago
class RangeWindow : public Fl_Window {
10 months ago
public:
RangeWindow(int w, int h, GBCSolution* inSLN);
~RangeWindow();
int* colwidths;
10 months ago
int min,max,step,maxvalid;
int targetsize;
10 months ago
Fl_Menu_Bar* menu;
Fl_Browser* tbl;
GBCSolution* Sln;
private:
static void cb_Nothing(Fl_Widget* , void* );
static void cb_Min0(Fl_Widget* , void*);
static void cb_Min50(Fl_Widget* , void*);
static void cb_Min100(Fl_Widget* , void*);
static void cb_Min250(Fl_Widget* , void*);
static void cb_Min500(Fl_Widget* , void*);
static void cb_Min750(Fl_Widget* , void*);
static void cb_Min1000(Fl_Widget* , void*);
static void cb_Min2000(Fl_Widget* , void*);
static void cb_Max100(Fl_Widget* , void*);
static void cb_Max250(Fl_Widget* , void*);
static void cb_Max500(Fl_Widget* , void*);
static void cb_Max750(Fl_Widget* , void*);
static void cb_Max1000(Fl_Widget* , void*);
static void cb_Max1760(Fl_Widget* , void*);
static void cb_Max2000(Fl_Widget* , void*);
static void cb_MaxMax(Fl_Widget* , void*);
static void cb_Step1(Fl_Widget* , void*);
static void cb_Step5(Fl_Widget* , void*);
static void cb_Step10(Fl_Widget* , void*);
static void cb_Step25(Fl_Widget* , void*);
static void cb_Step50(Fl_Widget* , void*);
static void cb_Step100(Fl_Widget* , void*);
static void cb_Step250(Fl_Widget* , void*);
static void cb_ExportCSV(Fl_Widget*, void*);
static void cb_ExportExcel(Fl_Widget*, void*);
static void cb_ExportHTML(Fl_Widget*, void*);
static void cb_ExportSQL(Fl_Widget*, void*);
static void cb_ExportXML(Fl_Widget*, void*);
static void cb_ExportOO(Fl_Widget*, void*);
10 months ago
static void cb_ExportPDF(Fl_Widget*, void*);
10 months ago
static void cb_Close(Fl_Widget*, void*);
int GetColumns(void);
int GetHeaderLines(void);
const char *GetHeader(int col, int row);
int GetPrefaceLines();
void GetPreface(int l, char *str);
int GetData(int col, int range, char *buf);
char *GetData(int col, int range);
void GenTable(void);
10 months ago
};
#endif