public void ActionExit(QAbstractButton buttonPressed)
        {
            if (buttonPressed == settingsdialog_UI.Buttons.Buttons()[0])
            {
                // Update settings
                UpdateSettings();
            }

            this.Close();
        }
		public void ActionExit(QAbstractButton buttonPressed)
		{
			QDialogButtonBox.StandardButton sBtn = ncDialog_Ui.Buttons.standardButton(buttonPressed);
			
			if (sBtn == QDialogButtonBox.StandardButton.Ok)
			{
				Accept();
			}
			else
			{
				Reject();	
			}
		}
示例#3
0
        void on_buttonBox_clicked(QAbstractButton button)
        {
            var role = buttonBox.buttonRole(button);
            if (role == QDialogButtonBox.ButtonRole.AcceptRole) {
                var currentGroups = m_Item.GetGroups().Select(g => g.GroupName);
                var newGroups = groupsWidget.SelectedGroups;

                foreach (string groupName in currentGroups) {
                    if (!newGroups.Contains(groupName)) {
                        m_Item.RemoveGroup(groupName);
                    }
                }

                foreach (String groupName in newGroups) {
                    if (!currentGroups.Contains(groupName)) {
                        m_Item.AddGroup(groupName);
                    }
                }

                m_Account.Roster.Modify(m_Item);
            }
            Gui.MainWindow.HideLightbox();
        }
示例#4
0
 public QDialogButtonBox.ButtonRole buttonRole(QAbstractButton button)
 {
     return (QDialogButtonBox.ButtonRole) interceptor.Invoke("buttonRole#", "buttonRole(QAbstractButton*) const", typeof(QDialogButtonBox.ButtonRole), typeof(QAbstractButton), button);
 }
示例#5
0
 public void AddButton(QAbstractButton button, QDialogButtonBox.ButtonRole role)
 {
     interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, QDialogButtonBox::ButtonRole)", typeof(void), typeof(QAbstractButton), button, typeof(QDialogButtonBox.ButtonRole), role);
 }
示例#6
0
 public int Id(QAbstractButton button)
 {
     return((int)interceptor.Invoke("id#", "id(QAbstractButton*) const", typeof(int), typeof(QAbstractButton), button));
 }
示例#7
0
 public void SetId(QAbstractButton button, int id)
 {
     interceptor.Invoke("setId#$", "setId(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), button, typeof(int), id);
 }
示例#8
0
 public QMessageBox.ButtonRole buttonRole(QAbstractButton button)
 {
     return((QMessageBox.ButtonRole)interceptor.Invoke("buttonRole#", "buttonRole(QAbstractButton*) const", typeof(QMessageBox.ButtonRole), typeof(QAbstractButton), button));
 }
 public void ActionCancel(QAbstractButton buttonPressed)
 {
     // When click on Cancel, raise CancelScan Event
     CancelScan(this, new EventArgs());
 }
示例#10
0
文件: QButtonGroup.cs 项目: KDE/qyoto
 public void SetId(QAbstractButton button, int id)
 {
     interceptor.Invoke("setId#$", "setId(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), button, typeof(int), id);
 }
示例#11
0
文件: QMessageBox.cs 项目: KDE/qyoto
 public void SetEscapeButton(QAbstractButton button)
 {
     interceptor.Invoke("setEscapeButton#", "setEscapeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), button);
 }
示例#12
0
文件: QButtonGroup.cs 项目: KDE/qyoto
 public void AddButton(QAbstractButton arg1, int id)
 {
     interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), arg1, typeof(int), id);
 }
示例#13
0
文件: QButtonGroup.cs 项目: KDE/qyoto
 public int Id(QAbstractButton button)
 {
     return (int) interceptor.Invoke("id#", "id(QAbstractButton*) const", typeof(int), typeof(QAbstractButton), button);
 }
示例#14
0
文件: QButtonGroup.cs 项目: KDE/qyoto
 public void AddButton(QAbstractButton arg1)
 {
     interceptor.Invoke("addButton#", "addButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), arg1);
 }
示例#15
0
 public void SetEscapeButton(QAbstractButton button)
 {
     interceptor.Invoke("setEscapeButton#", "setEscapeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), button);
 }
示例#16
0
 public QMessageBox.StandardButton standardButton(QAbstractButton button)
 {
     return((QMessageBox.StandardButton)interceptor.Invoke("standardButton#", "standardButton(QAbstractButton*) const", typeof(QMessageBox.StandardButton), typeof(QAbstractButton), button));
 }
示例#17
0
 public void RemoveButton(QAbstractButton button)
 {
     interceptor.Invoke("removeButton#", "removeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), button);
 }
示例#18
0
 public void AddButton(QAbstractButton arg1)
 {
     interceptor.Invoke("addButton#", "addButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), arg1);
 }
示例#19
0
 public QDialogButtonBox.StandardButton standardButton(QAbstractButton button)
 {
     return (QDialogButtonBox.StandardButton) interceptor.Invoke("standardButton#", "standardButton(QAbstractButton*) const", typeof(QDialogButtonBox.StandardButton), typeof(QAbstractButton), button);
 }
 public void ActionExit(QAbstractButton buttonPressed)
 {
     //Console.WriteLine("Pressed::" + buttonPressed.Text);
     this.Close();
 }
示例#21
0
文件: QWizard.cs 项目: KDE/qyoto
 public void SetButton(QWizard.WizardButton which, QAbstractButton button)
 {
     interceptor.Invoke("setButton$#", "setButton(QWizard::WizardButton, QAbstractButton*)", typeof(void), typeof(QWizard.WizardButton), which, typeof(QAbstractButton), button);
 }
示例#22
0
        void on_buttonBox_clicked(QAbstractButton button)
        {
            try {
                var role = buttonBox.buttonRole(button);
                if (role == QDialogButtonBox.ButtonRole.AcceptRole) {
                    JID jid = new JID(jidLineEdit.Text);

                    // FIXME: Start spinner

                    m_Account.AddRosterItem(jid, nameLineEdit.Text, groupsWidget.SelectedGroups, AddRosterItemComplete);
                } else {
                    Gui.MainWindow.HideLightbox();
                }
            } catch (Exception ex) {
                QMessageBox.Critical(base.TopLevelWidget(), "Failed to add user", ex.Message);
            }
        }
示例#23
0
 public void AddButton(QAbstractButton arg1, int id)
 {
     interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), arg1, typeof(int), id);
 }
示例#24
0
 public void AddButton(QAbstractButton button, QMessageBox.ButtonRole role)
 {
     interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, QMessageBox::ButtonRole)", typeof(void), typeof(QAbstractButton), button, typeof(QMessageBox.ButtonRole), role);
 }
示例#25
0
 public void RemoveButton(QAbstractButton arg1)
 {
     interceptor.Invoke("removeButton#", "removeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), arg1);
 }
示例#26
0
 public void SetButton(QWizard.WizardButton which, QAbstractButton button)
 {
     interceptor.Invoke("setButton$#", "setButton(QWizard::WizardButton, QAbstractButton*)", typeof(void), typeof(QWizard.WizardButton), which, typeof(QAbstractButton), button);
 }