PageRenderTime 47ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Synapse.QtClient/qt-gui/AddAccountDialog.cs

https://github.com/newcreation/synapse
C# | 162 lines | 132 code | 21 blank | 9 comment | 0 complexity | cd8515fbe2192c201c5287fea9d1823e MD5 | raw file
Possible License(s): GPL-3.0
  1. // ------------------------------------------------------------------------------
  2. // <autogenerated>
  3. // This code was generated by a tool.
  4. // Mono Runtime Version: 2.0.50727.42
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </autogenerated>
  9. // ------------------------------------------------------------------------------
  10. namespace Synapse.QtClient.Windows {
  11. using System;
  12. using Qyoto;
  13. public partial class AddAccountDialog : QDialog {
  14. protected QStackedWidget stackedWidget;
  15. protected QWidget page;
  16. protected QRadioButton radioButton;
  17. protected QRadioButton radioButton_2;
  18. protected QDialogButtonBox buttonBox;
  19. protected QWidget page_2;
  20. protected QLabel label_6;
  21. protected QLabel label;
  22. protected QLineEdit jidLineEdit;
  23. protected QLabel label_2;
  24. protected QLabel label_3;
  25. protected QLineEdit passwordLineEdit;
  26. protected QLabel label_4;
  27. protected QComboBox resourceComboBox;
  28. protected QLabel label_5;
  29. protected QCheckBox autoConnectCheckBox;
  30. protected QDialogButtonBox buttonBox_2;
  31. protected void SetupUi() {
  32. base.ObjectName = "AddAccountDialog";
  33. this.Geometry = new QRect(0, 0, 436, 239);
  34. this.WindowTitle = "Add Account";
  35. this.Modal = true;
  36. QVBoxLayout verticalLayout;
  37. verticalLayout = new QVBoxLayout(this);
  38. verticalLayout.Spacing = 0;
  39. verticalLayout.sizeConstraint = QLayout.SizeConstraint.SetFixedSize;
  40. verticalLayout.Margin = 0;
  41. this.stackedWidget = new QStackedWidget(this);
  42. this.stackedWidget.ObjectName = "stackedWidget";
  43. this.stackedWidget.CurrentIndex = 0;
  44. verticalLayout.AddWidget(this.stackedWidget);
  45. this.page = new QWidget(this.stackedWidget);
  46. this.page.ObjectName = "page";
  47. QVBoxLayout verticalLayout_2;
  48. verticalLayout_2 = new QVBoxLayout(this.page);
  49. verticalLayout_2.Margin = 6;
  50. this.radioButton = new QRadioButton(this.page);
  51. this.radioButton.ObjectName = "radioButton";
  52. this.radioButton.Text = "I already have an &account I'd like to use";
  53. this.radioButton.Checked = true;
  54. verticalLayout_2.AddWidget(this.radioButton);
  55. this.radioButton_2 = new QRadioButton(this.page);
  56. this.radioButton_2.ObjectName = "radioButton_2";
  57. this.radioButton_2.Enabled = false;
  58. this.radioButton_2.Text = "I'd like to &create a new account";
  59. verticalLayout_2.AddWidget(this.radioButton_2);
  60. QSpacerItem verticalSpacer;
  61. verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
  62. verticalLayout_2.AddItem(verticalSpacer);
  63. this.buttonBox = new QDialogButtonBox(this.page);
  64. this.buttonBox.ObjectName = "buttonBox";
  65. this.buttonBox.Orientation = Qt.Orientation.Horizontal;
  66. this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel");
  67. verticalLayout_2.AddWidget(this.buttonBox);
  68. this.stackedWidget.AddWidget(this.page);
  69. this.page_2 = new QWidget(this.stackedWidget);
  70. this.page_2.ObjectName = "page_2";
  71. QVBoxLayout verticalLayout_3;
  72. verticalLayout_3 = new QVBoxLayout(this.page_2);
  73. verticalLayout_3.Margin = 6;
  74. this.label_6 = new QLabel(this.page_2);
  75. this.label_6.ObjectName = "label_6";
  76. this.label_6.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Please enter the information about your existing account:</span></p></body></html>";
  77. verticalLayout_3.AddWidget(this.label_6);
  78. QFormLayout formLayout;
  79. formLayout = new QFormLayout();
  80. verticalLayout_3.AddLayout(formLayout);
  81. this.label = new QLabel(this.page_2);
  82. this.label.ObjectName = "label";
  83. this.label.Text = "&Jabber ID:";
  84. formLayout.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label);
  85. this.jidLineEdit = new QLineEdit(this.page_2);
  86. this.jidLineEdit.ObjectName = "jidLineEdit";
  87. formLayout.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.jidLineEdit);
  88. this.label_2 = new QLabel(this.page_2);
  89. this.label_2.ObjectName = "label_2";
  90. this.label_2.Text = "Eg: username@hostname";
  91. this.label_2.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop"));
  92. formLayout.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.label_2);
  93. this.label_3 = new QLabel(this.page_2);
  94. this.label_3.ObjectName = "label_3";
  95. this.label_3.Text = "&Password:";
  96. formLayout.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.label_3);
  97. this.passwordLineEdit = new QLineEdit(this.page_2);
  98. this.passwordLineEdit.ObjectName = "passwordLineEdit";
  99. this.passwordLineEdit.echoMode = QLineEdit.EchoMode.Password;
  100. formLayout.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.passwordLineEdit);
  101. this.label_4 = new QLabel(this.page_2);
  102. this.label_4.ObjectName = "label_4";
  103. this.label_4.Text = "&Resource:";
  104. formLayout.SetWidget(3, QFormLayout.ItemRole.LabelRole, this.label_4);
  105. this.resourceComboBox = new QComboBox(this.page_2);
  106. this.resourceComboBox.ObjectName = "resourceComboBox";
  107. this.resourceComboBox.Editable = true;
  108. formLayout.SetWidget(3, QFormLayout.ItemRole.FieldRole, this.resourceComboBox);
  109. this.resourceComboBox.InsertItems(0, new System.Collections.Generic.List<string>(new string[] {
  110. "Home",
  111. "Work",
  112. "Laptop",
  113. "Netbook"}));
  114. this.label_5 = new QLabel(this.page_2);
  115. this.label_5.ObjectName = "label_5";
  116. this.label_5.Text = "One word describing this computer, i.e. \"HomeLaptop\"";
  117. this.label_5.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop"));
  118. this.label_5.WordWrap = false;
  119. formLayout.SetWidget(4, QFormLayout.ItemRole.FieldRole, this.label_5);
  120. this.autoConnectCheckBox = new QCheckBox(this.page_2);
  121. this.autoConnectCheckBox.ObjectName = "autoConnectCheckBox";
  122. this.autoConnectCheckBox.Text = "Connect &Automatically";
  123. this.autoConnectCheckBox.Checked = true;
  124. formLayout.SetWidget(5, QFormLayout.ItemRole.FieldRole, this.autoConnectCheckBox);
  125. QSpacerItem verticalSpacer_2;
  126. verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
  127. verticalLayout_3.AddItem(verticalSpacer_2);
  128. this.buttonBox_2 = new QDialogButtonBox(this.page_2);
  129. this.buttonBox_2.ObjectName = "buttonBox_2";
  130. this.buttonBox_2.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"));
  131. verticalLayout_3.AddWidget(this.buttonBox_2);
  132. this.stackedWidget.AddWidget(this.page_2);
  133. QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()"));
  134. QObject.Connect(buttonBox_2, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()"));
  135. QMetaObject.ConnectSlotsByName(this);
  136. this.label.SetBuddy(jidLineEdit);
  137. this.label_3.SetBuddy(passwordLineEdit);
  138. this.label_4.SetBuddy(resourceComboBox);
  139. }
  140. }
  141. }