本文整理汇总了C++中CWizStdStringArray::size方法的典型用法代码示例。如果您正苦于以下问题:C++ CWizStdStringArray::size方法的具体用法?C++ CWizStdStringArray::size怎么用?C++ CWizStdStringArray::size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CWizStdStringArray
的用法示例。
在下文中一共展示了CWizStdStringArray::size方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: document_downloadFullListEx
BOOL CWizKMDatabaseServer::document_downloadFullListEx(const CWizStdStringArray& arrayDocumentGUID, std::deque<WIZDOCUMENTDATAEX>& arrayRet)
{
int nCountPerPage = 30;
//
CWizStdStringArray::const_iterator it = arrayDocumentGUID.begin();
//
while (1)
{
//
CWizStdStringArray subArray;
//
for (;
it != arrayDocumentGUID.end(); )
{
subArray.push_back(*it);
it++;
//
if (subArray.size() == nCountPerPage)
break;
}
//
std::deque<WIZDOCUMENTDATAEX> subRet;
if (!document_downloadFullList(subArray, subRet))
return FALSE;
//
arrayRet.insert(arrayRet.end(), subRet.begin(), subRet.end());
//
if (it == arrayDocumentGUID.end())
break;
}
//
return TRUE;
}
示例2: updateInformation
void updateInformation(CWizDatabase& db, const WIZDOCUMENTDATA& doc)
{
// retrieve document info and reset
WIZDOCUMENTDATA data;
if (!db.DocumentFromGUID(doc.strGUID, data)) {
return;
}
//title
if (m_titleEdit->text() != data.strTitle) {
m_titleEdit->setText(data.strTitle);
}
//tags
CWizStdStringArray arrayTagGUID;
db.GetDocumentTags(data.strGUID, arrayTagGUID);
QString strTagText = arrayTagGUID.empty() ? QString() : QString::number(arrayTagGUID.size());
m_tagsButton->setText(strTagText);
QString tagsShortcut = ::WizGetShortcut("EditNoteTags", "Alt+2");
QString strTagsToolTip = QObject::tr("Tags (%1)").arg(tagsShortcut);
m_tagsButton->setToolTip(strTagsToolTip);
m_tagsButton->setShortcut(QKeySequence::fromString(tagsShortcut));
//attachments
int nAttachmentCount = db.GetDocumentAttachmentCount(data.strGUID);
CString strAttachmentText = nAttachmentCount ? WizIntToStr(nAttachmentCount) : CString();
m_attachmentButton->setText(strAttachmentText);
QString attachmentShortcut = ::WizGetShortcut("EditNoteAttachments", "Alt+3");
m_attachmentButton->setToolTip(QObject::tr("Attachments (%1)").arg(attachmentShortcut));
m_attachmentButton->setShortcut(QKeySequence::fromString(attachmentShortcut));
}