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(); } }
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(); }
public QDialogButtonBox.ButtonRole buttonRole(QAbstractButton button) { return (QDialogButtonBox.ButtonRole) interceptor.Invoke("buttonRole#", "buttonRole(QAbstractButton*) const", typeof(QDialogButtonBox.ButtonRole), typeof(QAbstractButton), button); }
public void AddButton(QAbstractButton button, QDialogButtonBox.ButtonRole role) { interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, QDialogButtonBox::ButtonRole)", typeof(void), typeof(QAbstractButton), button, typeof(QDialogButtonBox.ButtonRole), role); }
public int Id(QAbstractButton button) { return((int)interceptor.Invoke("id#", "id(QAbstractButton*) const", typeof(int), typeof(QAbstractButton), button)); }
public void SetId(QAbstractButton button, int id) { interceptor.Invoke("setId#$", "setId(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), button, typeof(int), id); }
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()); }
public void SetEscapeButton(QAbstractButton button) { interceptor.Invoke("setEscapeButton#", "setEscapeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), button); }
public void AddButton(QAbstractButton arg1, int id) { interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, int)", typeof(void), typeof(QAbstractButton), arg1, typeof(int), id); }
public int Id(QAbstractButton button) { return (int) interceptor.Invoke("id#", "id(QAbstractButton*) const", typeof(int), typeof(QAbstractButton), button); }
public void AddButton(QAbstractButton arg1) { interceptor.Invoke("addButton#", "addButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), arg1); }
public QMessageBox.StandardButton standardButton(QAbstractButton button) { return((QMessageBox.StandardButton)interceptor.Invoke("standardButton#", "standardButton(QAbstractButton*) const", typeof(QMessageBox.StandardButton), typeof(QAbstractButton), button)); }
public void RemoveButton(QAbstractButton button) { interceptor.Invoke("removeButton#", "removeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), button); }
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(); }
public void SetButton(QWizard.WizardButton which, QAbstractButton button) { interceptor.Invoke("setButton$#", "setButton(QWizard::WizardButton, QAbstractButton*)", typeof(void), typeof(QWizard.WizardButton), which, typeof(QAbstractButton), button); }
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); } }
public void AddButton(QAbstractButton button, QMessageBox.ButtonRole role) { interceptor.Invoke("addButton#$", "addButton(QAbstractButton*, QMessageBox::ButtonRole)", typeof(void), typeof(QAbstractButton), button, typeof(QMessageBox.ButtonRole), role); }
public void RemoveButton(QAbstractButton arg1) { interceptor.Invoke("removeButton#", "removeButton(QAbstractButton*)", typeof(void), typeof(QAbstractButton), arg1); }