comparison qt-gui/CreateNewArmyLayout.cs @ 8:8a8735679d55

Re #243: Create "New Army" dialog in Qt# app * Disable "OK" button on army creation form * Add event hooks and methods to enable OK Button when all values are completed * Set properties on spinbox Still need to work out how to stop dialog showing up in task bar.
author IBBoard <dev@ibboard.co.uk>
date Sat, 30 Jan 2010 20:57:36 +0000
parents bbf40d66dfe4
children 7eaa8a1715e2
comparison
equal deleted inserted replaced
7:09bc9a4df412 8:8a8735679d55
1 /******************************************************************************** 1 /********************************************************************************
2 ** Form generated from reading ui file 'CreateNewArmyLayout.ui' 2 ** Form generated from reading ui file 'CreateNewArmyLayout.ui'
3 ** 3 **
4 ** Created: Wed Jan 27 20:53:01 2010 4 ** Created: Sat Jan 30 20:56:06 2010
5 ** by: Qt User Interface Compiler for C# version 4.5.3 5 ** by: Qt User Interface Compiler for C# version 4.5.3
6 ** 6 **
7 ** WARNING! All changes made in this file will be lost when recompiling ui file! 7 ** WARNING! All changes made in this file will be lost when recompiling ui file!
8 ********************************************************************************/ 8 ********************************************************************************/
9 9
25 25
26 public void SetupUi(QDialog CreateNewArmyLayout) 26 public void SetupUi(QDialog CreateNewArmyLayout)
27 { 27 {
28 if (CreateNewArmyLayout.ObjectName == "") 28 if (CreateNewArmyLayout.ObjectName == "")
29 CreateNewArmyLayout.ObjectName = "CreateNewArmyLayout"; 29 CreateNewArmyLayout.ObjectName = "CreateNewArmyLayout";
30 CreateNewArmyLayout.WindowModality = Qt.WindowModality.WindowModal;
30 QSize Size = new QSize(400, 300); 31 QSize Size = new QSize(400, 300);
31 Size = Size.ExpandedTo(CreateNewArmyLayout.MinimumSizeHint()); 32 Size = Size.ExpandedTo(CreateNewArmyLayout.MinimumSizeHint());
32 CreateNewArmyLayout.Size = Size; 33 CreateNewArmyLayout.Size = Size;
33 gridLayout = new QGridLayout(CreateNewArmyLayout); 34 gridLayout = new QGridLayout(CreateNewArmyLayout);
34 gridLayout.ObjectName = "gridLayout"; 35 gridLayout.ObjectName = "gridLayout";
68 69
69 gridLayout.AddWidget(lblArmySize, 3, 0, 1, 1); 70 gridLayout.AddWidget(lblArmySize, 3, 0, 1, 1);
70 71
71 armySize = new QSpinBox(CreateNewArmyLayout); 72 armySize = new QSpinBox(CreateNewArmyLayout);
72 armySize.ObjectName = "armySize"; 73 armySize.ObjectName = "armySize";
74 armySize.Frame = true;
75 armySize.buttonSymbols = QAbstractSpinBox.ButtonSymbols.UpDownArrows;
76 armySize.Maximum = 100000;
77 armySize.SingleStep = 10;
78 armySize.Value = 2000;
73 79
74 gridLayout.AddWidget(armySize, 3, 2, 1, 1); 80 gridLayout.AddWidget(armySize, 3, 2, 1, 1);
75 81
76 armyName = new QLineEdit(CreateNewArmyLayout); 82 armyName = new QLineEdit(CreateNewArmyLayout);
77 armyName.ObjectName = "armyName"; 83 armyName.ObjectName = "armyName";