Skip to content

Commit 096efe8

Browse files
LiamLiam
Liam
authored and
Liam
committed
rename print interface
1 parent 6054dc0 commit 096efe8

File tree

16 files changed

+24
-24
lines changed

16 files changed

+24
-24
lines changed

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ bool UIButtonTest::init()
7979

8080
TTFConfig ttfConfig("fonts/arial.ttf", 15);
8181
auto label1 = Label::createWithTTF(ttfConfig, "Print Resources");
82-
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UIButtonTest::printCheckBoxResources, this));
82+
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UIButtonTest::printWidgetResources, this));
8383
item1->setPosition(Vec2(VisibleRect::left().x + 60, VisibleRect::bottom().y + item1->getContentSize().height * 3));
8484
auto pMenu1 = Menu::create(item1, nullptr);
8585
pMenu1->setPosition(Vec2(0, 0));
@@ -125,7 +125,7 @@ void UIButtonTest::touchEvent(Ref *pSender, Widget::TouchEventType type)
125125
}
126126
}
127127

128-
void UIButtonTest::printCheckBoxResources(cocos2d::Ref* sender)
128+
void UIButtonTest::printWidgetResources(cocos2d::Ref* sender)
129129
{
130130
cocos2d::ResouceData normalFileName = _button->getNormalFile();
131131
CCLOG("normalFileName Name : %s, Type: %d", normalFileName.file.c_str(), normalFileName.type);

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class UIButtonTest : public UIScene
4040
virtual bool init() override;
4141
void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type);
4242

43-
void printCheckBoxResources(cocos2d::Ref* sender);
43+
void printWidgetResources(cocos2d::Ref* sender);
4444
protected:
4545
cocos2d::ui::Text* _displayValueLabel;
4646
cocos2d::ui::Button* _button;

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bool UICheckBoxTest::init()
5252

5353
TTFConfig ttfConfig("fonts/arial.ttf", 15);
5454
auto label1 = Label::createWithTTF(ttfConfig, "Print Resources");
55-
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UICheckBoxTest::printCheckBoxResources, this));
55+
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UICheckBoxTest::printWidgetResources, this));
5656
item1->setPosition(Vec2(VisibleRect::left().x + 60, VisibleRect::bottom().y + item1->getContentSize().height * 3));
5757
auto pMenu1 = Menu::create(item1, nullptr);
5858
pMenu1->setPosition(Vec2(0, 0));
@@ -81,7 +81,7 @@ void UICheckBoxTest::selectedEvent(Ref* pSender,CheckBox::EventType type)
8181

8282
}
8383

84-
void UICheckBoxTest::printCheckBoxResources(cocos2d::Ref* sender)
84+
void UICheckBoxTest::printWidgetResources(cocos2d::Ref* sender)
8585
{
8686
cocos2d::ResouceData backGroundFileName = _checkBox->getBackNormalFile();
8787
CCLOG("backGroundFile Name : %s, Type: %d", backGroundFileName.file.c_str(),backGroundFileName.type);

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class UICheckBoxTest : public UIScene
4040
virtual bool init() override;
4141
void selectedEvent(cocos2d::Ref* sender,cocos2d::ui::CheckBox::EventType type);
4242

43-
void printCheckBoxResources(cocos2d::Ref* sender);
43+
void printWidgetResources(cocos2d::Ref* sender);
4444
protected:
4545
cocos2d::ui::Text* _displayValueLabel;
4646
cocos2d::ui::CheckBox* _checkBox;

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool UIImageViewTest::init()
3838

3939
TTFConfig ttfConfig("fonts/arial.ttf", 15);
4040
auto label1 = Label::createWithTTF(ttfConfig, "Print Resources");
41-
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UIImageViewTest::printCheckBoxResources, this));
41+
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UIImageViewTest::printWidgetResources, this));
4242
item1->setPosition(Vec2(VisibleRect::left().x + 60, VisibleRect::bottom().y + item1->getContentSize().height * 3));
4343
auto pMenu1 = Menu::create(item1, nullptr);
4444
pMenu1->setPosition(Vec2(0, 0));
@@ -49,7 +49,7 @@ bool UIImageViewTest::init()
4949
return false;
5050
}
5151

