Beispiel #1
0
SectionEditor::SectionEditor(QWidget* parent, Qt::WindowFlags fl)
    : QDialog(parent, fl)
{
    scene = 0;
    setupUi(this);


    // signals and slots connections
    connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
    connect(btnAdd, SIGNAL(clicked()), this, SLOT(btnAdd_clicked()));
    connect(btnEdit, SIGNAL(clicked()), this, SLOT(btnEdit_clicked()));
    connect(btnRemove, SIGNAL(clicked()), this, SLOT(btnRemove_clicked()));
    connect(btnMoveUp, SIGNAL(clicked()), this, SLOT(btnMoveUp_clicked()));
    connect(brnMoveDown, SIGNAL(clicked()), this, SLOT(brnMoveDown_clicked()));
    connect(cbReportHeader, SIGNAL(toggled(bool)), this, SLOT(cbReportHeader_toggled(bool)));
    connect(cbReportFooter, SIGNAL(toggled(bool)), this, SLOT(cbReportFooter_toggled(bool)));
    connect(cbHeadFirst, SIGNAL(toggled(bool)), this, SLOT(cbHeadFirst_toggled(bool)));
    connect(cbHeadLast, SIGNAL(toggled(bool)), this, SLOT(cbHeadLast_toggled(bool)));
    connect(cbHeadEven, SIGNAL(toggled(bool)), this, SLOT(cbHeadEven_toggled(bool)));
    connect(cbHeadOdd, SIGNAL(toggled(bool)), this, SLOT(cbHeadOdd_toggled(bool)));
    connect(cbFootFirst, SIGNAL(toggled(bool)), this, SLOT(cbFootFirst_toggled(bool)));
    connect(cbFootLast, SIGNAL(toggled(bool)), this, SLOT(cbFootLast_toggled(bool)));
    connect(cbFootEven, SIGNAL(toggled(bool)), this, SLOT(cbFootEven_toggled(bool)));
    connect(cbFootOdd, SIGNAL(toggled(bool)), this, SLOT(cbFootOdd_toggled(bool)));
    connect(cbHeadAny, SIGNAL(toggled(bool)), this, SLOT(cbHeadAny_toggled(bool)));
    connect(cbFootAny, SIGNAL(toggled(bool)), this, SLOT(cbFootAny_toggled(bool)));
}
Beispiel #2
0
void RelationsView::connect_Signals() {
    connect(btnAdd, SIGNAL(clicked()), this, SLOT(btnAdd_clicked()));
    connect(btnRemove, SIGNAL(clicked()), this, SLOT(btnRemove_clicked()));
    connect(cbName, SIGNAL(currentIndexChanged(QString)), this, SLOT(cbName_changed(QString)));
    connect(cbEdge, SIGNAL(currentIndexChanged(QString)), this, SLOT(cbEdge_changed(QString)));
    connect(cbE1, SIGNAL(currentIndexChanged(QString)), this, SLOT(cbE1_changed(QString)));
    connect(cbE2, SIGNAL(currentIndexChanged(QString)), this, SLOT(cbE2_changed(QString)));
    //connect(cbEdgeLabel, SIGNAL(currentIndexChanged(QString)), this, SLOT(cbEdgeLabel_changed(QString)));
    connect(cbEdgeLabel, SIGNAL(editTextChanged(QString)), this, SLOT(cbEdgeLabel_changed(QString)));
    connect(cbE1Label, SIGNAL(editTextChanged(QString)), this, SLOT(cbE1Label_changed(QString)));
    connect(cbE2Label, SIGNAL(editTextChanged(QString)), this, SLOT(cbE2Label_changed(QString)));
}
Beispiel #3
0
void lmcTransferWindow::createToolBar(void) {
	QToolBar* pToolBar = new QToolBar(ui.wgtToolBar);
	pToolBar->setIconSize(QSize(16, 16));
	pToolBar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
	ui.toolBarLayout->addWidget(pToolBar);

	pactCancel = pToolBar->addAction(QIcon(QPixmap(IDR_STOP, "PNG")), "Cancel", 
		this, SLOT(btnCancel_clicked()));
	pToolBar->addSeparator();
	pactShowFolder = pToolBar->addAction(QIcon(QPixmap(IDR_FOLDER, "PNG")), "Show In Folder", 
		this, SLOT(btnShowFolder_clicked()));
	pactRemove = pToolBar->addAction(QIcon(QPixmap(IDR_DECLINE, "PNG")), "Remove From List",
		this, SLOT(btnRemove_clicked()));
}
DetailSectionDialog::DetailSectionDialog(QWidget* parent, Qt::WindowFlags fl)
    : QDialog(parent, fl)
{
  setupUi(this);

  // signals and slots connections
  connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
  connect(btnAdd, SIGNAL(clicked()), this, SLOT(btnAdd_clicked()));
  connect(btnEdit, SIGNAL(clicked()), this, SLOT(btnEdit_clicked()));
  connect(btnRemove, SIGNAL(clicked()), this, SLOT(btnRemove_clicked()));
  connect(btnMoveUp, SIGNAL(clicked()), this, SLOT(btnMoveUp_clicked()));
  connect(brnMoveDown, SIGNAL(clicked()), this, SLOT(brnMoveDown_clicked()));

  _gsd = 0;
  lbGroups->clear();
}