Esempio n. 1
0
    public void SetupUi(QDialog NewContactDialog)
    {
    if (NewContactDialog.ObjectName == "")
        NewContactDialog.ObjectName = "NewContactDialog";
    QSize Size = new QSize(360, 150);
    Size = Size.ExpandedTo(NewContactDialog.MinimumSizeHint());
    NewContactDialog.Size = Size;
    NewContactDialog.MinimumSize = new QSize(360, 150);
    NewContactDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
    gridLayout = new QGridLayout(NewContactDialog);
    gridLayout.ObjectName = "gridLayout";
    LblTitle = new QLabel(NewContactDialog);
    LblTitle.ObjectName = "LblTitle";
    LblTitle.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
    LblTitle.WordWrap = true;

    gridLayout.AddWidget(LblTitle, 0, 0, 1, 2);

    LblDesc = new QLabel(NewContactDialog);
    LblDesc.ObjectName = "LblDesc";

    gridLayout.AddWidget(LblDesc, 2, 0, 1, 1);

    TxtDesc = new QLineEdit(NewContactDialog);
    TxtDesc.ObjectName = "TxtDesc";

    gridLayout.AddWidget(TxtDesc, 2, 1, 1, 1);

    LblNumber = new QLabel(NewContactDialog);
    LblNumber.ObjectName = "LblNumber";

    gridLayout.AddWidget(LblNumber, 3, 0, 1, 1);

    TxtNumber = new QLineEdit(NewContactDialog);
    TxtNumber.ObjectName = "TxtNumber";

    gridLayout.AddWidget(TxtNumber, 3, 1, 1, 1);

    spacerItem = new QSpacerItem(282, 37, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);

    gridLayout.AddItem(spacerItem, 4, 1, 1, 1);

    Buttons = new QDialogButtonBox(NewContactDialog);
    Buttons.ObjectName = "Buttons";
    Buttons.Orientation = Qt.Orientation.Horizontal;
    Buttons.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok");

    gridLayout.AddWidget(Buttons, 5, 0, 1, 2);

    spacerItem1 = new QSpacerItem(20, 8, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed);

    gridLayout.AddItem(spacerItem1, 1, 0, 1, 1);


    RetranslateUi(NewContactDialog);
    QObject.Connect(Buttons, Qt.SIGNAL("accepted()"), NewContactDialog, Qt.SLOT("accept()"));
    QObject.Connect(Buttons, Qt.SIGNAL("rejected()"), NewContactDialog, Qt.SLOT("reject()"));

    QMetaObject.ConnectSlotsByName(NewContactDialog);
    } // SetupUi
