-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathphotoprint_state.h
43 lines (38 loc) · 1.09 KB
/
photoprint_state.h
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
#ifndef PHOTOPRINT_STATE_H
#define PHOTOPRINT_STATE_H
#include "layout.h"
#include "configdb.h"
#include "stpui_widgets/units.h"
#include "gp_cppsupport/printoutput.h"
#include "gp_cppsupport/gprinter.h"
#include "progress.h"
#include "profilemanager/profilemanager.h"
#include "searchpath.h"
class PhotoPrint_State : public ConfigFile, public ConfigDB
{
public:
PhotoPrint_State(bool batchmode=FALSE);
~PhotoPrint_State();
void SetFilename(const char *file);
void SetDefaultFilename();
void ParseConfigFile();
// Parses a file but doesn't update filename or reset printer
// used to apply supplementary options, such as layout or profiling modes.
void ParseSupplementaryConfig(const char *filename);
bool SaveConfigFile();
bool NewLayout(Progress *p=NULL);
void SetUnits(enum Units unit);
enum Units GetUnits();
Layout *layout;
char *filename;
LayoutDB layoutdb;
PrintOutput printoutput;
GPrinter printer;
ProfileManager profilemanager;
SearchPathHandler bordersearchpath;
SearchPathHandler backgroundsearchpath;
bool batchmode;
protected:
static ConfigTemplate Template[];
};
#endif