1 |
/* Eliot */ |
/* Eliot */ |
2 |
/* Copyright (C) 1999 Antoine Fraboulet */ |
/* Copyright (C) 1999 Antoine Fraboulet */ |
|
/* Antoine.Fraboulet@free.fr */ |
|
3 |
/* */ |
/* */ |
4 |
/* This program is free software; you can redistribute it and/or modify */ |
/* This file is part of Eliot. */ |
5 |
|
/* */ |
6 |
|
/* Eliot is free software; you can redistribute it and/or modify */ |
7 |
/* it under the terms of the GNU General Public License as published by */ |
/* it under the terms of the GNU General Public License as published by */ |
8 |
/* the Free Software Foundation; either version 2 of the License, or */ |
/* the Free Software Foundation; either version 2 of the License, or */ |
9 |
/* (at your option) any later version. */ |
/* (at your option) any later version. */ |
10 |
/* */ |
/* */ |
11 |
/* This program is distributed in the hope that it will be useful, */ |
/* Eliot is distributed in the hope that it will be useful, */ |
12 |
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
13 |
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
14 |
/* GNU General Public License for more details. */ |
/* GNU General Public License for more details. */ |
19 |
|
|
20 |
/* $Id$ */ |
/* $Id$ */ |
21 |
|
|
22 |
// -*-C++-*- |
/** |
23 |
|
* \file configdb.h |
24 |
|
* \brief Access to Eliot persistant configuration data |
25 |
|
* \author Antoine Fraboulet |
26 |
|
* \date 2002 |
27 |
|
*/ |
28 |
|
|
29 |
#ifndef _CONFIGDB_H |
#ifndef _CONFIGDB_H |
30 |
#define _CONFIGDB_H |
#define _CONFIGDB_H |
38 |
|
|
39 |
#define BUTTON_FONT wxFont(8,wxDEFAULT,wxNORMAL,wxNORMAL) |
#define BUTTON_FONT wxFont(8,wxDEFAULT,wxNORMAL,wxNORMAL) |
40 |
|
|
41 |
#define BOARD "Board" |
#define BOARD "Board" |
42 |
#define BCOLOURLINES wxT(BOARD"/Lines") |
#define BCOLOURLINES wxT(BOARD"/Lines") |
43 |
#define BCOLOURWX2 wxT(BOARD"/Wx2") |
#define BCOLOURWX2 wxT(BOARD"/Wx2") |
44 |
#define BCOLOURWX3 wxT(BOARD"/Wx3") |
#define BCOLOURWX3 wxT(BOARD"/Wx3") |
45 |
#define BCOLOURLX2 wxT(BOARD"/Lx2") |
#define BCOLOURLX2 wxT(BOARD"/Lx2") |
46 |
#define BCOLOURLX3 wxT(BOARD"/Lx3") |
#define BCOLOURLX3 wxT(BOARD"/Lx3") |
47 |
#define BCOLOURBACKGROUND wxT(BOARD"/Background") |
#define BCOLOURBACKGROUND wxT(BOARD"/Background") |
48 |
#define BCOLOURLETTERS wxT(BOARD"/Letters") |
#define BCOLOURLETTERS wxT(BOARD"/Letters") |
49 |
#define BCOLOURTSTLETTERS wxT(BOARD"/TstLetters") |
#define BCOLOURTSTLETTERS wxT(BOARD"/TstLetters") |
50 |
#define BOARDFONT wxT(BOARD"/Font") |
#define BOARDFONT wxT(BOARD"/Font") |
51 |
|
|
52 |
|
#define BDRAWBACKGROUND wxT(BOARD"/DrawTile") |
53 |
|
#define BTILEBACKGROUND wxT(BOARD"/TileBG") |
54 |
|
#define BTSTTILEBACKGROUND wxT(BOARD"/TstTileBG") |
55 |
|
|
56 |
#define LIST "List" |
#define LIST "List" |
57 |
#define LISTFONT wxT(LIST"/Font") |
#define LISTFONT wxT(LIST"/Font") |
58 |
|
|
59 |
#define PRINT "Print" |
#define PRINT "Print" |
60 |
#define PHEADER PRINT"/Header" |
#define PHEADER PRINT"/Header" |
70 |
#define FRAMERACC wxT(FRAME"Racc") |
#define FRAMERACC wxT(FRAME"Racc") |
71 |
#define FRAMEBENJ wxT(FRAME"Benj") |
#define FRAMEBENJ wxT(FRAME"Benj") |
72 |
#define FRAMEBAG wxT(FRAME"Bag") |
#define FRAMEBAG wxT(FRAME"Bag") |
73 |
|
#define FRAMEGAME wxT(FRAME"Game") |
74 |
|
#define FRAMERESULT wxT(FRAME"Result") |
75 |
|
|
76 |
enum Justif { LEFT, CENTER, RIGHT }; |
enum Justif { LEFT, CENTER, RIGHT }; |
77 |
|
|
160 |
|
|
161 |
wxPrintData getPrintData(); |
wxPrintData getPrintData(); |
162 |
void setPrintData(wxPrintData); |
void setPrintData(wxPrintData); |
163 |
wxPageSetupData getPageSetupData(); |
wxPageSetupDialogData getPageSetupDialogData(); |
164 |
void setPageSetupData(wxPageSetupData); |
void setPageSetupDialogData(wxPageSetupDialogData); |
165 |
|
|
166 |
/** |
/** |
167 |
* frames |
* frames |
174 |
void setFrameShow(wxString,int); |
void setFrameShow(wxString,int); |
175 |
void setFrameDefault(); |
void setFrameDefault(); |
176 |
|
|
|
void setJokerPlus1(bool); |
|
177 |
void setRackChecking(bool); |
void setRackChecking(bool); |
|
bool getJokerPlus1(); |
|
178 |
bool getRackChecking(); |
bool getRackChecking(); |
179 |
|
|
180 |
|
void setJokerPlus1(bool); |
181 |
|
bool getJokerPlus1(); |
182 |
|
|
183 |
|
void setDrawTile(bool); |
184 |
|
bool getDrawTile(); |
185 |
|
|
186 |
float getPrintLineScale(); |
float getPrintLineScale(); |
187 |
void setPrintLineScale(float); |
void setPrintLineScale(float); |
188 |
|
|