52-
void UIImageViewTest::printCheckBoxResources(cocos2d::Ref* sender)
52+
void UIImageViewTest::printWidgetResources(cocos2d::Ref* sender)
5353
{
5454
cocos2d::ResouceData textureFile = _image->getRenderFile();
5555
CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type);

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class UIImageViewTest : public UIScene
3636

3737
virtual bool init() override;
3838

39-
void printCheckBoxResources(cocos2d::Ref* sender);
39+
void printWidgetResources(cocos2d::Ref* sender);
4040
protected:
4141
cocos2d::ui::ImageView* _image;
4242
};

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ bool UILayoutTest_BackGroundImage::init()
269269

270270
TTFConfig ttfConfig("fonts/arial.ttf", 15);
271271
auto label1 = Label::createWithTTF(ttfConfig, "Print Resources");
272-
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UILayoutTest_BackGroundImage::printCheckBoxResources, this));
272+
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UILayoutTest_BackGroundImage::printWidgetResources, this));
273273
item1->setPosition(Vec2(VisibleRect::left().x + 60, VisibleRect::bottom().y + item1->getContentSize().height * 3));
274274
auto pMenu1 = Menu::create(item1, nullptr);
275275
pMenu1->setPosition(Vec2(0, 0));
@@ -280,7 +280,7 @@ bool UILayoutTest_BackGroundImage::init()
280280
return false;
281281
}
282282

283-
void UILayoutTest_BackGroundImage::printCheckBoxResources(cocos2d::Ref* sender)
283+
void UILayoutTest_BackGroundImage::printWidgetResources(cocos2d::Ref* sender)
284284
{
285285
cocos2d::ResouceData textureFile = _layout->getRenderFile();
286286
CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type);

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class UILayoutTest_BackGroundImage : public UIScene
6868

6969
CREATE_FUNC(UILayoutTest_BackGroundImage);
7070

71-
void printCheckBoxResources(cocos2d::Ref* sender);
71+
void printWidgetResources(cocos2d::Ref* sender);
7272
protected:
7373
cocos2d::ui::Layout* _layout;
7474
};

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool UILoadingBarTest_Left::init()
8383

8484
TTFConfig ttfConfig("fonts/arial.ttf", 15);
8585
auto label1 = Label::createWithTTF(ttfConfig, "Print Resources");
86-
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UILoadingBarTest_Left::printCheckBoxResources, this));
86+
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UILoadingBarTest_Left::printWidgetResources, this));
8787
item1->setPosition(Vec2(VisibleRect::left().x + 60, VisibleRect::bottom().y + item1->getContentSize().height * 3));
8888
auto pMenu1 = Menu::create(item1, nullptr);
8989
pMenu1->setPosition(Vec2(0, 0));
@@ -107,7 +107,7 @@ void UILoadingBarTest_Left::update(float delta)
107107
loadingBarCopy->setPercent(_count);
108108
}
109109

110-
void UILoadingBarTest_Left::printCheckBoxResources(cocos2d::Ref* sender)
110+
void UILoadingBarTest_Left::printWidgetResources(cocos2d::Ref* sender)
111111
{
112112
cocos2d::ResouceData textureFile = _loadingBar->getRenderFile();
113113
CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type);

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UILoadingBarTest_Left : public UIScene
3838
~UILoadingBarTest_Left();
3939
virtual bool init() override;
4040
void update(float delta)override;
41-
void printCheckBoxResources(cocos2d::Ref* sender);
41+
void printWidgetResources(cocos2d::Ref* sender);
4242

4343
protected:
4444
int _count;

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ bool UISliderTest::init()
5757

