-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflsqlite.hpp
More file actions
64 lines (48 loc) · 1.04 KB
/
flsqlite.hpp
File metadata and controls
64 lines (48 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef FLSQLITE_HPP_INCLUDED
#define FLSQLITE_HPP_INCLUDED
#include "fl.hpp"
#include "sqlite3.h"
struct sqb;
struct mbr: public ColResizeBrowser{
sqb* br;
mbr(int x, int y, int w, int h );
int handle(int e);
};
struct Fl_Inputc: Fl_Input{
sqb* br;
Fl_Inputc(int X,int Y,int W,int H,const char*L=0): Fl_Input(X,Y,W,H,L){} ;
int handle(int e);
};
struct sqb: public Fl_Box{
void* EventKd=0;
void* EventSelect=0;
void* EventEnterSelected=0;
void* EventEnterNotSelected=0;
void* EventEnterCtrlR=0;
sqlite3* db;
vector< vector<vector< char*>>> cr;
ColResizeBrowser* mbt=0;
mbr* mb=0;
vint colsw;
int indexcol=-1;
int indexsq;
int mbi;
int mbid=-1;
int idcol=-1;
const char* indexsel;
vstring cols; //cols to show
vstring colsql;
vint typec;
vstring fmt;
vstring fmtr=vstring(10); //row
vstring sqi=vstring(10);
vstring sqiprev=vstring(10); //if equal dont load
Fl_Inputc* inp1;
bool inpmode=0;
string inpmode0="";
const char* mbselvs();//
void load();
sqb(int x, int y, int w, int h );
int handle(int e);
};
#endif