Esempio n. 2
0
    } // SetupUi

    public void RetranslateUi(QDialog NewContactDialog)
    {
    NewContactDialog.WindowTitle = QApplication.Translate("NewContactDialog", "Dialog", null, QApplication.Encoding.UnicodeUTF8);
    LblTitle.Text = QApplication.Translate("NewContactDialog", "TextLabel", null, QApplication.Encoding.UnicodeUTF8);
    LblDesc.Text = QApplication.Translate("NewContactDialog", "TextLabel", null, QApplication.Encoding.UnicodeUTF8);
    LblNumber.Text = QApplication.Translate("NewContactDialog", "TextLabel", null, QApplication.Encoding.UnicodeUTF8);
    } // RetranslateUi
    } // SetupUi

    public void RetranslateUi(QDialog SelectWriteModeDialog)
    {
    SelectWriteModeDialog.WindowTitle = QApplication.Translate("SelectWriteModeDialog", "Dialog", null, QApplication.Encoding.UnicodeUTF8);
    LblTitle.Text = QApplication.Translate("SelectWriteModeDialog", "TextLabel", null, QApplication.Encoding.UnicodeUTF8);
    BtnCancel.Text = QApplication.Translate("SelectWriteModeDialog", "PushButton", null, QApplication.Encoding.UnicodeUTF8);
    BtnOverride.Text = QApplication.Translate("SelectWriteModeDialog", "Override", null, QApplication.Encoding.UnicodeUTF8);
    BtnAppend.Text = QApplication.Translate("SelectWriteModeDialog", "Append", null, QApplication.Encoding.UnicodeUTF8);
    } // RetranslateUi
    public void SetupUi(QDialog SelectWriteModeDialog)
    {
    if (SelectWriteModeDialog.ObjectName == "")
        SelectWriteModeDialog.ObjectName = "SelectWriteModeDialog";
    QSize Size = new QSize(443, 125);
    Size = Size.ExpandedTo(SelectWriteModeDialog.MinimumSizeHint());
    SelectWriteModeDialog.Size = Size;
    SelectWriteModeDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
    gridLayout = new QGridLayout(SelectWriteModeDialog);
    gridLayout.ObjectName = "gridLayout";
    LblTitle = new QLabel(SelectWriteModeDialog);
    LblTitle.ObjectName = "LblTitle";
    LblTitle.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft") | Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop");

    gridLayout.AddWidget(LblTitle, 0, 0, 1, 4);

    BtnCancel = new QPushButton(SelectWriteModeDialog);
    BtnCancel.ObjectName = "BtnCancel";

    gridLayout.AddWidget(BtnCancel, 1, 0, 1, 1);

    spacerItem = new QSpacerItem(152, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);

    gridLayout.AddItem(spacerItem, 1, 1, 1, 1);

    BtnOverride = new QPushButton(SelectWriteModeDialog);
    BtnOverride.ObjectName = "BtnOverride";
    BtnOverride.icon = new QIcon(":/toolbar/resources/qt/draw-eraser.png");

    gridLayout.AddWidget(BtnOverride, 1, 2, 1, 1);

    BtnAppend = new QPushButton(SelectWriteModeDialog);
    BtnAppend.ObjectName = "BtnAppend";
    BtnAppend.icon = new QIcon(":/toolbar/resources/qt/list-add.png");

    gridLayout.AddWidget(BtnAppend, 1, 3, 1, 1);


    RetranslateUi(SelectWriteModeDialog);

    QMetaObject.ConnectSlotsByName(SelectWriteModeDialog);
    } // SetupUi
Esempio n. 5
0
    public void SetupUi(QDialog AboutDialog)
    {
    if (AboutDialog.ObjectName == "")
        AboutDialog.ObjectName = "AboutDialog";
    QSize Size = new QSize(660, 460);
    Size = Size.ExpandedTo(AboutDialog.MinimumSizeHint());
    AboutDialog.Size = Size;
    AboutDialog.MinimumSize = new QSize(660, 460);
    AboutDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
    AboutDialog.Modal = true;
    gridLayout = new QGridLayout(AboutDialog);
    gridLayout.ObjectName = "gridLayout";
    vboxLayout = new QVBoxLayout();
    vboxLayout.ObjectName = "vboxLayout";
    FrameTop = new QFrame(AboutDialog);
    FrameTop.ObjectName = "FrameTop";
    FrameTop.MinimumSize = new QSize(0, 64);
    FrameTop.AutoFillBackground = false;
    FrameTop.FrameShape = QFrame.Shape.StyledPanel;
    FrameTop.FrameShadow = QFrame.Shadow.Raised;
    gridLayout1 = new QGridLayout(FrameTop);
    gridLayout1.ObjectName = "gridLayout1";
    Logo = new QWidget(FrameTop);
    Logo.ObjectName = "Logo";
    Logo.MinimumSize = new QSize(48, 48);
    Logo.MaximumSize = new QSize(48, 48);
    Logo.StyleSheet = "background-image: url(:/main/resources/monosim_48.png);";

    gridLayout1.AddWidget(Logo, 0, 0, 1, 1);

    vboxLayout1 = new QVBoxLayout();
    vboxLayout1.ObjectName = "vboxLayout1";
    LblName = new QLabel(FrameTop);
    LblName.ObjectName = "LblName";
    QFont font = new QFont();
    font.SetBold(true);
    font.SetWeight(75);
    LblName.Font = font;
    LblName.Margin = 1;

    vboxLayout1.AddWidget(LblName);

    LblDesc = new QLabel(FrameTop);
    LblDesc.ObjectName = "LblDesc";
    LblDesc.Margin = 1;

    vboxLayout1.AddWidget(LblDesc);


    gridLayout1.AddLayout(vboxLayout1, 0, 1, 1, 1);


    vboxLayout.AddWidget(FrameTop);

    tabInfo = new QTabWidget(AboutDialog);
    tabInfo.ObjectName = "tabInfo";
    tabInfo.AutoFillBackground = false;
    Informations = new QWidget();
    Informations.ObjectName = "Informations";
    gridLayout2 = new QGridLayout(Informations);
    gridLayout2.ObjectName = "gridLayout2";
    TxtInfo = new QTextEdit(Informations);
    TxtInfo.ObjectName = "TxtInfo";
    TxtInfo.lineWrapMode = QTextEdit.LineWrapMode.NoWrap;
    TxtInfo.ReadOnly = true;

    gridLayout2.AddWidget(TxtInfo, 0, 0, 1, 1);

    tabInfo.AddTab(Informations, QApplication.Translate("AboutDialog", "Informazioni su", null, QApplication.Encoding.UnicodeUTF8));
    Components = new QWidget();
    Components.ObjectName = "Components";
    gridLayout3 = new QGridLayout(Components);
    gridLayout3.ObjectName = "gridLayout3";
    TxtThanks = new QTextEdit(Components);
    TxtThanks.ObjectName = "TxtThanks";
    TxtThanks.ReadOnly = true;

    gridLayout3.AddWidget(TxtThanks, 0, 0, 1, 1);

    tabInfo.AddTab(Components, QApplication.Translate("AboutDialog", "Componenti", null, QApplication.Encoding.UnicodeUTF8));

    vboxLayout.AddWidget(tabInfo);

    buttonBox = new QDialogButtonBox(AboutDialog);
    buttonBox.ObjectName = "buttonBox";
    buttonBox.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok");

    vboxLayout.AddWidget(buttonBox);


    gridLayout.AddLayout(vboxLayout, 0, 0, 1, 1);


    RetranslateUi(AboutDialog);

    tabInfo.CurrentIndex = 0;


    QMetaObject.ConnectSlotsByName(AboutDialog);
    } // SetupUi
