本文整理汇总了C++中sSelect函数的典型用法代码示例。如果您正苦于以下问题:C++ sSelect函数的具体用法?C++ sSelect怎么用?C++ sSelect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sSelect函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: XDialog
vendorPriceList::vendorPriceList(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
XSqlQuery vendorPrice;
// signals and slots connections
connect(_price, SIGNAL(clicked(QModelIndex)), this, SLOT(sQtyUpdate()));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
connect(_close, SIGNAL(clicked()), this, SLOT(reject()));
connect(_price, SIGNAL(itemSelected(int)), _select, SLOT(animateClick()));
connect(_price, SIGNAL(valid(bool)), _select, SLOT(setEnabled(bool)));
connect(_qty, SIGNAL(textChanged(const QString&)), this, SLOT(sQtyEntered()));
QString base;
vendorPrice.exec("SELECT currConcat(baseCurrID()) AS base;");
if (vendorPrice.first())
base = vendorPrice.value("base").toString();
else
base = tr("Base");
if (_metrics->boolean("MultiWhs"))
{
_price->addColumn(tr("Site"), _qtyColumn, Qt::AlignCenter,true, "warehous_code");
_price->addColumn(tr("Order Type"), -1, Qt::AlignCenter,true, "itemsrcp_dropship");
}
_price->addColumn(tr("Qty Break"), _qtyColumn, Qt::AlignRight,true, "itemsrcp_qtybreak");
_price->addColumn(tr("Currency"), _currencyColumn, Qt::AlignLeft, true, "item_curr");
_price->addColumn(tr("Unit Price"), -1, Qt::AlignRight,true, "itemsrcp_price");
_price->addColumn(tr("Discount Percent"), -1, Qt::AlignRight,true, "itemsrcp_discntprcnt" );
_price->addColumn(tr("Discount Fixed Amt."), -1, Qt::AlignRight,true, "itemsrcp_fixedamtdiscount" );
_price->addColumn(tr("Unit Price\n(%1)").arg(base),_moneyColumn, Qt::AlignRight,true, "price_base");
_price->addColumn(tr("Type"), _itemColumn, Qt::AlignLeft, true, "type");
}
开发者ID:xtuple,项目名称:qt-client,代码行数:35,代码来源:vendorPriceList.cpp
示例2: XDialog
substituteList::substituteList(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
QButtonGroup * showByButtonGroup = new QButtonGroup(this);
showByButtonGroup->addButton(_byLeadTime);
showByButtonGroup->addButton(_byDays);
showByButtonGroup->addButton(_byDate);
// signals and slots connections
connect(_byDays, SIGNAL(toggled(bool)), _days, SLOT(setEnabled(bool)));
connect(_byDate, SIGNAL(toggled(bool)), _date, SLOT(setEnabled(bool)));
connect(_subs, SIGNAL(valid(bool)), _select, SLOT(setEnabled(bool)));
connect(_subs, SIGNAL(itemSelected(int)), _select, SLOT(animateClick()));
connect(showByButtonGroup, SIGNAL(buttonClicked(int)), this, SLOT(sFillList()));
connect(_close, SIGNAL(clicked()), this, SLOT(reject()));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
connect(_item, SIGNAL(newId(int)), _warehouse, SLOT(findItemsites(int)));
connect(_item, SIGNAL(warehouseIdChanged(int)), _warehouse, SLOT(setId(int)));
_subs->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number" );
_subs->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "itemdescrip" );
_subs->addColumn(tr("QOH"), _qtyColumn, Qt::AlignRight, true, "qoh" );
_subs->addColumn(tr("Norm. QOH"), _qtyColumn, Qt::AlignRight, true, "normqoh" );
_subs->addColumn(tr("Availability"), _qtyColumn, Qt::AlignRight, true, "available" );
_subs->addColumn(tr("Norm. Avail."), _qtyColumn, Qt::AlignRight, true, "normavailable" );
//If not multi-warehouse hide whs control
if (!_metrics->boolean("MultiWhs"))
{
_warehouseLit->hide();
_warehouse->hide();
}
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:35,代码来源:substituteList.cpp
示例3: sSelect
void CClientWeaponMgr::SelectCustomWeapon(HWEAPON hWeapon)
{
if (hWeapon)
{
// find the common prefix of the custom weapon select and deselect enums
HWEAPONDATA hWpnData = g_pWeaponDB->GetWeaponData(hWeapon, !USE_AI_DATA);
std::string sSelect( g_pWeaponDB->GetString( hWpnData, "CustomSelectStimulus" ));
std::string sDeselect( g_pWeaponDB->GetString( hWpnData, "CustomDeselectStimulus" ));
std::pair<std::string::iterator,std::string::iterator> prCommonPrefix;
prCommonPrefix = std::mismatch(sSelect.begin(), sSelect.end(), sDeselect.begin());
std::string sStimulusGroup(sSelect.begin(),prCommonPrefix.first);
// Play an appropriate animation...
CPlayerBodyMgr& PlayerBodyMgr = CPlayerBodyMgr::Instance();
PlayerBodyMgr.HandleAnimationStimulus(sSelect.c_str());
if(PlayerBodyMgr.ActiveAnimationStimulus())
{
CClientWeapon* pWeapon = g_pPlayerMgr->GetClientWeaponMgr()->GetClientWeapon(hWeapon);
if (pWeapon)
{
// Attach the weapon model
g_pPlayerMgr->GetClientWeaponMgr()->ShowCustomWeapon(pWeapon, sStimulusGroup.c_str());
}
}
}
}
开发者ID:Arc0re,项目名称:lithtech,代码行数:27,代码来源:ClientWeaponMgr.cpp
示例4: XWidget
selectPayments::selectPayments(QWidget* parent, const char* name, Qt::WFlags fl, bool pAutoFill)
: XWidget(parent, name, fl)
{
setupUi(this);
_ignoreUpdates = true;
connect(_clear, SIGNAL(clicked()), this, SLOT(sClear()));
connect(_clearAll, SIGNAL(clicked()), this, SLOT(sClearAll()));
connect(_selectDate, SIGNAL(currentIndexChanged(int)), this, SLOT(sFillList()));
connect(_startDate, SIGNAL(newDate(const QDate&)), this, SLOT(sFillList()));
connect(_endDate, SIGNAL(newDate(const QDate&)), this, SLOT(sFillList()));
connect(_onOrBeforeDate, SIGNAL(newDate(const QDate&)), this, SLOT(sFillList()));
connect(_print, SIGNAL(clicked()), this, SLOT(sPrint()));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
connect(_selectDiscount, SIGNAL(clicked()), this, SLOT(sSelectDiscount()));
connect(_selectDue, SIGNAL(clicked()), this, SLOT(sSelectDue()));
connect(_selectLine, SIGNAL(clicked()), this, SLOT(sSelectLine()));
connect(_applyallcredits, SIGNAL(clicked()), this, SLOT(sApplyAllCredits()));
connect(_vendorgroup, SIGNAL(updated()), this, SLOT(sFillList()));
connect(_bankaccnt, SIGNAL(newID(int)), this, SLOT(sFillList()));
connect(_apopen, SIGNAL(populateMenu(QMenu*, QTreeWidgetItem*, int)), this, SLOT(sPopulateMenu(QMenu*, QTreeWidgetItem*)));
_bankaccnt->setType(XComboBox::APBankAccounts);
_apopen->addColumn(tr("Vendor"), -1, Qt::AlignLeft , true, "vendor" );
_apopen->addColumn(tr("Doc. Type"), _orderColumn, Qt::AlignCenter, true, "doctype" );
_apopen->addColumn(tr("Doc. #"), _orderColumn, Qt::AlignRight , true, "apopen_docnumber" );
_apopen->addColumn(tr("Inv. #"), _orderColumn, Qt::AlignRight , true, "apopen_invcnumber" );
_apopen->addColumn(tr("P/O #"), _orderColumn, Qt::AlignRight , true, "apopen_ponumber" );
_apopen->addColumn(tr("Due Date"), _dateColumn, Qt::AlignCenter, true, "apopen_duedate" );
_apopen->addColumn(tr("Doc. Date"), _dateColumn, Qt::AlignCenter, false, "apopen_docdate" );
_apopen->addColumn(tr("Amount"), _moneyColumn, Qt::AlignRight , true, "amount" );
_apopen->addColumn(tr("Amount (%1)").arg(CurrDisplay::baseCurrAbbr()), _moneyColumn, Qt::AlignRight, false, "base_amount" );
_apopen->addColumn(tr("Running Amount (%1)").arg(CurrDisplay::baseCurrAbbr()), _moneyColumn, Qt::AlignRight, false, "running_amount" );
_apopen->addColumn(tr("Selected"), _moneyColumn, Qt::AlignRight , true, "selected" );
_apopen->addColumn(tr("Selected (%1)").arg(CurrDisplay::baseCurrAbbr()), _moneyColumn, Qt::AlignRight, false, "base_selected" );
_apopen->addColumn(tr("Running Selected (%1)").arg(CurrDisplay::baseCurrAbbr()), _moneyColumn, Qt::AlignRight, true, "running_selected" );
_apopen->addColumn(tr("Discount"), _moneyColumn, Qt::AlignRight , true, "discount" );
_apopen->addColumn(tr("Discount (%1)").arg(CurrDisplay::baseCurrAbbr()), _moneyColumn, Qt::AlignRight, false, "base_discount" );
_apopen->addColumn(tr("Currency"), _currencyColumn, Qt::AlignLeft, true, "curr_concat" );
_apopen->addColumn(tr("Status"), _currencyColumn, Qt::AlignCenter, true, "apopen_status" );
// if (omfgThis->singleCurrency())
// {
// _apopen->hideColumn("curr_concat");
// _apopen->headerItem()->setText(11, tr("Running"));
// }
if (_privileges->check("ApplyAPMemos"))
connect(_apopen, SIGNAL(valid(bool)), _applyallcredits, SLOT(setEnabled(bool)));
connect(omfgThis, SIGNAL(paymentsUpdated(int, int, bool)), this, SLOT(sFillList()));
_ignoreUpdates = false;
if(pAutoFill)
sFillList();
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:59,代码来源:selectPayments.cpp
示例5: QDialog
registrationKeyDialog::registrationKeyDialog(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: QDialog(parent, modal ? (fl | Qt::Dialog) : fl)
{
setupUi(this);
// signals and slots connections
connect(_key, SIGNAL(textChanged(const QString&)), this, SLOT(sCheckKey()));
connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
}
开发者ID:Dinesh-Ramakrishnan,项目名称:qt-client,代码行数:10,代码来源:registrationKeyDialog.cpp
示例6: XDialog
//#include "purchaseOrder.h"
openPurchaseOrder::openPurchaseOrder(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
connect(_close, SIGNAL(clicked()), this, SLOT(reject()));
_po->addColumn(tr("PO #"), -1, Qt::AlignLeft, true, "pohead_number");
_po->addColumn(tr("PO Date"), -1, Qt::AlignLeft, true, "pohead_orderdate");
_po->addColumn(tr("Created By"), -1, Qt::AlignLeft, true, "pohead_agent_username");
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:12,代码来源:openPurchaseOrder.cpp
示例7: XDialog
selectShippedOrders::selectShippedOrders(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
// signals and slots connections
connect(_close, SIGNAL(clicked()), this, SLOT(reject()));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
_customerType->setType(ParameterGroup::CustomerType);
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:11,代码来源:selectShippedOrders.cpp
示例8: QDialog
registrationKeyDialog::registrationKeyDialog(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: QDialog(parent, modal ? (fl | Qt::Dialog) : fl)
{
setObjectName(name);
setupUi(this);
connect(_key, SIGNAL(textChanged(const QString&)), this, SLOT(sCheckKey()));
connect(_close, SIGNAL(clicked()), this, SLOT(reject()));
connect(_request, SIGNAL(clicked()), this, SLOT(sRequest()));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
}
开发者ID:szuke,项目名称:qt-client,代码行数:11,代码来源:registrationKeyDialog.cpp
示例9: main
main()
{
const unsigned POP_SIZE = 8, CHROM_SIZE = 4;
unsigned i;
eoBinRandom<Chrom> random;
eoPop<Chrom> pop;
// Create the population
for (i = 0; i < POP_SIZE; ++i) {
Chrom chrom(CHROM_SIZE);
random(chrom);
BinaryValue()(chrom);
pop.push_back(chrom);
}
// print population
std::cout << "population:" << std::endl;
for (i = 0; i < pop.size(); ++i)
std::cout << pop[i] << " " << pop[i].fitness() << std::endl;
// Declare 1-selectors
eoUniformSelect<Chrom> uSelect;
Chrom aChrom;
aChrom = uSelect( pop );
std::cout << "Uniform Select " << aChrom << " " << aChrom.fitness() << std::endl;
eoStochTournament<Chrom> sSelect(0.7);
aChrom = sSelect( pop );
std::cout << "Stochastic Tournament " << aChrom << " " << aChrom.fitness() << std::endl;
eoDetTournament<Chrom> dSelect(3);
aChrom = dSelect( pop );
std::cout << "Deterministic Tournament " << aChrom << " " << aChrom.fitness() << std::endl;
return 0;
}
开发者ID:aldukeman,项目名称:dae,代码行数:38,代码来源:t-selectOne.cpp
示例10: XDialog
imageList::imageList(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
// signals and slots connections
connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
connect(_image, SIGNAL(valid(bool)), _select, SLOT(setEnabled(bool)));
connect(_image, SIGNAL(itemSelected(int)), _select, SLOT(animateClick()));
_image->addColumn(tr("Name"), _itemColumn, Qt::AlignLeft, true, "image_name" );
_image->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "image_descrip" );
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:14,代码来源:imageList.cpp
示例11: XDialog
countTagList::countTagList(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
connect(_searchFor, SIGNAL(textChanged(const QString&)), this, SLOT(sSearch(const QString&)));
connect(_warehouse, SIGNAL(updated()), this, SLOT(sFillList()));
_cnttag->addColumn(tr("Tag #"), _orderColumn, Qt::AlignLeft, true, "invcnt_tagnumber");
_cnttag->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number");
_cnttag->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "item_descrip1");
_cnttag->addColumn(tr("Site"), _whsColumn, Qt::AlignCenter,true, "warehous_code");
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:15,代码来源:countTagList.cpp
示例12: XDialog
priceList::priceList(QWidget* parent, const char * name, Qt::WindowFlags fl)
: XDialog(parent, name, fl)
{
setupUi(this);
connect(_cust, SIGNAL(newId(int)), this, SLOT(sNewCust()));
connect(_item, SIGNAL(newId(int)), this, SLOT(sNewItem()));
connect(_warehouse, SIGNAL(newID(int)), this, SLOT(sNewItem()));
connect(_close, SIGNAL(clicked()), this, SLOT(reject()));
connect(_price, SIGNAL(itemSelected(int)), _select, SLOT(animateClick()));
connect(_price, SIGNAL(itemSelected(int)), this, SLOT(sSelect()));
connect(_price, SIGNAL(valid(bool)), _select, SLOT(setEnabled(bool)));
connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
_price->addColumn(tr("Schedule"), -1, Qt::AlignLeft, true, "schedulename");
_price->addColumn(tr("Source"), _itemColumn, Qt::AlignLeft, true, "type");
_price->addColumn(tr("Qty. Break"), _qtyColumn, Qt::AlignRight, true, "qty_break");
_price->addColumn(tr("Qty. UOM"), _qtyColumn, Qt::AlignRight, true, "qty_uom");
_price->addColumn(tr("Price"), _priceColumn, Qt::AlignRight, true, "base_price");
_price->addColumn(tr("Price UOM"), _priceColumn, Qt::AlignRight, true, "price_uom");
_price->addColumn(tr("Percent"), _prcntColumn, Qt::AlignRight, true, "discountpercent");
_price->addColumn(tr("Fixed Amt."), _priceColumn, Qt::AlignRight, true, "discountfixed");
_price->addColumn(tr("Type"), _itemColumn, Qt::AlignLeft, true, "price_type");
_price->addColumn(tr("Currency"), _currencyColumn, Qt::AlignLeft, true, "currency");
_price->addColumn(tr("Price (in Base)"), _priceColumn, Qt::AlignRight, true, "price");
// column title reset in priceList::set
if (omfgThis->singleCurrency())
{
_price->hideColumn(_price->column("price"));
_price->hideColumn(_price->column("currency"));
}
_shiptoid = -1;
_shiptonum = "";
_prodcatid = -1;
_custtypeid = -1;
_custtypecode = "";
_iteminvpricerat = 1.0;
_qty->setValidator(omfgThis->qtyVal());
_listPrice->setPrecision(omfgThis->priceVal());
_listCost->setPrecision(omfgThis->priceVal());
_unitCost->setPrecision(omfgThis->costVal());
_unitCost->setVisible(_privileges->check("ViewSOItemUnitCost"));
_unitCostLit->setVisible(_privileges->check("ViewSOItemUnitCost"));
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:48,代码来源:priceList.cpp
注:本文中的sSelect函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论