Implemented seed controls on random pack panel;

seed settings and pack amounts are stored in settings

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1044 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-03 22:46:53 +00:00
parent d969ae96bd
commit 0cb872a0d3
6 changed files with 113 additions and 16 deletions
+11
View File
@@ -23,6 +23,7 @@ DECLARE_POINTER_TYPE(PackType);
class RandomPackPanel : public SetWindowPanel {
public:
RandomPackPanel(Window* parent, int id);
~RandomPackPanel();
// --------------------------------------------------- : UI
@@ -44,6 +45,8 @@ class RandomPackPanel : public SetWindowPanel {
wxTextCtrl* seed; ///< Seed value
wxFlexGridSizer* packsSizer;
wxFlexGridSizer* totalsSizer;
wxButton* generate_button;
wxRadioButton* seed_random, *seed_fixed;
struct PackItem {
PackTypeP pack;
@@ -55,9 +58,17 @@ class RandomPackPanel : public SetWindowPanel {
struct TotalItem {
};
vector<TotalItem> totals;
int total_packs;
/// Update the total count of each card type
void updateTotals();
/// Get a seed value
int getSeed();
void setSeed(int seed);
/// Generate the cards
void generate();
/// Store the settings
void storeSettings();
public:
typedef PackItem PackItem_for_typeof;
};