Esempio n. 6
0
    } // SetupUi

    public void RetranslateUi(QDialog AboutDialog)
    {
    AboutDialog.WindowTitle = QApplication.Translate("AboutDialog", "Dialog", null, QApplication.Encoding.UnicodeUTF8);
    FrameTop.StyleSheet = QApplication.Translate("AboutDialog", "background-color: rgb(255, 255, 255);", null, QApplication.Encoding.UnicodeUTF8);
    tabInfo.SetTabText(tabInfo.IndexOf(Informations), QApplication.Translate("AboutDialog", "Informazioni su", null, QApplication.Encoding.UnicodeUTF8));
    tabInfo.SetTabText(tabInfo.IndexOf(Components), QApplication.Translate("AboutDialog", "Componenti", null, QApplication.Encoding.UnicodeUTF8));
    } // RetranslateUi
Esempio n. 7
0
        public void Embedding()
        {
            var Embed = new NotebookDialog<EmbeddingTest>("Selene");
            var Test = new EmbeddingTest();

            const string WindowTitle = "Selene";
            const string LabelText = "This label is not part of the notebook";
            const string ButtonText = "Neither is this button";

#if GTK
            Window Container = new Window(WindowTitle);
            Label Extra = new Label(LabelText);
            Button Click = new Button(ButtonText);
            VBox Box = new VBox();

            Click.Clicked += delegate {
                Embed.Save();
                Console.WriteLine(Test.Alpha);
            };
            Box.Add(Embed.Content(Test));
            Box.Add(Extra);
            Box.Add(Click);
            Container.BorderWidth = 5;
            Box.Spacing = 5;
            Container.Add(Box);
            Container.ShowAll();
#endif
#if QYOTO
            QDialog Dialog = new QDialog();
            QVBoxLayout MainLay = new QVBoxLayout();
            QHBoxLayout Lay = (QHBoxLayout) Embed.Content(Test);
            MainLay.AddLayout(Lay);
            Dialog.SetLayout(MainLay);
            Dialog.SetWindowTitle(WindowTitle);

            QLabel Label = new QLabel(LabelText);
            QPushButton Button = new QPushButton(ButtonText);
            MainLay.AddWidget(Label);
            MainLay.AddWidget(Button);

            QWidget.Connect(Button, Qt.SIGNAL("clicked()"), delegate {
                Embed.Save();
                Console.WriteLine(Test.Alpha);
            });

            Dialog.Exec();
#endif
#if WINDOWS
            Form MainForm = new Form();
            ControlVBox MainBox = new ControlVBox(5,5);
            MainForm.Text = WindowTitle;

            var Content = Embed.Content(Test);
            Content.AutoSize = true;
            MainBox.Controls.Add(Content);

            Label L = new Label();
            L.Text = LabelText;
            L.AutoSize = true;
            MainBox.Controls.Add(L);

            Button B = new Button();
            B.Text = ButtonText;
            B.Click += delegate {
                Embed.Save();
                Console.WriteLine(Test.Alpha);
            };
            MainBox.Controls.Add(B);

            MainForm.Controls.Add(MainBox);

            MainForm.AutoSize = true;
            MainForm.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            MainForm.Show();
#endif
        }
