コード例 #1
0
SetParameterOptionsDialog::SetParameterOptionsDialog( QWidget *parent ) : QDialog( parent )
{
    setupUi( this );

    connect(OK_pushButton, SIGNAL(clicked()), this, SLOT(accept()));
    connect(Cancel_pushButton, SIGNAL(clicked()), this, SLOT(reject()));
    connect(DiagramBackgroundColor_pushButton, SIGNAL(clicked()), this, SLOT(chosseDiagramBackgroundColor()));
    connect(MarkerColor_pushButton, SIGNAL(clicked()), this, SLOT(chosseMarkerColor()));
    connect(LineColor_pushButton, SIGNAL(clicked()), this, SLOT(chosseLineColor()));
    connect(ColorizedGreaterRefColor_pushButton, SIGNAL(clicked()), this, SLOT(chosseColorizedGreaterRefColor()));
    connect(ColorizedLessRefColor_pushButton, SIGNAL(clicked()), this, SLOT(chosseColorizedLessRefColor()));
    connect(ReflineColor_pushButton, SIGNAL(clicked()), this, SLOT(chosseReflineColor()));
    connect(DataTextColor_pushButton, SIGNAL(clicked()), this, SLOT(chosseDataTextColor()));
    connect(DataTextFont_pushButton, SIGNAL(clicked()), this, SLOT(chosseDataTextFont()));

    connect(useManualScaleSettings_checkBox, SIGNAL(stateChanged(int)), this, SLOT(setDialogItems(int)));

    connect(Precision_spinBox, SIGNAL(valueChanged(int)), this, SLOT(setManuallyPrecision(int)));

    connect(GraphicMinimum_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(setManuallyScale(QString)));
    connect(GraphicMaximum_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(setManuallyScale(QString)));
    connect(TickmarkSpacing_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(setManuallyScale(QString)));

    connect(GraphicMinimum_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(enableOK()));
    connect(GraphicMaximum_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(enableOK()));
}
コード例 #2
0
SchemaChooser::SchemaChooser(QWidget *parent) :
    QDialog(parent),
    _started(false)
{
    init();
    enableOK(false);
    remPrefsSchema->setEnabled(false);
    favoritesList->setSelectionMode(QAbstractItemView::SingleSelection);
    lastUsedList->setSelectionMode(QAbstractItemView::SingleSelection);
    loadPreferredData();
    loadLastUsedData();
    _started = true;
}