本文整理汇总了C++中sSave函数的典型用法代码示例。如果您正苦于以下问题:C++ sSave函数的具体用法?C++ sSave怎么用?C++ sSave使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sSave函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: XDialog
voucherItemDistrib::voucherItemDistrib(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_costelem, SIGNAL(newID(int)), this, SLOT(sCheck()));
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_close, SIGNAL(clicked()), this, SLOT(reject()));
_costelem->populate( QString( "SELECT costelem_id, costelem_type, 1 AS orderby "
"FROM costelem "
"WHERE (costelem_type='Material') "
"UNION SELECT 0, '%1' AS costelem_type, 2 AS orderby "
"UNION SELECT costelem_id, costelem_type, 3 AS orderby "
"FROM costelem "
"WHERE ( (costelem_active)"
" AND (NOT costelem_sys)"
" AND (costelem_po) ) "
"ORDER BY orderby, costelem_type;" )
.arg(tr("None")) );
}
开发者ID:Dinesh-Ramakrishnan,项目名称:qt-client,代码行数:23,代码来源:voucherItemDistrib.cpp
示例2: connect
void MainWindow::setSingnals()
{
connect(fileMenuNew, SIGNAL(triggered()), this, SLOT( sNew() ));
connect(fileMenuOpen, SIGNAL(triggered()), this, SLOT( sOpen() ));
connect(fileMenuSave, SIGNAL(triggered()), this, SLOT( sSave() ));
connect(fileMenuQuit, SIGNAL(triggered()), qApp, SLOT(quit() ));
connect(fileMenuSaveAs, SIGNAL(triggered()), this, SLOT( sSaveAs() ));
connect(this->ui->send_button, SIGNAL(clicked()), this, SLOT(sSend()));
//connect(przyklad, SIGNAL(triggered()), this, SLOT( sEg((QString)"przyklad") ));
connect(Run, SIGNAL(triggered()), this, SLOT( sRun() ));
connect(Debug, SIGNAL(triggered()), this, SLOT( sDebug() ));
connect(Stop, SIGNAL(triggered()), this, SLOT( sStop() ));
connect(Undo, SIGNAL(triggered()), this, SLOT( sUndo() ));
connect(Redo, SIGNAL(triggered()), this, SLOT( sRedo() ));
connect(Copy, SIGNAL(triggered()), this, SLOT(sCopy()));
connect(Cut, SIGNAL(triggered()), this, SLOT(sCut()));
connect(Paste, SIGNAL(triggered()), this, SLOT(sPaste()));
connect(toC, SIGNAL(triggered()), this, SLOT(sToC()));
connect(toJava, SIGNAL(triggered()), this, SLOT(sToJava()));
}
开发者ID:Lisu11,项目名称:BFGUI,代码行数:23,代码来源:mainwindow.cpp
示例3: XDialog
task::task(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(_actualExp, SIGNAL(lostFocus()), this, SLOT(sExpensesAdjusted()));
connect(_budgetExp, SIGNAL(lostFocus()), this, SLOT(sExpensesAdjusted()));
connect(_actualHours, SIGNAL(lostFocus()), this, SLOT(sHoursAdjusted()));
connect(_budgetHours, SIGNAL(lostFocus()), this, SLOT(sHoursAdjusted()));
_budgetHours->setValidator(omfgThis->qtyVal());
_actualHours->setValidator(omfgThis->qtyVal());
_budgetExp->setValidator(omfgThis->costVal());
_actualExp->setValidator(omfgThis->costVal());
_balanceHours->setPrecision(omfgThis->qtyVal());
_balanceExp->setPrecision(omfgThis->costVal());
_prjid = -1;
_prjtaskid = -1;
_owner->setType(UsernameLineEdit::UsersActive);
_assignedTo->setType(UsernameLineEdit::UsersActive);
}
开发者ID:Wushaowei001,项目名称:xtuple-1,代码行数:24,代码来源:task.cpp
示例4: XDialog
company::company(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_extDB, SIGNAL(editingFinished()), this, SLOT(sHandleTest()));
connect(_extPort, SIGNAL(editingFinished()), this, SLOT(sHandleTest()));
connect(_extServer, SIGNAL(editingFinished()), this, SLOT(sHandleTest()));
connect(_extTest, SIGNAL(clicked()), this, SLOT(sTest()));
connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sSave()));
connect(_buttonBox, SIGNAL(rejected()), this, SLOT(close()));
connect(_currency, SIGNAL(newID(int)), this, SLOT(sCurrencyChanged()));
_number->setMaxLength(_metrics->value("GLCompanySize").toInt());
_cachedNumber = "";
_cachedCurrid = CurrCluster::baseId();
_external->setVisible(_metrics->boolean("MultiCompanyFinancialConsolidation"));
_authGroup->setVisible(_metrics->boolean("MultiCompanyFinancialConsolidation"));
_currency->setId(CurrCluster::baseId());
_unrlzgainloss->setType(GLCluster::cRevenue | GLCluster::cExpense);
_unrlzgainloss->setShowExternal(true);
_unrlzgainloss->setIgnoreCompany(true);
_yearend->setShowExternal(true);
_yearend->setType(GLCluster::cEquity);
_yearend->setIgnoreCompany(true);
_gainloss->setType(GLCluster::cExpense);
_gainloss->setShowExternal(true);
_gainloss->setIgnoreCompany(true);
_discrepancy->setType(GLCluster::cExpense);
_discrepancy->setShowExternal(true);
_discrepancy->setIgnoreCompany(true);
_unassigned->setType(GLCluster::cLiability);
_unassigned->setShowExternal(true);
_unassigned->setIgnoreCompany(true);
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:36,代码来源:company.cpp
示例5: XDialog
image::image(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_fileList, SIGNAL(clicked()), this, SLOT(sFileList()));
connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sSave()));
#ifndef Q_OS_MAC
_fileList->setMaximumWidth(25);
#endif
_image = new QLabel();
_image->setAlignment(Qt::AlignLeft | Qt::AlignTop);
QScrollArea * scrollArea = new QScrollArea();
scrollArea->setWidgetResizable(true);
scrollArea->setAlignment(Qt::AlignLeft | Qt::AlignTop);
scrollArea->setWidget(_image);
QHBoxLayout *layout = new QHBoxLayout;
layout->setMargin(0);
layout->addWidget(scrollArea);
_imageFrame->setLayout(layout);
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:24,代码来源:image.cpp
示例6: XWidget
bankAdjustment::bankAdjustment(QWidget* parent, const char* name, Qt::WFlags fl)
: XWidget(parent, name, fl)
{
setupUi(this);
// signals and slots connections
connect(_close, SIGNAL(clicked()), this, SLOT(close()));
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_bankaccnt, SIGNAL(newID(int)), this, SLOT(sBankAccount(int)));
_bankaccnt->populate("SELECT bankaccnt_id,"
" (bankaccnt_name || '-' || bankaccnt_descrip),"
" bankaccnt_name "
"FROM bankaccnt "
"ORDER BY bankaccnt_name;");
_bankadjtype->populate("SELECT bankadjtype_id,"
" (bankadjtype_name || '-' || bankadjtype_descrip),"
" bankadjtype_name "
"FROM bankadjtype "
"ORDER BY bankadjtype_name;");
_bankadjid = -1;
}
开发者ID:Dinesh-Ramakrishnan,项目名称:qt-client,代码行数:24,代码来源:bankAdjustment.cpp
示例7: QDialog
//.........这里部分代码省略.........
moreLayout->setContentsMargins(5, 5, 5, 5);
moreLayout->setSpacing(7);
moreLayout->setObjectName("moreLayout");
QHBoxLayout *commentLayout = new QHBoxLayout(this);
commentLayout->setContentsMargins(5, 5, 5, 5);
commentLayout->setSpacing(7);
commentLayout->setObjectName("commentLayout");
QVBoxLayout *layout11 = new QVBoxLayout(this);
layout11->setSpacing(5);
layout11->setObjectName("layout11");
QHBoxLayout *layout9 = new QHBoxLayout(this);
layout9->setObjectName("layout9");
QBoxLayout *layout8 = new QHBoxLayout(this);
layout8->setSpacing(5);
layout8->setObjectName("layout8");
QLabel *_cmnttypeLit = new QLabel(tr("Comment Type:"), this);
_cmnttypeLit->setObjectName("_cmnttypeLit");
layout8->addWidget( _cmnttypeLit );
_cmnttype = new XComboBox( false, this);
_cmnttype->setObjectName("_cmnttype" );
layout8->addWidget( _cmnttype );
layout9->addLayout( layout8 );
QSpacerItem* spacer = new QSpacerItem( 66, 10, QSizePolicy::Expanding, QSizePolicy::Minimum );
layout9->addItem( spacer );
_public = new QCheckBox(tr("Public"), this);
_public->setObjectName("_public");
if(!(_x_metrics && _x_metrics->boolean("CommentPublicPrivate")))
_public->hide();
_public->setChecked(_x_metrics && _x_metrics->boolean("CommentPublicDefault"));
layout9->addWidget(_public);
layout11->addLayout( layout9 );
_comment = new XTextEdit( this);
_comment->setObjectName("_comment" );
_comment->setSpellEnable(true);
layout11->addWidget( _comment );
commentLayout->addLayout( layout11 );
QDialogButtonBox* buttonBox = new QDialogButtonBox(this);
buttonBox->setOrientation(Qt::Vertical);
buttonBox->setStandardButtons(QDialogButtonBox::Save | QDialogButtonBox::Cancel);
_close = buttonBox->button(QDialogButtonBox::Cancel);
_close->setObjectName("_close");
_save = buttonBox->button(QDialogButtonBox::Save);
_save->setObjectName("_save");
_prev = buttonBox->addButton(tr("&Previous"), QDialogButtonBox::ActionRole);
_prev->setObjectName("_prev");
_next = buttonBox->addButton(tr("&Next"), QDialogButtonBox::ActionRole);
_next->setObjectName("_next");
_more = buttonBox->addButton(tr("&More"), QDialogButtonBox::ActionRole);
_more->setObjectName("_more");
_more->setCheckable(true);
commentLayout->addWidget(buttonBox);
moreLayout->addLayout(commentLayout);
_comments = new Comments(this);
_comments->setObjectName("_comments");
_comments->setReadOnly(true);
_comments->findChild<XCheckBox*>("_verbose")->setForgetful(true);
_comments->findChild<XCheckBox*>("_verbose")->hide();
_comments->findChild<XCheckBox*>("_verbose")->setChecked(false);
_comments->_newComment->setVisible(false);
_comments->setVerboseCommentList(true);
_comments->setVisible(false);
_comments->setEditable(false);
moreLayout->addWidget(_comments);
resize( QSize(524, 270).expandedTo(minimumSizeHint()) );
//clearWState( WState_Polished );
connect(buttonBox, SIGNAL(accepted()), this, SLOT(sSave()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(_next, SIGNAL(clicked()), this, SLOT(sNextComment()));
connect(_prev, SIGNAL(clicked()), this, SLOT(sPrevComment()));
connect(_more, SIGNAL(toggled(bool)), _comments, SLOT(setVisible(bool)));
setTabOrder( _cmnttype, _comment );
setTabOrder( _comment, _save );
setTabOrder( _save, _close );
_sourcetype = "";
_cmnttype->setAllowNull(true);
shortcuts::setStandardKeys(this);
}
开发者ID:rkannadevara,项目名称:qt-client,代码行数:101,代码来源:comment.cpp
示例8: 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);
_available->addColumn("Description", -1, Qt::AlignLeft);
_granted->addColumn("Granted Privileges", -1, Qt::AlignLeft);
_granted->addColumn("Description", -1, Qt::AlignLeft);
_availableGroup->addColumn("Available Roles", -1, Qt::AlignLeft);
_availableGroup->addColumn("Description", -1, Qt::AlignLeft);
_grantedGroup->addColumn("Granted Roles", -1, Qt::AlignLeft);
_grantedGroup->addColumn("Description", -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:chengzhou,项目名称:qt-client,代码行数:62,代码来源:user.cpp
示例9: sSave
void SetStrategy (Bit16u ofs) { sSave(sDeviceHeader,strategy,ofs); };
开发者ID:Avin15,项目名称:dospad,代码行数:1,代码来源:dos_mscdex.cpp
注:本文中的sSave函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论