Esempio n. 1
0
void 
ReshapeDialog::InitComboBox()
{
	mCmbTexture->Clear();
	pathNameMap.clear();
	ReloadTextureList();
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
void 
BrushSelector::OnReloadTextureList( wxCommandEvent &event )
{
	ReloadTextureList();
}
Esempio n. 4
0
void
BrushSelector::ReloadTextureList(const wxString& resourceGroup)
{
    mResourceGroup = resourceGroup;
    ReloadTextureList();
}