Esempio n. 1
0
ConfigureDlg::ConfigureDlg(QWidget *parent, int index)
	: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint)
{
	m_index = index;
	layoutWidgets();
	connect(m_cancelButton, SIGNAL(clicked()), this, SLOT(cancelButtonClick()));
	connect(m_okButton, SIGNAL(clicked()), this, SLOT(okButtonClick()));
	loadCurrentValues();
}
Esempio n. 2
0
StoreStreamDlg::StoreStreamDlg(QWidget *parent, int index)
	: QDialog(parent, Qt::WindowCloseButtonHint | Qt::WindowTitleHint)
{
	m_index = index;
	layoutWidgets();
	connect(m_cancelButton, SIGNAL(clicked()), this, SLOT(cancelButtonClick()));
	connect(m_okButton, SIGNAL(clicked()), this, SLOT(okButtonClick()));
	loadCurrentValues();
}
Esempio n. 3
0
StoreStreamDlg::StoreStreamDlg(QWidget *parent, QSettings *settings, int index)
	: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint)
{
	m_index = index;
	m_settings = settings;
	layoutWidgets();
	connect(m_cancelButton, SIGNAL(clicked()), this, SLOT(cancelButtonClick()));
	connect(m_okButton, SIGNAL(clicked()), this, SLOT(okButtonClick()));
	loadCurrentValues();
}
Esempio n. 4
0
void Ustawienia::init() {

	// connect all slots
	connect(zastButton, SIGNAL(clicked()), this, SLOT(apply()));
	connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
	connect(okButton, SIGNAL(clicked()), this, SLOT(okButtonClick()));
	connect(currAddBtn, SIGNAL(clicked()), this, SLOT(currAddBtnClick()));
	connect(currDelBtn, SIGNAL(clicked()), this, SLOT(currDelBtnClick()));
	connect(currencyAddBtn, SIGNAL(clicked()), this, SLOT(currencyAddBtnClick()));
	connect(currencyDelBtn, SIGNAL(clicked()), this, SLOT(currencyDelBtnClick()));
	connect(paymAddBtn, SIGNAL(clicked()), this, SLOT(paymAddBtnClick()));
	connect(paymDelBtn, SIGNAL(clicked()), this, SLOT(paymDelBtnClick()));
	connect(paymDownBtn, SIGNAL(clicked()), this, SLOT(paymDownBtnClick()));
	connect(paymUpBtn, SIGNAL(clicked()), this, SLOT(paymUpBtnClick()));
	connect(vatAddBtn, SIGNAL(clicked()), this, SLOT(vatAddBtnClick()));
	connect(vatDelBtn, SIGNAL(clicked()), this, SLOT(vatDelBtnClick()));
	connect(korAddBtn, SIGNAL(clicked()), this, SLOT(korAddBtnClick()));
	connect(korDelBtn, SIGNAL(clicked()), this, SLOT(korDelBtnClick()));
	connect(vatUpBtn, SIGNAL(clicked()), this, SLOT(vatUpBtnClick()));
	connect(vatDownBtn, SIGNAL(clicked()), this, SLOT(vatDownBtnClick()));
	connect(addLogoBtn, SIGNAL(clicked()), this, SLOT(addLogoBtnClick()));
	connect(workingDirBtn, SIGNAL(clicked()), this, SLOT(workingDirBtnClick()));
	connect(pushButton, SIGNAL(clicked()), this, SLOT(setDefaultClick()));
	connect(defTextBtn, SIGNAL(clicked()), this, SLOT(defTextBtnClick()));
	connect(pushButtonMaskHelp, SIGNAL(clicked()), this, SLOT(maskHelpClick()));

    connect( cssList, SIGNAL( currentIndexChanged (int)), this, SLOT( zastBtnEnable() ) );
// QFaktury 0.6.0
    connect( langList, SIGNAL( currentIndexChanged (int)), this, SLOT( zastBtnEnable() ) );
    connect( codecList, SIGNAL( currentIndexChanged (int)), this, SLOT( zastBtnEnable() ) );
    connect( logoEdit, SIGNAL(  textChanged (const QString &)), this, SLOT( zastBtnEnable() ) );
    connect( workingDirEdit, SIGNAL(  textChanged (const QString &)), this, SLOT( zastBtnEnable() ) );
    connect( nipMaskEdit, SIGNAL(  textChanged (const QString &)), this, SLOT( zastBtnEnable() ) );
    connect( accountMaskEdit, SIGNAL(  textChanged (const QString &)), this, SLOT( zastBtnEnable() ) );
    connect( prefixEdit, SIGNAL(  textChanged (const QString &) ), this, SLOT( zastBtnEnable() ) );
    connect( sufixEdit, SIGNAL(  textChanged (const QString &) ), this, SLOT( zastBtnEnable() ) );
    connect( spbNumb, SIGNAL(  valueChanged (const QString &) ), this, SLOT( zastBtnEnable() ) );
    connect( spbNumCopies, SIGNAL(  valueChanged (const QString &) ), this, SLOT( zastBtnEnable() ) );
    connect( cbDay, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable()) );
    connect( cbMonth, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cbYear, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( shortYear, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cbEdit, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cbSmbEdit, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cbSmbEdit_2, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( additText,  SIGNAL( textChanged() ), this, SLOT( zastBtnEnable() ) );
    connect( userinfonazwa, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
	connect( userinfomiejscowosc, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
	connect( userinfoadres, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( userinfokonto, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( userinfonip, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( userinfotel, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( userinfomail, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( userinfowww, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );

    connect( cb1, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb2, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb3, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb4, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb5, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb6, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb7, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb8, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb9, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb10, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb11, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb12, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb13, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );
    connect( cb14, SIGNAL( stateChanged(int) ), this, SLOT( zastBtnEnable() ) );


    langList->clear();
    langList->insertItems(0, getTranslations());

    cssList->clear();
    cssList->insertItems(0, getTemplates());

    getEncodings();
    readSettings();

    // disable apply button :)
    zastButton->setEnabled(false);

}