Esempio n. 8
0
    public void SetupUi(QDialog SettingsDialog)
    {
    if (SettingsDialog.ObjectName == "")
        SettingsDialog.ObjectName = "SettingsDialog";
    QSize Size = new QSize(320, 280);
    Size = Size.ExpandedTo(SettingsDialog.MinimumSizeHint());
    SettingsDialog.Size = Size;
    SettingsDialog.MinimumSize = new QSize(320, 280);
    SettingsDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
    SettingsDialog.Modal = true;
    gridLayout = new QGridLayout(SettingsDialog);
    gridLayout.ObjectName = "gridLayout";
    FrameSettings = new QGroupBox(SettingsDialog);
    FrameSettings.ObjectName = "FrameSettings";
    gridLayout1 = new QGridLayout(FrameSettings);
    gridLayout1.ObjectName = "gridLayout1";
    LblPortSpeedReset = new QLabel(FrameSettings);
    LblPortSpeedReset.ObjectName = "LblPortSpeedReset";
    QSizePolicy sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Preferred);
    sizePolicy.SetHorizontalStretch(0);
    sizePolicy.SetVerticalStretch(0);
    sizePolicy.SetHeightForWidth(LblPortSpeedReset.SizePolicy.HasHeightForWidth());
    LblPortSpeedReset.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblPortSpeedReset, 0, 0, 1, 1);

    CmbPortSpeedReset = new QComboBox(FrameSettings);
    CmbPortSpeedReset.ObjectName = "CmbPortSpeedReset";

    gridLayout1.AddWidget(CmbPortSpeedReset, 0, 1, 1, 1);

    LblPortSpeed = new QLabel(FrameSettings);
    LblPortSpeed.ObjectName = "LblPortSpeed";
    sizePolicy.SetHeightForWidth(LblPortSpeed.SizePolicy.HasHeightForWidth());
    LblPortSpeed.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblPortSpeed, 1, 0, 1, 1);

    CmbPortSpeed = new QComboBox(FrameSettings);
    CmbPortSpeed.ObjectName = "CmbPortSpeed";

    gridLayout1.AddWidget(CmbPortSpeed, 1, 1, 1, 1);

    LblDataBits = new QLabel(FrameSettings);
    LblDataBits.ObjectName = "LblDataBits";
    sizePolicy.SetHeightForWidth(LblDataBits.SizePolicy.HasHeightForWidth());
    LblDataBits.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblDataBits, 2, 0, 1, 1);

    CmbDataBits = new QComboBox(FrameSettings);
    CmbDataBits.ObjectName = "CmbDataBits";

    gridLayout1.AddWidget(CmbDataBits, 2, 1, 1, 1);

    LblStopBits = new QLabel(FrameSettings);
    LblStopBits.ObjectName = "LblStopBits";
    sizePolicy.SetHeightForWidth(LblStopBits.SizePolicy.HasHeightForWidth());
    LblStopBits.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblStopBits, 3, 0, 1, 1);

    CmbStopBits = new QComboBox(FrameSettings);
    CmbStopBits.ObjectName = "CmbStopBits";

    gridLayout1.AddWidget(CmbStopBits, 3, 1, 1, 1);

    LblParity = new QLabel(FrameSettings);
    LblParity.ObjectName = "LblParity";
    sizePolicy.SetHeightForWidth(LblParity.SizePolicy.HasHeightForWidth());
    LblParity.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblParity, 4, 0, 1, 1);

    CmbParity = new QComboBox(FrameSettings);
    CmbParity.ObjectName = "CmbParity";

    gridLayout1.AddWidget(CmbParity, 4, 1, 1, 1);

    LblConvention = new QLabel(FrameSettings);
    LblConvention.ObjectName = "LblConvention";
    sizePolicy.SetHeightForWidth(LblConvention.SizePolicy.HasHeightForWidth());
    LblConvention.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblConvention, 5, 0, 1, 1);

    CmbConvention = new QComboBox(FrameSettings);
    CmbConvention.ObjectName = "CmbConvention";

    gridLayout1.AddWidget(CmbConvention, 5, 1, 1, 1);


    gridLayout.AddWidget(FrameSettings, 1, 0, 1, 1);

    Buttons = new QDialogButtonBox(SettingsDialog);
    Buttons.ObjectName = "Buttons";
    Buttons.Orientation = Qt.Orientation.Horizontal;
    Buttons.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok");

    gridLayout.AddWidget(Buttons, 2, 0, 1, 1);


    RetranslateUi(SettingsDialog);

    QMetaObject.ConnectSlotsByName(SettingsDialog);
    } // SetupUi
