这篇教程C++ wxArrayString函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中wxArrayString函数的典型用法代码示例。如果您正苦于以下问题:C++ wxArrayString函数的具体用法?C++ wxArrayString怎么用?C++ wxArrayString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了wxArrayString函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: wxSetWorkingDirectoryvoid LLDBDebuggerPlugin::OnDebugStart(clDebugEvent& event){ event.Skip(); return; if ( ::PromptForYesNoDialogWithCheckbox(_("Would you like to use LLDB debugger as your primary debugger?"), "UseLLDB") != wxID_YES ) { event.Skip(); return; } // Get the executable to debug wxString errMsg; ProjectPtr pProject = WorkspaceST::Get()->FindProjectByName(event.GetProjectName(), errMsg); if ( !pProject ) { event.Skip(); return; } wxSetWorkingDirectory ( pProject->GetFileName().GetPath() ); BuildConfigPtr bldConf = WorkspaceST::Get()->GetProjBuildConf ( pProject->GetName(), wxEmptyString ); if ( !bldConf ) { event.Skip(); return; } // Show the terminal ShowTerminal("LLDB Console Window"); if ( m_debugger.Start("/home/eran/devl/TestArea/TestHang/Debug/TestHang") ) { m_debugger.AddBreakpoint("main"); m_debugger.ApplyBreakpoints(); m_debugger.Run("/tmp/in", "/tmp/out", "/tmp/err", wxArrayString(), wxArrayString(), ::wxGetCwd()); }}
开发者ID:idkqh7,项目名称:codelite,代码行数:33,
示例2: wxArrayStringwxArrayString wxGnomeVfs::GetExtensions(const wxString& sMimeType) const { if(!m_bLoaded) return wxArrayString();#if wxUSE_UNICODE const wxWX2MBbuf mbBuffer = wxConvCurrent->cWX2MB(sMimeType.c_str()); const char * szMimeType = (const char*) mbBuffer;#else // wxUSE_UNICODE const char * szMimeType = (const char*) sMimeType.c_str();#endif // wxUSE_UNICODE GList * glst = wxgnome_vfs_mime_get_extensions_list(szMimeType); if(glst == NULL) return wxArrayString(); wxArrayString asExtensions; GList * glstItem = glst->next; while(glstItem != NULL) { char * szExtension = (char *) glstItem->data;#if wxUSE_UNICODE wxString sExtension = wxConvLibc.cMB2WC(szExtension);#else // wxUSE_UNICODE wxString sExtension = szIconPathName;#endif // wxUSE_UNICODE asExtensions.Add(sExtension); glstItem = glstItem->next; } wxgnome_vfs_mime_extensions_list_free(glst); return asExtensions; }
开发者ID:joeyates,项目名称:sherpa,代码行数:34,
示例3: ReadAndVerifyEnumbool EffectToneGen::SetAutomationParameters(EffectAutomationParameters & parms){ ReadAndVerifyEnum(Waveform, wxArrayString(kNumWaveforms, kWaveStrings)); ReadAndVerifyEnum(Interp, wxArrayString(kNumInterpolations, kInterStrings)); if (mChirp) { ReadAndVerifyDouble(StartFreq); ReadAndVerifyDouble(EndFreq); ReadAndVerifyDouble(StartAmp); ReadAndVerifyDouble(EndAmp); mFrequency[0] = StartFreq; mFrequency[1] = EndFreq; mAmplitude[0] = StartAmp; mAmplitude[1] = EndAmp; } else { ReadAndVerifyDouble(Frequency); ReadAndVerifyDouble(Amplitude); mFrequency[0] = Frequency; mFrequency[1] = Frequency; mAmplitude[0] = Amplitude; mAmplitude[1] = Amplitude; } mWaveform = Waveform; mInterpolation = Interp; double freqMax = (GetActiveProject() ? GetActiveProject()->GetRate() : 44100.0) / 2.0; mFrequency[1] = TrapDouble(mFrequency[1], MIN_EndFreq, freqMax); return true;}
开发者ID:henricj,项目名称:audacity,代码行数:33,
示例4: TacticsInstrument_DialTacticsInstrument_WindCompass::TacticsInstrument_WindCompass( wxWindow *parent, wxWindowID id, wxString title, int cap_flag ) : TacticsInstrument_Dial( parent, id, title, cap_flag, 0, 360, 0, 360 ){ SetOptionMarker(5, DIAL_MARKER_SIMPLE, 2); wxString labels[] = {_("N"), _("NE"), _("E"), _("SE"), _("S"), _("SW"), _("W"), _("NW")}; SetOptionLabel(45, DIAL_LABEL_HORIZONTAL, wxArrayString(8, labels));}
开发者ID:CarCode,项目名称:Cocoa-OCPN,代码行数:7,
示例5: wxArrayStringwxArrayStringCMake::GetVersions(){ static const wxString VERSIONS[] = { "2.8.11", "2.8.10", "2.8.9", "2.8.8", "2.8.7", "2.8.6", "2.8.5", "2.8.4", "2.8.3", "2.8.2", "2.8.1", "2.8.0", "2.6.4", "2.6.3", "2.6.2", "2.6.1", "2.6.0", "2.4.8", "2.4.7", "2.4.6", "2.4.5", "2.4.4", "2.4.3", "2.2.3", "2.0.6", "1.8.3" }; return wxArrayString(sizeof(VERSIONS) / sizeof(VERSIONS[0]), VERSIONS);}
开发者ID:05storm26,项目名称:codelite,代码行数:34,
示例6: wxDialogListSelectDialog::ListSelectDialog(wxWindow *parent, const wxString& title) : wxDialog(parent, wxID_ANY, title, wxDefaultPosition, wxSize(400, 420)){ wxBoxSizer *dlgSizer = new wxBoxSizer(wxVERTICAL); SetSizer(dlgSizer); wxPanel *mainPanel = new wxPanel(this); dlgSizer->Add(mainPanel, wxSizerFlags(1).Expand().Border(wxALL, 8)); wxGridBagSizer *mainSz = new wxGridBagSizer(); mainSz->AddGrowableCol(0, 0); mainSz->AddGrowableRow(0, 0); mainPanel->SetSizer(mainSz); list = new wxListBox(mainPanel, -1, wxDefaultPosition, wxDefaultSize, wxArrayString(), wxLB_SINGLE); mainSz->Add(list, wxGBPosition(0, 0), wxGBSpan(1, 2), wxEXPAND | wxALL, 4); wxButton *refreshButton = new wxButton(mainPanel, ID_RefreshList, _("&Refresh")); mainSz->Add(refreshButton, wxGBPosition(1, 1), wxGBSpan(1, 1), wxALL, 3); wxSizer *btnSz = CreateButtonSizer(wxOK | wxCANCEL); dlgSizer->Add(btnSz, wxSizerFlags(0).Border(wxBOTTOM | wxRIGHT, 8). Align(wxALIGN_RIGHT | wxALIGN_BOTTOM)); SetControlEnable(this, wxID_OK, false);}
开发者ID:Glought,项目名称:MultiMC4,代码行数:26,
示例7: passChoicesbool EffectLeveller::SetAutomationParameters(EffectAutomationParameters & parms){ // Allow for 2.1.0 and before wxArrayString passChoices(kNumPasses, kPassStrings); passChoices.Insert(wxT("1"), 0); passChoices.Insert(wxT("2"), 1); passChoices.Insert(wxT("3"), 2); passChoices.Insert(wxT("4"), 3); passChoices.Insert(wxT("5"), 4); ReadAndVerifyEnum(Level, wxArrayString(Enums::NumDbChoices,Enums::GetDbChoices())); ReadAndVerifyEnum(Passes, passChoices); mDbIndex = Level; mPassIndex = Passes; // Readjust for 2.1.0 or before if (mPassIndex >= kNumPasses) { mPassIndex -= kNumPasses; } mNumPasses = mPassIndex + 1; mDbSilenceThreshold = Enums::Db2Signal[mDbIndex]; CalcLevellerFactors(); return true;}
开发者ID:MartynShaw,项目名称:audacity,代码行数:29,
示例8: vldvoid RepeatDialog::PopulateOrExchange(ShuttleGui & S){ wxTextValidator vld(wxFILTER_INCLUDE_CHAR_LIST); vld.SetIncludes(wxArrayString(12, numbers)); S.StartHorizontalLay(wxCENTER, false); { S.AddTitle(_("by Dominic Mazzoni && Vaughan Johnson")); } S.EndHorizontalLay(); S.StartHorizontalLay(wxCENTER, false); { // Add a little space } S.EndHorizontalLay(); S.StartHorizontalLay(wxCENTER, false); { mRepeatCount = S.Id(ID_REPEAT_TEXT).AddTextBox(_("Number of times to repeat:"), wxT(""), 12); mRepeatCount->SetValidator(vld); } S.EndHorizontalLay(); S.StartHorizontalLay(wxCENTER, true); { mTotalTime = S.AddVariableText(_("New selection length: hh:mm:ss")); } S.EndHorizontalLay();}
开发者ID:ruthmagnus,项目名称:audacity,代码行数:32,
示例9: validator void VolumePimWizardPage::SetPimValidator () { wxTextValidator validator (wxFILTER_INCLUDE_CHAR_LIST); // wxFILTER_NUMERIC does not exclude - . , etc. const wxChar *valArr[] = { L"0", L"1", L"2", L"3", L"4", L"5", L"6", L"7", L"8", L"9" }; validator.SetIncludes (wxArrayString (array_capacity (valArr), (const wxChar **) &valArr)); VolumePimTextCtrl->SetValidator (validator); }
开发者ID:NaldoDj,项目名称:VeraCrypt,代码行数:7,
示例10: vldDtmfvoid EffectDtmf::PopulateOrExchange(ShuttleGui & S){ // dialog will be passed values from effect // Effect retrieves values from saved config // Dialog will take care of using them to initialize controls // If there is a selection, use that duration, otherwise use // value from saved config: this is useful is user wants to // replace selection with dtmf sequence S.AddSpace(0, 5); S.StartMultiColumn(2, wxCENTER); { wxTextValidator vldDtmf(wxFILTER_INCLUDE_CHAR_LIST, &dtmfSequence); vldDtmf.SetIncludes(wxArrayString(WXSIZEOF(kSymbols), kSymbols)); mDtmfSequenceT = S.Id(ID_Sequence).AddTextBox(_("DTMF sequence:"), wxT(""), 10); mDtmfSequenceT->SetValidator(vldDtmf); FloatingPointValidator<double> vldAmp(3, &dtmfAmplitude, NUM_VAL_NO_TRAILING_ZEROES); vldAmp.SetRange(MIN_Amplitude, MAX_Amplitude); S.Id(ID_Amplitude).AddTextBox(_("Amplitude (0-1):"), wxT(""), 10)->SetValidator(vldAmp); S.AddPrompt(_("Duration:")); mDtmfDurationT = safenew NumericTextCtrl(NumericConverter::TIME, S.GetParent(), ID_Duration, GetDurationFormat(), GetDuration(), mProjectRate, wxDefaultPosition, wxDefaultSize, true); mDtmfDurationT->SetName(_("Duration")); mDtmfDurationT->EnableMenu(); S.AddWindow(mDtmfDurationT); S.AddFixedText(_("Tone/silence ratio:"), false); S.SetStyle(wxSL_HORIZONTAL | wxEXPAND); mDtmfDutyCycleS = S.Id(ID_DutyCycle).AddSlider( {}, dtmfDutyCycle * SCL_DutyCycle, MAX_DutyCycle * SCL_DutyCycle, MIN_DutyCycle * SCL_DutyCycle); S.SetSizeHints(-1,-1); } S.EndMultiColumn(); S.StartMultiColumn(2, wxCENTER); { S.AddFixedText(_("Duty cycle:"), false); mDtmfDutyT = S.AddVariableText(wxString::Format(wxT("%.1f %%"), dtmfDutyCycle), false); S.AddFixedText(_("Tone duration:"), false); mDtmfSilenceT = S.AddVariableText(wxString::Format(wxString(wxT("%.0f ")) + _("ms"), dtmfTone * 1000.0), false); S.AddFixedText(_("Silence duration:"), false); mDtmfToneT = S.AddVariableText(wxString::Format(wxString(wxT("%0.f ")) + _("ms"), dtmfSilence * 1000.0), false); } S.EndMultiColumn();}
开发者ID:RaphaelMarinier,项目名称:audacity,代码行数:59,
示例11: vldvoid AmplifyDialog::PopulateOrExchange(ShuttleGui & S){ wxTextValidator vld(wxFILTER_INCLUDE_CHAR_LIST); vld.SetIncludes(wxArrayString(12, numbers)); S.StartHorizontalLay(wxCENTER, false); { S.AddTitle(_("by Dominic Mazzoni")); } S.EndHorizontalLay(); S.StartHorizontalLay(wxCENTER, false); { // Add a little space } S.EndHorizontalLay(); // Amplitude S.StartMultiColumn(2, wxCENTER); { mAmpT = S.Id(ID_AMP_TEXT).AddTextBox(_("Amplification (dB):"), wxT(""), 12); mAmpT->SetValidator(vld); } S.EndMultiColumn(); // Amplitude S.StartHorizontalLay(wxEXPAND); { S.SetStyle(wxSL_HORIZONTAL); mAmpS = S.Id(ID_AMP_SLIDER).AddSlider(wxT(""), 0, AMP_MAX, AMP_MIN); mAmpS->SetName(_("Amplification (dB)")); } S.EndHorizontalLay(); // Peek S.StartMultiColumn(2, wxCENTER); { mPeakT = S.Id(ID_PEAK_TEXT).AddTextBox(_("New Peak Amplitude (dB):"), wxT(""), 12); // mPeakT->SetValidator(vld); } S.EndMultiColumn(); // Clipping S.StartHorizontalLay(wxCENTER); { mClip = S.Id(ID_CLIP_CHECKBOX).AddCheckBox(_("Allow clipping"), wxT("false")); } S.EndHorizontalLay(); return;}
开发者ID:ruthmagnus,项目名称:audacity,代码行数:59,
示例12: GetPropertywxArrayString ObjectBase::GetPropertyAsArrayString(const wxString& pname){ shared_ptr<Property> property = GetProperty( pname ); if (property) return property->GetValueAsArrayString(); else return wxArrayString();}
开发者ID:idrassi,项目名称:wxFormBuilder,代码行数:8,
示例13: GetMP3ImportPluginvoid GetMP3ImportPlugin(ImportPluginList *importPluginList, UnusableImportPluginList *unusableImportPluginList){ UnusableImportPlugin* mp3IsUnsupported = new UnusableImportPlugin(wxT("MP3"), wxArrayString(4, exts)); unusableImportPluginList->Append(mp3IsUnsupported);}
开发者ID:andreipaga,项目名称:audacity,代码行数:8,
示例14: GetOGGImportPluginvoid GetOGGImportPlugin(ImportPluginList *importPluginList, UnusableImportPluginList *unusableImportPluginList){ UnusableImportPlugin* oggIsUnsupported = new UnusableImportPlugin(DESC, wxArrayString(WXSIZEOF(exts), exts)); unusableImportPluginList->Append(oggIsUnsupported);}
开发者ID:ruthmagnus,项目名称:audacity,代码行数:8,
示例15: GetQTImportPluginvoid GetQTImportPlugin(ImportPluginList &importPluginList, UnusableImportPluginList &unusableImportPluginList){ unusableImportPluginList.push_back( std::make_unique<UnusableImportPlugin> (DESC, wxArrayString(WXSIZEOF(exts), exts)) );}
开发者ID:finefin,项目名称:audacity,代码行数:8,
示例16: vldDtmfvoid DtmfDialog::PopulateOrExchange( ShuttleGui & S ){ wxTextValidator vldDtmf(wxFILTER_INCLUDE_CHAR_LIST); vldDtmf.SetIncludes(wxArrayString(42, dtmfSymbols)); S.AddTitle(_("by Salvo Ventura")); S.StartMultiColumn(2, wxEXPAND); { mDtmfStringT = S.Id(ID_DTMF_STRING_TEXT).AddTextBox(_("DTMF sequence:"), wxT(""), 10); mDtmfStringT->SetValidator(vldDtmf); // The added colon to improve visual consistency was placed outside // the translatable strings to avoid breaking translations close to 2.0. // TODO: Make colon part of the translatable string after 2.0. S.TieNumericTextBox(_("Amplitude (0-1)") + wxString(wxT(":")), dAmplitude, 10); S.AddPrompt(_("Duration:")); if (mDtmfDurationT == NULL) { mDtmfDurationT = new TimeTextCtrl(this, ID_DTMF_DURATION_TEXT, wxT(""), dDuration, mEffect->mProjectRate, wxDefaultPosition, wxDefaultSize, true); /* use this instead of "seconds" because if a selection is passed to the * effect, I want it (dDuration) to be used as the duration, and with * "seconds" this does not always work properly. For example, it rounds * down to zero... */ mDtmfDurationT->SetName(_("Duration")); mDtmfDurationT->SetFormatString(mDtmfDurationT->GetBuiltinFormat(dIsSelection==true?(_("hh:mm:ss + samples")):(_("hh:mm:ss + milliseconds")))); mDtmfDurationT->EnableMenu(); } S.AddWindow(mDtmfDurationT); S.AddFixedText(_("Tone/silence ratio:"), false); S.SetStyle(wxSL_HORIZONTAL | wxEXPAND); mDtmfDutyS = S.Id(ID_DTMF_DUTYCYCLE_SLIDER).AddSlider(wxT(""), (int)dDutyCycle, DUTY_MAX, DUTY_MIN); S.SetSizeHints(-1,-1); } S.EndMultiColumn(); S.StartMultiColumn(2, wxCENTER); { S.AddFixedText(_("Duty cycle:"), false); mDtmfDutyT = S.Id(ID_DTMF_DUTYCYCLE_TEXT).AddVariableText(wxString::Format(wxT("%.1f %%"), (float) dDutyCycle/DUTY_SCALE), false); S.AddFixedText(_("Tone duration:"), false); mDtmfSilenceT = S.Id(ID_DTMF_TONELEN_TEXT).AddVariableText(wxString::Format(wxString(wxT("%d ")) + _("ms"), (int) dTone * 1000), false); S.AddFixedText(_("Silence duration:"), false); mDtmfToneT = S.Id(ID_DTMF_SILENCE_TEXT).AddVariableText(wxString::Format(wxString(wxT("%d ")) + _("ms"), (int) dSilence * 1000), false); } S.EndMultiColumn();}
开发者ID:tuanmasterit,项目名称:audacity,代码行数:58,
示例17: GetContainervoid ItemContainerWidgetsPage::OnButtonTestItemContainer(wxCommandEvent&){ m_container = GetContainer(); wxASSERT_MSG(m_container, wxT("Widget must have a test widget")); wxLogMessage(wxT("wxItemContainer test for %s, %s:"), GetWidget()->GetClassInfo()->GetClassName(), (m_container->IsSorted() ? "Sorted" : "Unsorted")); const wxArrayString expected_result = m_container->IsSorted() ? MakeArray(m_itemsSorted) : m_items; StartTest(wxT("Append one item")); wxString item = m_items[0]; m_container->Append(item); EndTest(wxArrayString(1, &item)); StartTest(wxT("Append some items")); m_container->Append(m_items); EndTest(expected_result); StartTest(wxT("Append some items with data objects")); wxClientData **objects = new wxClientData *[m_items.GetCount()]; unsigned i; for ( i = 0; i < m_items.GetCount(); ++i ) objects[i] = CreateClientData(i); m_container->Append(m_items, objects); EndTest(expected_result); delete[] objects; StartTest(wxT("Append some items with data")); void **data = new void *[m_items.GetCount()]; for ( i = 0; i < m_items.GetCount(); ++i ) data[i] = wxUIntToPtr(i); m_container->Append(m_items, data); EndTest(expected_result); delete[] data; StartTest(wxT("Append some items with data, one by one")); for ( i = 0; i < m_items.GetCount(); ++i ) m_container->Append(m_items[i], wxUIntToPtr(i)); EndTest(expected_result); StartTest(wxT("Append some items with data objects, one by one")); for ( i = 0; i < m_items.GetCount(); ++i ) m_container->Append(m_items[i], CreateClientData(i)); EndTest(expected_result); if ( !m_container->IsSorted() ) { StartTest(wxT("Insert in reverse order with data, one by one")); for ( unsigned i = m_items.GetCount(); i; --i ) m_container->Insert(m_items[i - 1], 0, wxUIntToPtr(i - 1)); EndTest(expected_result); }}
开发者ID:ruifig,项目名称:nutcracker,代码行数:57,
示例18: vldvoid ClickRemovalDialog::PopulateOrExchange(ShuttleGui & S){ wxTextValidator vld(wxFILTER_INCLUDE_CHAR_LIST); vld.SetIncludes(wxArrayString(10, numbers)); S.StartHorizontalLay(wxCENTER, false); { S.AddTitle(_("Click and Pop Removal by Craig DeForest")); } S.EndHorizontalLay(); S.StartHorizontalLay(wxCENTER, false); { // Add a little space } S.EndHorizontalLay(); S.StartMultiColumn(3, wxEXPAND); S.SetStretchyCol(2); { // Threshold mThreshT = S.Id(ID_THRESH_TEXT).AddTextBox(_("Select threshold (lower is more sensitive):"), wxT(""), 10); mThreshT->SetValidator(vld); S.SetStyle(wxSL_HORIZONTAL); mThreshS = S.Id(ID_THRESH_SLIDER).AddSlider(wxT(""), 0, MAX_THRESHOLD); mThreshS->SetName(_("Select threshold")); mThreshS->SetRange(MIN_THRESHOLD, MAX_THRESHOLD);#if defined(__WXGTK__) // Force a minimum size since wxGTK allows it to go to zero mThreshS->SetMinSize(wxSize(100, -1));#endif // Click width mWidthT = S.Id(ID_WIDTH_TEXT).AddTextBox(_("Max spike width (higher is more sensitive):"), wxT(""), 10); mWidthT->SetValidator(vld); S.SetStyle(wxSL_HORIZONTAL); mWidthS = S.Id(ID_WIDTH_SLIDER).AddSlider(wxT(""), 0, MAX_CLICK_WIDTH); mWidthS->SetName(_("Max spike width")); mWidthS->SetRange(MIN_CLICK_WIDTH, MAX_CLICK_WIDTH);#if defined(__WXGTK__) // Force a minimum size since wxGTK allows it to go to zero mWidthS->SetMinSize(wxSize(100, -1));#endif } S.EndMultiColumn(); return;}
开发者ID:Kirushanr,项目名称:audacity,代码行数:57,
示例19: GetQTImportPluginvoid GetQTImportPlugin(ImportPluginList *importPluginList, UnusableImportPluginList *unusableImportPluginList){ UnusableImportPlugin* qtIsUnsupported = new UnusableImportPlugin(wxT("QuickTime"), wxArrayString(WXSIZEOF(exts), exts)); unusableImportPluginList->Append(qtIsUnsupported);}
开发者ID:ruthmagnus,项目名称:audacity,代码行数:9,
示例20: _void ProcessingDlg::ProcessLibrary(const LibraryDetectionConfig* Config,const LibraryDetectionConfigSet* Set){ Status->SetLabel( wxString::Format( _("Searching library /"%s/""), Set->ShortCode.c_str())); CheckFilter(_T(""),wxStringStringMap(),wxArrayString(),Config,Set,0);}
开发者ID:stahta01,项目名称:EmBlocks,代码行数:9,
示例21: SetCMakeEnabledvoidCMakeProjectSettingsPanel::ClearSettings(){ SetCMakeEnabled(false); SetSourceDirectory(""); SetBuildDirectory(""); SetGenerator(""); SetArguments(wxArrayString()); SetParentProject("");}
开发者ID:GaganJotSingh,项目名称:codelite,代码行数:10,
示例22: AxisMaxBoundAdjusterBase::AxisMaxBoundAdjusterBase(MultiDimGrid& grid) :wxChoice (&grid ,wxID_ANY ,wxDefaultPosition ,wxDefaultSize ,wxArrayString() ){}
开发者ID:vadz,项目名称:lmi,代码行数:10,
示例23: ReadAndVerifyEnumbool EffectNoise::SetAutomationParameters(EffectAutomationParameters & parms){ ReadAndVerifyEnum(Type, wxArrayString(kNumTypes, kTypeStrings)); ReadAndVerifyDouble(Amp); mType = Type; mAmp = Amp; return true;}
开发者ID:MartynShaw,项目名称:audacity,代码行数:10,
示例24: wxArrayStringMainFrameVariables::MainFrameVariables(void){ viewID = 0; /* default viewID */ int i; for (i=0; i<4; i++) { views[i].toolbar_displayType = IMGVIEW_SINGLEPLANE; views[i].toolbar_showTextOverlay = true; views[i].toolbar_showLineOverlay = true; views[i].toolbar_showHighRes = true; views[i].slice_value = 0; views[i].image_zoomUseBestFit = true; views[i].image_zoomPercent = 100; views[i].image_plane = 0; views[i].image_volume = 0; views[i].image_trackPoints = false; views[i].image_displayTrackedPoints = true; views[i].display_windowCenter = 0; views[i].display_windowWidth = 0; views[i].multislice_sortBy = ROWS; views[i].multislice_numRows = 1; views[i].multislice_numCols = 1; views[i].multislice_useBestFit = true; views[i].colorMap_useColor = false; views[i].colorMap_color1 = wxColour::wxColour(64, 0, 0); views[i].colorMap_color2 = wxColour::wxColour(255, 255, 128); views[i].colorMap_index = 0; views[i].colorMap_useWindowLevel = true; views[i].volRend_intensity = 0.5; views[i].volRend_density = 0.5; views[i].volRend_numSlices = 50; views[i].volRend_useColor = false; views[i].volRend_color = wxColour::wxColour(255,255,255);// views[i].volRend_method = VOLMETHOD_3DTEXTURE; views[i].volRend_method = VOLMETHOD_RAYTRACE; views[i].volRend_stepSize = 0.05; views[i].volRend_isMoving = false; views[i].volRend_numIterations = 80; views[i].volRend_reInit = false; views[i].volRend_useSSD = false; views[i].volRend_SSDCutoff = 0.001; views[i].rotations_angle = 0.0; views[i].rotations_X = 0.0; views[i].rotations_Y = 0.0; views[i].rotations_Z = 0.0; views[i].rotations_isMoving = false; views[i].load_filenames = wxArrayString(NULL); views[i].load_filetype = FILETYPE_DICOM; views[i].load_isMosaic = false; views[i].load_loadType = OPEN_SELECTED; views[i].load_mosaicNumSlices = 36; views[i].load_mosaicXSize = 64; views[i].load_mosaicYSize = 64; }}
开发者ID:gbook,项目名称:miview,代码行数:55,
示例25: wxDialogCExportTextWarningDlgBase::CExportTextWarningDlgBase(wxWindow* parent) : wxDialog(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER), selCriteria(new SelectionCriteria), m_combinationEntry(NULL), m_YubiBtn(NULL), m_yubiStatusCtrl(NULL), m_pollingTimer(NULL){ enum { TopMargin = 20, BottomMargin = 20, SideMargin = 30, RowSeparation = 10, ColSeparation = 20}; wxBoxSizer* dlgSizer = new wxBoxSizer(wxVERTICAL); dlgSizer->AddSpacer(TopMargin); wxString warningTxt(_("Warning! This operation will create an unprotected copy of ALL of the passwords/nin the database. Deleting this copy after use is NOT sufficient.")); wxString warningTxt2(_("Please do not use this option unless you understand and accept the risks. This option/nbypasses the security provided by this program.")); wxStaticText* rt = new wxStaticText(this, wxID_ANY, warningTxt + wxT("/n/n") + warningTxt2, wxDefaultPosition, wxSize(-1, 200)); rt->SetForegroundColour(*wxRED); dlgSizer->Add(rt, wxSizerFlags().Border(wxLEFT|wxRIGHT, SideMargin).Proportion(1).Expand()); dlgSizer->AddSpacer(RowSeparation); wxBoxSizer* pwdCtrl = new wxBoxSizer(wxHORIZONTAL); pwdCtrl->Add(new wxStaticText(this, wxID_ANY, _("Safe Combination:"))); pwdCtrl->AddSpacer(ColSeparation); pwdCtrl->Add(new CSafeCombinationCtrl(this, wxID_ANY, &passKey), wxSizerFlags().Expand().Proportion(1)); dlgSizer->Add(pwdCtrl, wxSizerFlags().Border(wxLEFT|wxRIGHT, SideMargin).Expand()); dlgSizer->AddSpacer(RowSeparation); delimiter = wxT('/xbb'); wxTextValidator delimValidator(wxFILTER_EXCLUDE_CHAR_LIST, &delimiter); const wxChar* excludes[] = {wxT("/""), 0}; delimValidator.SetExcludes(wxArrayString(1, excludes)); wxBoxSizer* delimRow = new wxBoxSizer(wxHORIZONTAL); delimRow->Add(new wxStaticText(this, wxID_ANY, _("Line delimiter in Notes field:"))); delimRow->AddSpacer(ColSeparation); delimRow->Add(new wxTextCtrl(this, ID_LINE_DELIMITER, wxT("/xbb"), wxDefaultPosition, wxDefaultSize, 0, delimValidator)); delimRow->AddSpacer(ColSeparation); delimRow->Add(new wxStaticText(this, wxID_ANY, _("Also used to replace periods in the Title field"))); dlgSizer->Add(delimRow, wxSizerFlags().Border(wxLEFT|wxRIGHT, SideMargin)); dlgSizer->AddSpacer(RowSeparation); dlgSizer->Add(new wxStaticLine(this), wxSizerFlags().Expand().Border(wxLEFT|wxRIGHT, SideMargin).Center()); dlgSizer->AddSpacer(RowSeparation); wxStdDialogButtonSizer* buttons = CreateStdDialogButtonSizer(wxOK|wxCANCEL|wxHELP); //This might not be a very wise thing to do. We are only supposed to add certain //pre-defined button-ids to StdDlgBtnSizer buttons->Add(new wxButton(this, ID_ADVANCED, _("Advanced...")), wxSizerFlags().Border(wxLEFT|wxRIGHT)); dlgSizer->Add(buttons, wxSizerFlags().Border(wxLEFT|wxRIGHT, SideMargin).Center()); dlgSizer->AddSpacer(BottomMargin); SetSizerAndFit(dlgSizer);}
开发者ID:ByteRisc,项目名称:pwsafe,代码行数:54,
示例26: wxCHECK_MSGwxArrayString wxPlotCurve::GetOptionNames() const{ wxCHECK_MSG(M_PLOTCURVEDATA, wxArrayString(), wxT("invalid plotcurve"));#if defined(wxUSE_STD_CONTAINERS) && wxUSE_STD_CONTAINERS wxArrayString s; s.assign(M_PLOTCURVEDATA->m_optionNames.begin(), M_PLOTCURVEDATA->m_optionNames.end()); return s;#else return M_PLOTCURVEDATA->m_optionNames;#endif // defined(wxUSE_STD_CONTAINERS) && wxUSE_STD_CONTAINERS}
开发者ID:stahta01,项目名称:wxCode_components,代码行数:11,
示例27: S_FMT/* AnimatedEntryPanel::insertListItem * Adds an entry to the list *******************************************************************/void AnimatedEntryPanel::insertListItem(AnimatedEntry* ent, uint32_t pos){ if (ent == NULL) return; string cols[] = { ent->getType() ? "Texture" : "Flat", ent->getFirst(), ent->getLast(), ent->getSpeed() < 65535 ? S_FMT("%d tics", ent->getSpeed()) : "Swirl", ent->getDecals()? "Allowed" : " " }; list_entries->addItem(pos, wxArrayString(5, cols)); list_entries->setItemStatus(pos, ent->getStatus());}
开发者ID:Blue-Shadow,项目名称:SLADE,代码行数:14,
示例28: wxArrayString/* SwitchesEntryPanel::insertListItem * Adds an entry to the list *******************************************************************/void SwitchesEntryPanel::insertListItem(SwitchesEntry* ent, uint32_t pos){ if (ent == NULL) return; string cols[] = { ent->getOff(), ent->getOn(), ent->getType() == SWCH_COMM ? "Commercial" : ent->getType() == SWCH_FULL ? "Registered" : ent->getType() == SWCH_DEMO ? "Shareware" : "BugBugBug" }; list_entries->addItem(pos, wxArrayString(3, cols)); list_entries->setItemStatus(pos, ent->getStatus());}
开发者ID:Blue-Shadow,项目名称:SLADE,代码行数:15,
示例29: DashboardInstrument_DialDashboardInstrument_RudderAngle::DashboardInstrument_RudderAngle( wxWindow *parent, wxWindowID id, wxString title) : DashboardInstrument_Dial( parent, id, title, OCPN_DBP_STC_RSA, 100, 160, -40, +40){ // Default Rudder position is centered m_MainValue = 0; //SetOptionMainValue(_T("%3.0f Deg"), DIAL_POSITION_BOTTOMLEFT); SetOptionMarker(5, DIAL_MARKER_REDGREEN, 2); // Labels are set static because we've no logic to display them this way wxString labels[] = {_T("40"), _T("30"), _T("20"), _T("10"), _T("0"), _T("10"), _T("20"), _T("30"), _T("40")}; SetOptionLabel(10, DIAL_LABEL_HORIZONTAL, wxArrayString(9, labels));// SetOptionExtraValue(_T("%02.0f"), DIAL_POSITION_INSIDE);}
开发者ID:CarCode,项目名称:Cocoa-OCPN,代码行数:13,
注:本文中的wxArrayString函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ wxAtoi函数代码示例 C++ wxASSERT_MSG函数代码示例 |