本文整理汇总了C++中sCheck函数的典型用法代码示例。如果您正苦于以下问题:C++ sCheck函数的具体用法?C++ sCheck怎么用?C++ sCheck使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sCheck函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: XDialog
location::location(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_location, SIGNAL(editingFinished()), this, SLOT(sCheck()));
connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete()));
connect(_new, SIGNAL(clicked()), this, SLOT(sNew()));
connect(_warehouse, SIGNAL(newID(int)), this, SLOT(sHandleWarehouse(int)));
_locitem->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number" );
_locitem->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "item_descrip" );
_warehouse->setAllowNull(_metrics->boolean("MultiWhs"));
if (!_metrics->boolean("MultiWhs"))
{
_warehouseLit->hide();
_warehouse->hide();
sHandleWarehouse(_warehouse->id());
}
else
_warehouse->setNull();
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:26,代码来源:location.cpp
示例2: XDialog
standardJournalGroup::standardJournalGroup(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
_stdjrnlgrpid = -1;
connect(_new, SIGNAL(clicked()), this, SLOT(sNew()));
connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete()));
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
connect(_name, SIGNAL(editingFinished()), this, SLOT(sCheck()));
connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit()));
connect(_view, SIGNAL(clicked()), this, SLOT(sView()));
connect(_showExpired, SIGNAL(toggled(bool)), this, SLOT(sFillList()));
connect(_showFuture, SIGNAL(toggled(bool)), this, SLOT(sFillList()));
connect(_stdjrnlgrpitem, SIGNAL(valid(bool)), _view, SLOT(setEnabled(bool)));
setAcceptDrops(true);
_stdjrnlgrpitem->addColumn(tr("Name"), _itemColumn, Qt::AlignLeft, true, "stdjrnl_name" );
_stdjrnlgrpitem->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "stdjrnl_descrip" );
_stdjrnlgrpitem->addColumn(tr("To Apply"), _dateColumn, Qt::AlignRight, true, "toapply" );
_stdjrnlgrpitem->addColumn(tr("Applied"), _dateColumn, Qt::AlignRight, true, "stdjrnlgrpitem_applied" );
_stdjrnlgrpitem->addColumn(tr("Effective"), _dateColumn, Qt::AlignCenter, true, "stdjrnlgrpitem_effective" );
_stdjrnlgrpitem->addColumn(tr("Expires"), _dateColumn, Qt::AlignCenter, true, "stdjrnlgrpitem_expires" );
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:27,代码来源:standardJournalGroup.cpp
示例3: AbstractFilter
ListeFiltre::ListeFiltre(QString s,QWidget *parent) :
AbstractFilter(parent)
{
_qvb=new QVBoxLayout;
_qvb->setMargin(0);_qvb->setSpacing(0);
_head=new QPushButton(s);
_head->setFixedHeight(20);
_checkTous=new QCheckBox("Tous");
_head->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed);
_checkTous->setSizePolicy(QSizePolicy::Minimum,QSizePolicy::Fixed);
QHBoxLayout *qhb=new QHBoxLayout;
qhb->setMargin(0);qhb->setSpacing(0);
qhb->addWidget(_head);
qhb->addWidget(_checkTous);
connect(_head,SIGNAL(clicked()),this,SLOT(hide_lv()));
connect(_checkTous,SIGNAL(clicked(bool)),this,SLOT(check(bool)));
_lv=new QListView;
_lv->setMaximumHeight(100);
_lv->setSelectionMode(QAbstractItemView::MultiSelection);
_lv->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
connect(_lv,SIGNAL(pressed(QModelIndex)),this,SLOT(sCheck()));
_qvb->addLayout(qhb);
setLayout(_qvb);
//_lv->
}
开发者ID:NZBinome,项目名称:Genie-Logicel,代码行数:34,代码来源:listefiltre.cpp
示例4: XDialog
plannerCode::plannerCode(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
if (_metrics->value("Application") != "PostBooks")
{
QButtonGroup* _explosionGroupInt = new QButtonGroup(this);
_explosionGroupInt->addButton(_singleLevel);
_explosionGroupInt->addButton(_multipleLevel);
_singleLevel->setChecked(true);
_explosionGroup->setEnabled(false);
}
else
{
_mrpexcpResched->hide();
_mrpexcpDelete->hide();
_autoExplode->hide();
_explosionGroup->hide();
}
connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sSave()));
connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(_code, SIGNAL(editingFinished()), this, SLOT(sCheck()));
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:25,代码来源:plannerCode.cpp
示例5: XDialog
warehouse::warehouse(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl),
_mode(cView),
_warehousid(-1)
{
setupUi(this);
connect(_code, SIGNAL(editingFinished()), this, SLOT(sCheck()));
connect(_delete, SIGNAL(clicked()), this, SLOT(sDeleteZone()));
connect(_edit, SIGNAL(clicked()), this, SLOT(sEditZone()));
connect(_new, SIGNAL(clicked()), this, SLOT(sNewZone()));
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_standard, SIGNAL(toggled(bool)), this, SLOT(sHandleWhsType()));
connect(_transit, SIGNAL(toggled(bool)), this, SLOT(sHandleWhsType()));
connect(_address, SIGNAL(addressChanged(QString,QString,QString,QString,QString,QString, QString)),
_contact, SLOT(setNewAddr(QString,QString,QString,QString,QString,QString, QString)));
_whsezone->addColumn(tr("Name"), _itemColumn, Qt::AlignCenter, true, "whsezone_name");
_whsezone->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "whsezone_descrip");
if (!_metrics->boolean("MultiWhs"))
{
_active->setChecked(true);
_active->hide();
}
_standard->setVisible(_metrics->boolean("MultiWhs"));
_transit->setVisible(_metrics->boolean("MultiWhs"));
}
开发者ID:dwatson78,项目名称:qt-client,代码行数:30,代码来源:warehouse.cpp
示例6: sCheck
/*********************************************************************************
bool CEmailAddressFilter::CheckForEmailAddresses()
Author: Martin Robb
Created:
Inputs: -
Outputs: True if email address found.
Returns: -
Purpose: This would be a good candidate for porting. The .NET library includes
Regular Express support which would be ideal for this task.
*********************************************************************************/
bool CEmailAddressFilter::CheckForEmailAddresses( const TDVCHAR *pCheckString )
{
CTDVString sCheck(pCheckString);
bool bemailfound = false;
int start = sCheck.FindText("@",0);
while ( start >= 0 && start < sCheck.GetLength()-1 )
{
//Look at email domain to decide whether it might be an email address.
if ( isalnum(sCheck.GetAt(start+1)) )
{
int end = sCheck.FindText(" ",start+1);
if ( end <= 0 )
end = sCheck.GetLength();
CTDVString sDomain = sCheck.Mid(start+1,(end-(start+1)));
if ( sDomain.Find(".") > 0 )
{
bemailfound = true;
break;
}
}
start = sCheck.FindText("@",start+1);
}
return bemailfound;
}
开发者ID:rocketeerbkw,项目名称:DNA,代码行数:39,代码来源:EmailAddressFilter.cpp
示例7: XDialog
warehouseZone::warehouseZone(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_name, SIGNAL(editingFinished()), this, SLOT(sCheck()));
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:8,代码来源:warehouseZone.cpp
示例8: XDialog
taxClass::taxClass(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_taxClass, SIGNAL(editingFinished()), this, SLOT(sCheck()));
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:8,代码来源:taxClass.cpp
示例9: XDialog
user::user(QWidget* parent, const char * name, Qt::WindowFlags fl)
: XDialog(parent, name, fl)
{
setupUi(this);
_authCache = false;
_cUsername = "";
_crmacctid = -1;
_inTransaction = false;
_mode = cView;
connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
connect(_crmacct, SIGNAL(clicked()), this, SLOT(sCrmAccount()));
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_add, SIGNAL(clicked()), this, SLOT(sAdd()));
connect(_addAll, SIGNAL(clicked()), this, SLOT(sAddAll()));
connect(_revoke, SIGNAL(clicked()), this, SLOT(sRevoke()));
connect(_revokeAll, SIGNAL(clicked()), this, SLOT(sRevokeAll()));
connect(_module, SIGNAL(activated(const QString&)), this, SLOT(sModuleSelected(const QString&)));
connect(_granted, SIGNAL(itemSelected(int)), this, SLOT(sRevoke()));
connect(_available, SIGNAL(itemSelected(int)), this, SLOT(sAdd()));
connect(_username, SIGNAL(editingFinished()), this, SLOT(sCheck()));
connect(_enhancedAuth, SIGNAL(toggled(bool)), this, SLOT(sEnhancedAuthUpdate()));
connect(_grantedGroup, SIGNAL(itemSelected(int)), this, SLOT(sRevokeGroup()));
connect(_availableGroup, SIGNAL(itemSelected(int)), this, SLOT(sAddGroup()));
connect(_addGroup, SIGNAL(clicked()), this, SLOT(sAddGroup()));
connect(_revokeGroup, SIGNAL(clicked()), this, SLOT(sRevokeGroup()));
connect(_grantedSite, SIGNAL(itemSelected(int)), this, SLOT(sRevokeSite()));
connect(_availableSite, SIGNAL(itemSelected(int)), this, SLOT(sAddSite()));
connect(_addSite, SIGNAL(clicked()), this, SLOT(sAddSite()));
connect(_revokeSite, SIGNAL(clicked()), this, SLOT(sRevokeSite()));
_available->addColumn("Available Privileges", -1, Qt::AlignLeft);
_granted->addColumn("Granted Privileges", -1, Qt::AlignLeft);
_availableGroup->addColumn("Available Roles", -1, Qt::AlignLeft);
_grantedGroup->addColumn("Granted Roles", -1, Qt::AlignLeft);
_availableSite->addColumn("Available Sites", -1, Qt::AlignLeft);
_grantedSite->addColumn("Granted Sites", -1, Qt::AlignLeft);
_locale->setType(XComboBox::Locales);
XSqlQuery modq;
modq.exec( "SELECT DISTINCT priv_module FROM priv ORDER BY priv_module;" );
for (int i = 0; modq.next(); i++)
_module->append(i, modq.value("priv_module").toString());
if(_evaluation == true)
{
_enhancedAuth->setEnabled(false);
_passwd->setEnabled(false);
_verify->setEnabled(false);
}
if (!_metrics->boolean("MultiWhs"))
_tab->removeTab(_tab->indexOf(_siteTab));
}
开发者ID:Dinesh-Ramakrishnan,项目名称:qt-client,代码行数:58,代码来源:user.cpp
示例10: XDialog
honorific::honorific(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sSave()));
connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(_code, SIGNAL(editingFinished()), this, SLOT(sCheck()));
}
开发者ID:dwatson78,项目名称:qt-client,代码行数:9,代码来源:honorific.cpp
示例11: XDialog
bankAdjustmentType::bankAdjustmentType(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sSave()));
connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(_name, SIGNAL(lostFocus()), this, SLOT(sCheck()));
}
开发者ID:Wushaowei001,项目名称:xtuple-1,代码行数:9,代码来源:bankAdjustmentType.cpp
示例12: XDialog
incidentSeverity::incidentSeverity(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sSave()));
connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(_name, SIGNAL(editingFinished()), this, SLOT(sCheck()));
}
开发者ID:Dinesh-Ramakrishnan,项目名称:qt-client,代码行数:9,代码来源:incidentSeverity.cpp
示例13: tr
void rejectCode::sSave()
{
XSqlQuery rejectSave;
if (_code->text().length() == 0)
{
QMessageBox::information( this, tr("Invalid Reject Code"),
tr("You must enter a valid code for this Reject Code.") );
_code->setFocus();
return;
}
if (_mode == cNew)
{
if (sCheck())
{
QMessageBox::warning( this, tr("Cannot Save Reject Code"),
tr("This Reject code already exists. You have been placed in edit mode.") );
return;
}
rejectSave.exec("SELECT NEXTVAL('rjctcode_rjctcode_id_seq') AS rjctcode_id");
if (rejectSave.first())
_rjctcodeid = rejectSave.value("rjctcode_id").toInt();
rejectSave.prepare( "INSERT INTO rjctcode "
"(rjctcode_id, rjctcode_code, rjctcode_descrip) "
"VALUES "
"(:rjctcode_id, :rjctcode_code, :rjctcode_descrip);" );
}
else if (_mode == cEdit)
rejectSave.prepare("SELECT rjctcode_id"
" FROM rjctcode"
" WHERE((rjctcode_id != :rjctcode_id)"
" AND (rjctcode_code = :rjctcode_code));");
rejectSave.bindValue(":rjctcode_id", _rjctcodeid);
rejectSave.bindValue(":rjctcode_code", _code->text());
rejectSave.exec();
if (rejectSave.first())
{
QMessageBox::warning( this, tr("Cannot Save Reject Code"),
tr("You may not rename this Reject code with the entered name as it is in use by another Reject code.") );
return;
}
rejectSave.prepare( "UPDATE rjctcode "
"SET rjctcode_code=:rjctcode_code,"
" rjctcode_descrip=:rjctcode_descrip "
"WHERE (rjctcode_id=:rjctcode_id);" );
rejectSave.bindValue(":rjctcode_id", _rjctcodeid);
rejectSave.bindValue(":rjctcode_code", _code->text());
rejectSave.bindValue(":rjctcode_descrip", _description->text().trimmed());
rejectSave.exec();
done(_rjctcodeid);
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:56,代码来源:rejectCode.cpp
示例14: XDialog
/*
* Constructs a opportunityStage as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* true to construct a modal dialog.
*/
opportunityStage::opportunityStage(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
// signals and slots connections
connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sSave()));
connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(_name, SIGNAL(editingFinished()), this, SLOT(sCheck()));
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:17,代码来源:opportunityStage.cpp
注:本文中的sCheck函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论