Esempio n. 9
0
    } // SetupUi

    public void RetranslateUi(QDialog SettingsDialog)
    {
    SettingsDialog.WindowTitle = QApplication.Translate("SettingsDialog", "Dialog", null, QApplication.Encoding.UnicodeUTF8);
    FrameSettings.Title = QApplication.Translate("SettingsDialog", "GroupBox", null, QApplication.Encoding.UnicodeUTF8);
    LblPortSpeedReset.Text = QApplication.Translate("SettingsDialog", "Reset Baud", null, QApplication.Encoding.UnicodeUTF8);
    CmbPortSpeedReset.Clear();
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "110", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "300", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "600", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "1200", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "2400", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "4800", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "9600", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "14400", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "19200", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "38400", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "56000", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "57600", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeedReset.AddItem(QApplication.Translate("SettingsDialog", "115200", null, QApplication.Encoding.UnicodeUTF8));
    LblPortSpeed.Text = QApplication.Translate("SettingsDialog", "Data Baud", null, QApplication.Encoding.UnicodeUTF8);
    CmbPortSpeed.Clear();
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "110", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "300", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "600", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "1200", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "2400", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "4800", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "9600", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "14400", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "19200", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "38400", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "56000", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "57600", null, QApplication.Encoding.UnicodeUTF8));
    CmbPortSpeed.AddItem(QApplication.Translate("SettingsDialog", "115200", null, QApplication.Encoding.UnicodeUTF8));
    LblDataBits.Text = QApplication.Translate("SettingsDialog", "Data bits", null, QApplication.Encoding.UnicodeUTF8);
    CmbDataBits.Clear();
    CmbDataBits.AddItem(QApplication.Translate("SettingsDialog", "7", null, QApplication.Encoding.UnicodeUTF8));
    CmbDataBits.AddItem(QApplication.Translate("SettingsDialog", "8", null, QApplication.Encoding.UnicodeUTF8));
    LblStopBits.Text = QApplication.Translate("SettingsDialog", "Stop bits", null, QApplication.Encoding.UnicodeUTF8);
    CmbStopBits.Clear();
    CmbStopBits.AddItem(QApplication.Translate("SettingsDialog", "1", null, QApplication.Encoding.UnicodeUTF8));
    CmbStopBits.AddItem(QApplication.Translate("SettingsDialog", "1.5", null, QApplication.Encoding.UnicodeUTF8));
    CmbStopBits.AddItem(QApplication.Translate("SettingsDialog", "2", null, QApplication.Encoding.UnicodeUTF8));
    LblParity.Text = QApplication.Translate("SettingsDialog", "Parity", null, QApplication.Encoding.UnicodeUTF8);
    CmbParity.Clear();
    CmbParity.AddItem(QApplication.Translate("SettingsDialog", "Odd", null, QApplication.Encoding.UnicodeUTF8));
    CmbParity.AddItem(QApplication.Translate("SettingsDialog", "Even", null, QApplication.Encoding.UnicodeUTF8));
    CmbParity.AddItem(QApplication.Translate("SettingsDialog", "None", null, QApplication.Encoding.UnicodeUTF8));
    LblConvention.Text = QApplication.Translate("SettingsDialog", "Convention", null, QApplication.Encoding.UnicodeUTF8);
    CmbConvention.Clear();
    CmbConvention.AddItem(QApplication.Translate("SettingsDialog", "Direct", null, QApplication.Encoding.UnicodeUTF8));
    CmbConvention.AddItem(QApplication.Translate("SettingsDialog", "Inverse", null, QApplication.Encoding.UnicodeUTF8));
    } // RetranslateUi