5858
TTFConfig ttfConfig("fonts/arial.ttf", 15);
5959
auto label1 = Label::createWithTTF(ttfConfig, "Print Resources");
60-
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UISliderTest::printCheckBoxResources, this));
60+
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UISliderTest::printWidgetResources, this));
6161
item1->setPosition(Vec2(VisibleRect::left().x + 60, VisibleRect::bottom().y + item1->getContentSize().height * 3));
6262
auto pMenu1 = Menu::create(item1, nullptr);
6363
pMenu1->setPosition(Vec2(0, 0));
@@ -78,7 +78,7 @@ void UISliderTest::sliderEvent(Ref *pSender, Slider::EventType type)
7878
_displayValueLabel->setString(StringUtils::format("Percent %f", 10000.0 * percent / maxPercent));
7979
}
8080
}
81-
void UISliderTest::printCheckBoxResources(cocos2d::Ref* sender)
81+
void UISliderTest::printWidgetResources(cocos2d::Ref* sender)
8282
{
8383
cocos2d::ResouceData textureFile = _slider->getBackFile();
8484
CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type);

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UISliderTest : public UIScene
3838
~UISliderTest();
3939
virtual bool init() override;
4040
void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type);
41-
void printCheckBoxResources(cocos2d::Ref* sender);
41+
void printWidgetResources(cocos2d::Ref* sender);
4242

4343
protected:
4444
cocos2d::ui::TextBMFont* _displayValueLabel;

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool UITextAtlasTest::init()
3838

3939
TTFConfig ttfConfig("fonts/arial.ttf", 15);
4040
auto label1 = Label::createWithTTF(ttfConfig, "Print Resources");
41-
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UITextAtlasTest::printCheckBoxResources, this));
41+
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UITextAtlasTest::printWidgetResources, this));
4242
item1->setPosition(Vec2(VisibleRect::left().x + 60, VisibleRect::bottom().y + item1->getContentSize().height * 3));
4343
auto pMenu1 = Menu::create(item1, nullptr);
4444
pMenu1->setPosition(Vec2(0, 0));
@@ -47,7 +47,7 @@ bool UITextAtlasTest::init()
4747
}
4848
return false;
4949
}
50-
void UITextAtlasTest::printCheckBoxResources(cocos2d::Ref* sender)
50+
void UITextAtlasTest::printWidgetResources(cocos2d::Ref* sender)
5151
{
5252
cocos2d::ResouceData textureFile = _textAtlas->getRenderFile();
5353
CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type);

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class UITextAtlasTest : public UIScene
1313
CREATE_FUNC(UITextAtlasTest);
1414

1515
virtual bool init() override;
16-
void printCheckBoxResources(cocos2d::Ref* sender);
16+
void printWidgetResources(cocos2d::Ref* sender);
1717
protected:
1818
cocos2d::ui::TextAtlas* _textAtlas;
1919
};

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ bool UITextBMFontTest::init()
2929

3030
TTFConfig ttfConfig("fonts/arial.ttf", 15);
3131
auto label1 = Label::createWithTTF(ttfConfig, "Print Resources");
32-
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UITextBMFontTest::printCheckBoxResources, this));
32+
auto item1 = MenuItemLabel::create(label1, CC_CALLBACK_1(UITextBMFontTest::printWidgetResources, this));
3333
item1->setPosition(Vec2(VisibleRect::left().x + 60, VisibleRect::bottom().y + item1->getContentSize().height * 3));
3434
auto pMenu1 = Menu::create(item1, nullptr);
3535
pMenu1->setPosition(Vec2(0, 0));
@@ -39,7 +39,7 @@ bool UITextBMFontTest::init()
3939
}
4040
return false;
4141
}
42-
void UITextBMFontTest::printCheckBoxResources(cocos2d::Ref* sender)
42+
void UITextBMFontTest::printWidgetResources(cocos2d::Ref* sender)
4343
{
4444
cocos2d::ResouceData textureFile = _textBMFont->getRenderFile();
4545
CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type);

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class UITextBMFontTest : public UIScene
3535
CREATE_FUNC(UITextBMFontTest)
3636

3737
virtual bool init() override;
38-
void printCheckBoxResources(cocos2d::Ref* sender);
38+
void printWidgetResources(cocos2d::Ref* sender);
3939
protected:
4040
cocos2d::ui::TextBMFont* _textBMFont;
4141
};

0 commit comments

Comments
 (0)