| 1 |
/*************************************************************************** |
| 2 |
configstate.h |
| 3 |
------------------- |
| 4 |
State for config dialog |
| 5 |
------------------- |
| 6 |
Copyright 2006-2008 David Johnson <[email protected]> |
| 7 |
All rights reserved. |
| 8 |
|
| 9 |
Redistribution and use in source and binary forms, with or without |
| 10 |
modification, are permitted provided that the following conditions |
| 11 |
are met: |
| 12 |
|
| 13 |
1. Redistributions of source code must retain the above copyright |
| 14 |
notice, this list of conditions and the following disclaimer. |
| 15 |
|
| 16 |
2. Redistributions in binary form must reproduce the above copyright |
| 17 |
notice, this list of conditions and the following disclaimer in the |
| 18 |
documentation and/or other materials provided with the distribution. |
| 19 |
|
| 20 |
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| 21 |
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 22 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 23 |
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
| 24 |
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 25 |
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
| 26 |
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 27 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER |
| 28 |
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 29 |
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 30 |
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 |
***************************************************************************/ |
| 32 |
|
| 33 |
#ifndef CONFIGSTATE_H |
| 34 |
#define CONFIGSTATE_Hcxx . . $ `src/configstate.h:34:9`! |
| 35 |
|
| 36 |
#include <QStringList> |
| 37 |
#include "hop.h"cxx . . $ `<file>/src/hop.h`/ |
| 38 |
#include "resource.h"cxx . . $ `<file>/src/resource.h`/ |
| 39 |
|
| 40 |
struct WinConfigStatecxx . . $ WinConfigState# { |
| •41 |
#if defined (Q_OS_MAC) |
| 42 |
WinConfigState() : statusbar(true) { ; } |
| 43 |
#else |
| 44 |
WinConfigStatecxx . . $ WinConfigState#WinConfigState(49f6e7a06ebc5aa8).() : statusbarcxx . . $ WinConfigState#statusbar.(false) { ; } |
| 45 |
#endif |
| 46 |
bool statusbarcxx . . $ WinConfigState#statusbar.; |
| 47 |
}; |
| 48 |
|
| 49 |
struct GenConfigStatecxx . . $ GenConfigState# { |
| 50 |
GenConfigStatecxx . . $ GenConfigState#GenConfigState(49f6e7a06ebc5aa8).() |
| 51 |
: lookfeelcxx . . $ GenConfigState#lookfeel.(""), showsplashcxx . . $ GenConfigState#showsplash.(true), autosavecxx . . $ GenConfigState#autosave.(true), saveintervalcxx . . $ GenConfigState#saveinterval.(5), |
| 52 |
autobackupcxx . . $ GenConfigState#autobackup.(true), loadlastcxx . . $ GenConfigState#loadlast.(true), recentnumcxx . . $ GenConfigState#recentnum.(5), recentfilescxx . . $ GenConfigState#recentfiles.() { ; } |
| 53 |
QStringcxx . . $ QString# lookfeelcxx . . $ GenConfigState#lookfeel.; |
| 54 |
bool showsplashcxx . . $ GenConfigState#showsplash.; |
| 55 |
bool autosavecxx . . $ GenConfigState#autosave.; |
| 56 |
int saveintervalcxx . . $ GenConfigState#saveinterval.; |
| 57 |
bool autobackupcxx . . $ GenConfigState#autobackup.; |
| 58 |
bool loadlastcxx . . $ GenConfigState#loadlast.; |
| 59 |
int recentnumcxx . . $ GenConfigState#recentnum.; |
| 60 |
QStringListcxx . . $ QStringList# recentfilescxx . . $ GenConfigState#recentfiles.; |
| 61 |
}; |
| 62 |
|
| 63 |
struct RecipeConfigStatecxx . . $ RecipeConfigState# { |
| 64 |
RecipeConfigStatecxx . . $ RecipeConfigState#RecipeConfigState(49f6e7a06ebc5aa8).() |
| 65 |
: batchcxx . . $ RecipeConfigState#batch.(5.00), stylecxx . . $ RecipeConfigState#style.("Generic Ale"), hoptypecxx . . $ RecipeConfigState#hoptype.(Hopcxx . . $ Hop#::PELLET_STRINGcxx . . $ Hop#PELLET_STRING.) { ; } |
| 66 |
double batchcxx . . $ RecipeConfigState#batch.; |
| 67 |
QStringcxx . . $ QString# stylecxx . . $ RecipeConfigState#style.; |
| 68 |
QStringcxx . . $ QString# hoptypecxx . . $ RecipeConfigState#hoptype.; |
| 69 |
}; |
| 70 |
|
| 71 |
struct CalcConfigStatecxx . . $ CalcConfigState# { |
| 72 |
CalcConfigStatecxx . . $ CalcConfigState#CalcConfigState(49f6e7a06ebc5aa8).() |
| 73 |
: steepyieldcxx . . $ CalcConfigState#steepyield.(0.5), efficiencycxx . . $ CalcConfigState#efficiency.(0.75), moreycxx . . $ CalcConfigState#morey.(false), tinsethcxx . . $ CalcConfigState#tinseth.(false), |
| 74 |
unitscxx . . $ QString#QString(45672f3c6961a244).(Resourcecxx . . $ Resource/::UNIT_UScxx . . $ Resource/UNIT_US.) { ; } |
| 75 |
double steepyieldcxx . . $ CalcConfigState#steepyield.; |
| 76 |
double efficiencycxx . . $ CalcConfigState#efficiency.; |
| 77 |
bool moreycxx . . $ CalcConfigState#morey.; |
| 78 |
bool tinsethcxx . . $ CalcConfigState#tinseth.; |
| 79 |
QStringcxx . . $ QString# unitscxx . . $ CalcConfigState#units.; |
| 80 |
}; |
| 81 |
|
| 82 |
struct ConfigStatecxx . . $ ConfigState# |
| 83 |
{ |
| 84 |
WinConfigStatecxx . . $ WinConfigState# windowcxx . . $ ConfigState#window.; |
| 85 |
GenConfigStatecxx . . $ GenConfigState# generalcxx . . $ ConfigState#general.; |
| 86 |
RecipeConfigStatecxx . . $ RecipeConfigState# recipecxx . . $ ConfigState#recipe.; |
| 87 |
CalcConfigStatecxx . . $ CalcConfigState# calccxx . . $ ConfigState#calc.; |
| 88 |
}; |
| 89 |
|
| 90 |
#endif // CONFIGSTATE_H |