Esempio n. 10
0
    } // SetupUi

    public void RetranslateUi(QDialog ChangePinStatusDialog)
    {
    ChangePinStatusDialog.WindowTitle = QApplication.Translate("ChangePinStatusDialog", "Dialog", null, QApplication.Encoding.UnicodeUTF8);
    LblTitle.Text = QApplication.Translate("ChangePinStatusDialog", "TextLabel", null, QApplication.Encoding.UnicodeUTF8);
    LblPin1.Text = QApplication.Translate("ChangePinStatusDialog", "TextLabel", null, QApplication.Encoding.UnicodeUTF8);
    LblPin1check.Text = QApplication.Translate("ChangePinStatusDialog", "TextLabel", null, QApplication.Encoding.UnicodeUTF8);
    } // RetranslateUi
Esempio n. 11
0
    public void SetupUi(QDialog ChangePinStatusDialog)
    {
    if (ChangePinStatusDialog.ObjectName == "")
        ChangePinStatusDialog.ObjectName = "ChangePinStatusDialog";
    QSize Size = new QSize(357, 159);
    Size = Size.ExpandedTo(ChangePinStatusDialog.MinimumSizeHint());
    ChangePinStatusDialog.Size = Size;
    ChangePinStatusDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
    gridLayout = new QGridLayout(ChangePinStatusDialog);
    gridLayout.ObjectName = "gridLayout";
    LblTitle = new QLabel(ChangePinStatusDialog);
    LblTitle.ObjectName = "LblTitle";
    LblTitle.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
    LblTitle.WordWrap = true;

    gridLayout.AddWidget(LblTitle, 0, 0, 1, 2);

    LblPin1 = new QLabel(ChangePinStatusDialog);
    LblPin1.ObjectName = "LblPin1";

    gridLayout.AddWidget(LblPin1, 2, 0, 1, 1);

    TxtPin1 = new QLineEdit(ChangePinStatusDialog);
    TxtPin1.ObjectName = "TxtPin1";
    TxtPin1.MaxLength = 4;
    TxtPin1.echoMode = QLineEdit.EchoMode.Password;

    gridLayout.AddWidget(TxtPin1, 2, 1, 1, 1);

    LblPin1check = new QLabel(ChangePinStatusDialog);
    LblPin1check.ObjectName = "LblPin1check";

    gridLayout.AddWidget(LblPin1check, 3, 0, 1, 1);

    TxtPin1check = new QLineEdit(ChangePinStatusDialog);
    TxtPin1check.ObjectName = "TxtPin1check";
    TxtPin1check.MaxLength = 4;
    TxtPin1check.echoMode = QLineEdit.EchoMode.Password;

    gridLayout.AddWidget(TxtPin1check, 3, 1, 1, 1);

    spacerItem = new QSpacerItem(282, 37, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);

    gridLayout.AddItem(spacerItem, 4, 1, 1, 1);

    Buttons = new QDialogButtonBox(ChangePinStatusDialog);
    Buttons.ObjectName = "Buttons";
    Buttons.Orientation = Qt.Orientation.Horizontal;
    Buttons.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok");

    gridLayout.AddWidget(Buttons, 5, 0, 1, 2);

    spacerItem1 = new QSpacerItem(20, 8, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed);

    gridLayout.AddItem(spacerItem1, 1, 0, 1, 1);


    RetranslateUi(ChangePinStatusDialog);
    QObject.Connect(Buttons, Qt.SIGNAL("accepted()"), ChangePinStatusDialog, Qt.SLOT("accept()"));
    QObject.Connect(Buttons, Qt.SIGNAL("rejected()"), ChangePinStatusDialog, Qt.SLOT("reject()"));

    QMetaObject.ConnectSlotsByName(ChangePinStatusDialog);
    } // SetupUi