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();	
			}
		}
Esempio n. 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();
        }
Esempio n. 4
0
 public QDialogButtonBox.ButtonRole buttonRole(QAbstractButton button)
 {
     return (QDialogButtonBox.ButtonRole) interceptor.Invoke("buttonRole#", "buttonRole(QAbstractButton*) const", typeof(QDialogButtonBox.ButtonRole), typeof(QAbstractButton), button);
 }
Esempio n. 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);
 }
Esempio n. 6
0
 public int Id(QAbstractButton button)
 {
     return((int)interceptor.Invoke("id#", "id(QAbstractButton*) const", typeof(int), typeof(QAbstractButton), button));
 }
Esempio n. 7
0
 public void SetId(QAbstractButton button, int id)
 {
     interceptor.Invoke("setId#$", "setId(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), button, typeof(int), id);
 }
Esempio n. 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());
 }
Esempio n. 10
0
 public void SetId(QAbstractButton button, int id)
 {
     interceptor.Invoke("setId#$", "setId(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), button, typeof(int), id);
 }
Esempio n. 11
0
 public void SetEscapeButton(QAbstractButton button)
 {
     interceptor.Invoke("setEscapeButton#", "setEscapeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), button);
 }
Esempio n. 12
0
 public void AddButton(QAbstractButton arg1, int id)
 {
     interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), arg1, typeof(int), id);
 }
Esempio n. 13
0
 public int Id(QAbstractButton button)
 {
     return (int) interceptor.Invoke("id#", "id(QAbstractButton*) const", typeof(int), typeof(QAbstractButton), button);
 }
Esempio n. 14
0
 public void AddButton(QAbstractButton arg1)
 {
     interceptor.Invoke("addButton#", "addButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), arg1);
 }
Esempio n. 15
0
 public void SetEscapeButton(QAbstractButton button)
 {
     interceptor.Invoke("setEscapeButton#", "setEscapeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), button);
 }
Esempio n. 16
0
 public QMessageBox.StandardButton standardButton(QAbstractButton button)
 {
     return((QMessageBox.StandardButton)interceptor.Invoke("standardButton#", "standardButton(QAbstractButton*) const", typeof(QMessageBox.StandardButton), typeof(QAbstractButton), button));
 }
Esempio n. 17
0
 public void RemoveButton(QAbstractButton button)
 {
     interceptor.Invoke("removeButton#", "removeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), button);
 }
Esempio n. 18
0
 public void AddButton(QAbstractButton arg1)
 {
     interceptor.Invoke("addButton#", "addButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), arg1);
 }
Esempio n. 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();
 }
Esempio n. 21
0
File: QWizard.cs Progetto: 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);
 }
Esempio n. 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);
            }
        }
Esempio n. 23
0
 public void AddButton(QAbstractButton arg1, int id)
 {
     interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), arg1, typeof(int), id);
 }
Esempio n. 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);
 }
Esempio n. 25
0
 public void RemoveButton(QAbstractButton arg1)
 {
     interceptor.Invoke("removeButton#", "removeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), arg1);
 }
Esempio n. 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);
 }