本文整理汇总了C++中wxArrayString::GetCount方法的典型用法代码示例。如果您正苦于以下问题:C++ wxArrayString::GetCount方法的具体用法?C++ wxArrayString::GetCount怎么用?C++ wxArrayString::GetCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxArrayString
的用法示例。
在下文中一共展示了wxArrayString::GetCount方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetStyleList
void DIALOG_LIB_EDIT_PIN::SetStyleList( const wxArrayString& list, const BITMAP_DEF* aBitmaps )
{
for ( unsigned ii = 0; ii < list.GetCount(); ii++ )
{
if( aBitmaps == NULL )
m_choiceStyle->Append( list[ii] );
else
m_choiceStyle->Insert( list[ii], KiBitmap( aBitmaps[ii] ), ii );
}
}
示例2: DoInsertItems
void wxCheckListBox::DoInsertItems(const wxArrayString& items, int pos)
{
wxListBox::DoInsertItems(items, pos);
size_t count = items.GetCount();
for ( size_t n = 0; n < count; n++ )
{
m_checks.Insert(FALSE, pos + n);
}
}
示例3:
void ConnectionDialog::setPorts2( wxArrayString portlist)
{
for (unsigned int i=0; i<portlist.GetCount();i++)
{
portlist2->AppendItem(portlist2->GetRootItem(),portlist.Item(i),-1,-1,NULL);
}
portlist2->Expand(portlist2->GetRootItem());
portlist2->Refresh();
}
示例4: RunScan
int Execution::RunScan(const wxArrayString& FilesToProcess,
const wxArrayString& Groups)
{
// Running the scan
m_Execute = true;
int HeadersAdded = 0;
m_Progress->SetRange((int)FilesToProcess.GetCount());
for ( size_t i=0; i<FilesToProcess.GetCount(); i++ )
{
m_Progress->SetValue((int)i);
if ( !m_Execute )
return HeadersAdded;
HeadersAdded += ProcessFile(FilesToProcess[i],Groups);
}
m_Progress->SetValue((int)FilesToProcess.GetCount());
m_Execute = false;
return HeadersAdded;
}// RunScan
示例5: BuildString
void AutoCompData::BuildString( wxArrayString& strings, wxString* output, wxArrayInt* index )
{
wxASSERT( output );
wxASSERT( index );
strings.Sort( CmpStringNoCase );
output->Alloc( strings.GetCount() * 10 ); // Take a guess at the size.
index->Alloc( strings.GetCount() );
for ( int i=0; i < strings.GetCount(); i++ )
{
index->Add( (int)output->Length() );
output->Append( strings[i] );
output->Append( ' ' );
}
output->RemoveLast();
output->Shrink();
}
示例6: WriteLines
bool CTextFile::WriteLines(const wxArrayString& lines, const wxMBConv& conv)
{
bool result = true;
for (size_t i = 0; i < lines.GetCount(); ++i) {
result &= WriteLine(lines[i], conv);
}
return result;
}
示例7: WXUNUSED
wxMenuBar::wxMenuBar(size_t n, wxMenu *menus[], const wxArrayString& titles, long WXUNUSED(style))
{
wxASSERT( n == titles.GetCount() );
Init();
m_titles = titles;
for ( size_t i = 0; i < n; i++ )
m_menus.Append(menus[i]);
}
示例8: SetOutput
void WinFrame::SetOutput(const wxArrayString& out, bool largeView)
{
wxString str;
for (std::size_t i = 0; i < out.GetCount(); ++i)
str += out[i] + "\n";
outCtrl_->SetValue(str);
outCtrl_->SetFont(largeView ? *stdFont_ : *smallFont_);
}
示例9: SetSuppressedWarnings
void CppCheckSettings::SetSuppressedWarnings(wxCheckListBox* clb, const wxArrayString& keys)
{
wxCHECK_RET(clb->GetCount() == keys.GetCount(), wxT("Mismatched counts"));
m_SuppressedWarnings0.clear();
m_SuppressedWarnings1.clear();
for(size_t n = 0; n < clb->GetCount(); ++n) {
AddSuppressedWarning(keys.Item(n), clb->GetString(n), clb->IsChecked(n));
}
}
示例10: GetMusicDirs
void MusikScanNewThread::GetMusicDirs( const wxArrayString & aDirs, wxArrayString & aFiles )
{
aFiles.Clear();
if ( aDirs.GetCount() > 0 )
{
wxString sCurrPath;
wxCommandEvent evtSetTotalFiles ( wxEVT_COMMAND_MENU_SELECTED, MUSIK_LIBRARY_THREAD_PROG );
evtSetTotalFiles.SetInt(SET_TOTAL);
wxCommandEvent ScanNewProgEvt ( wxEVT_COMMAND_MENU_SELECTED, MUSIK_LIBRARY_THREAD_PROG );
ScanNewProgEvt.SetInt(SET_CURRENT);
wxCommandEvent evtSetNewFiles ( wxEVT_COMMAND_MENU_SELECTED, MUSIK_LIBRARY_THREAD_PROG );
evtSetNewFiles.SetInt(SET_NEW);
for ( size_t i = 0; i < aDirs.GetCount(); i++ )
{
if ( TestDestroy() )
break;
else
{
//--- get directory ---//
int nLastCount = aFiles.GetCount();
GetMusicDir( aDirs[i], aFiles );
//--- do math ---//
int nTotal = aFiles.GetCount() - nLastCount;
evtSetTotalFiles.SetExtraLong( nTotal );
wxPostEvent( Parent(), evtSetTotalFiles );
int nCompare = wxGetApp().Library.GetSongDirCount( sCurrPath );
int nResult = nTotal - nCompare;
//--- post update progress event ---//
evtSetNewFiles.SetExtraLong( nResult );
wxPostEvent( Parent(), evtSetNewFiles );
ScanNewProgEvt.SetExtraLong(i);
wxPostEvent( Parent(), ScanNewProgEvt );
}
}
}
}
示例11: SetStringListLongListInCombo
bool SetStringListLongListInCombo(wxComboBox *cbx, const wxArrayString &strData,
const wxArrayLong &lgData)
{
wxUnusedVar(lgData);
cbx->Clear();
for (size_t i = 0; i < strData.GetCount(); ++i)
{
cbx->AppendString(strData.Item(i));
}
return true;
}
示例12: SetCacheFile
void SpringUnitSync::SetCacheFile( const wxString& path, const wxArrayString& data )
{
wxTextFile file( path );
unsigned int arraycount = data.GetCount();
for ( unsigned int count = 0; count < arraycount; count++ )
{
file.AddLine( data[count] );
}
file.Write();
file.Close();
}
示例13: ShowOutput
void ShowOutput(const wxArrayString& output)
{
size_t count = output.GetCount();
if ( !count )
return;
for ( size_t n = 0; n < count; n++ )
{
std::cout << output[n] << std::endl;
}
}
示例14: SetStrings
void wxEditableListBox::SetStrings(const wxArrayString& strings)
{
m_listCtrl->DeleteAllItems();
size_t i;
#if defined(__INTEL_COMPILER) && 1 /* VDM auto patch */
# pragma ivdep
# pragma swp
# pragma unroll
# pragma prefetch
# if 0
# pragma simd noassert
# endif
#endif /* VDM auto patch */
for (i = 0; i < strings.GetCount(); i++)
m_listCtrl->InsertItem(i, strings[i]);
m_listCtrl->InsertItem(strings.GetCount(), wxEmptyString);
m_listCtrl->SetItemState(0, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
}
示例15: DoOpen
void ReopenEditorListView::DoOpen(wxArrayString fnames)
{
EditorManager* em = Manager::Get()->GetEditorManager();
for(size_t i = 0; i < fnames.GetCount(); ++i)
{
if(!fnames[i].IsEmpty() && !em->IsOpen(fnames[i]))
{
em->Open(fnames[i]);
}
}
}