SettingsEmail::SettingsEmail(QDialog *parent) : QDialog(parent), ui_email(new Ui::SettingsEmail) { ui_email->setupUi(this); setWindowTitle("Настройка почты"); defaultEmail(); ui_email->pushButtonOK->setDisabled(true); connect( ui_email->addAttachment, SIGNAL( clicked() ), this, SLOT( slotAddAttachment())); connect( ui_email->clearAttachments, SIGNAL( clicked() ), this, SLOT( slotClearAttachments())); connect( ui_email->checkEmail, SIGNAL( clicked() ), this, SLOT( slotCheckEmail())); connect( ui_email->pushButtonOK, SIGNAL( clicked() ), this, SLOT( accept())); connect( ui_email->pushButtonCancel, SIGNAL( clicked() ), this, SLOT( reject())); }
AddNoteDialog::AddNoteDialog( QWidget * parent ) : QDialog( parent ) { setupUi( this ); connect( mNotifyNew, SIGNAL( clicked() ), SLOT( slotNotifyNew() ) ); connect( mNotifyDelete, SIGNAL( clicked() ), SLOT( slotNotifyDelete() ) ); connect( mNotifyClear, SIGNAL( clicked() ), SLOT( slotNotifyClear() ) ); connect( mNotifySupervisor, SIGNAL( clicked() ), SLOT( slotAddSupervisors() ) ); connect( mNotifyCoordinator, SIGNAL( clicked() ), SLOT( slotAddCoordinators() ) ); connect( mNotifyProducer, SIGNAL( clicked() ), SLOT( slotAddProducers() ) ); connect( mNotifyAssigned, SIGNAL( clicked() ), SLOT( slotAddAssigned() ) ); mSupMenu = new QMenu( this ); mCoordMenu = new QMenu( this ); mProdMenu = new QMenu( this ); mAssMenu = new QMenu( this ); mNotifySupervisor->setMenu( mSupMenu ); mNotifyCoordinator->setMenu( mCoordMenu ); mNotifyProducer->setMenu( mProdMenu ); mNotifyAssigned->setMenu( mAssMenu ); mTodoStatusCombo->addItem( "None" ); mTodoStatusCombo->addItem( "Unresolved" ); mTodoStatusCombo->addItem( "Resolved" ); connect( mSupMenu, SIGNAL( triggered(QAction*) ), SLOT( slotAddUser(QAction*) ) ); connect( mCoordMenu, SIGNAL( triggered(QAction*) ), SLOT( slotAddUser(QAction*) ) ); connect( mProdMenu, SIGNAL( triggered(QAction*) ), SLOT( slotAddUser(QAction*) ) ); connect( mAssMenu, SIGNAL( triggered(QAction*) ), SLOT( slotAddUser(QAction*) ) ); connect( mAddAttachment, SIGNAL( clicked() ), SLOT( slotAddAttachment() ) ); RecordSuperModel * model = new RecordSuperModel( mNotifyList ); model->setAutoSort( true ); new UserTranslator(model->treeBuilder()); mNotifyList->setModel( model ); connect( mAttachmentList, SIGNAL( contextMenuRequested( QListWidgetItem*, const QPoint & ) ), SLOT( slotAttachmentPopup( QListWidgetItem*, const QPoint & ) ) ); refresh(); refreshButtons(); }