void ReshapeDialog::InitComboBox() { mCmbTexture->Clear(); pathNameMap.clear(); ReloadTextureList(); }
bool BrushSelector::Create(wxWindow *parent, wxWindowID winid, const wxPoint& pos, const wxSize& size, long style, const wxString& name) { if (!wxPanel::Create(parent, winid, pos, size, style, name)) return false; InitPixmapSelector(this, true, true); /// 获取各控件的引用 mBrushesTree = wxDynamicCast(this->FindWindow(feID_PIXMAP_LIST), wxTreeCtrl); mBrushesPreview = wxDynamicCast(this->FindWindow(feID_PIXMAP_PREVIEW), wxStaticBitmap); mFlipHorizontal = wxDynamicCast(this->FindWindow(feID_FLIP_HORIZONTAL), wxCheckBox); mFlipVertical = wxDynamicCast(this->FindWindow(feID_FLIP_VERTICAL), wxCheckBox); mRotateRightAngle = wxDynamicCast(this->FindWindow(feID_ROTATE_RIGHT_ANGLE), wxCheckBox); mRandom = wxDynamicCast(this->FindWindow(feID_RANDOM), wxCheckBox); mMirrorDiagonal = wxDynamicCast(this->FindWindow(feID_MIRROR_DIAGONAL), wxCheckBox); mEnablePreview = wxDynamicCast(this->FindWindow(feID_ENABLE_PIXMAP_PREVIEW), wxCheckBox); ReloadTextureList(); // 初始化时不能选择画刷的方向选项 mFlipHorizontal->Enable(false); mFlipVertical->Enable(false); mRotateRightAngle->Enable(false); mMirrorDiagonal->Enable(false); mRandom->Enable(false); mEnablePreview->Enable(false); // 缩略图用黑白图 mBrushesPreview->SetBitmap(mBlackWhitePreviewImage); return true; }
void BrushSelector::OnReloadTextureList( wxCommandEvent &event ) { ReloadTextureList(); }
void BrushSelector::ReloadTextureList(const wxString& resourceGroup) { mResourceGroup = resourceGroup; ReloadTextureList(); }