Code-style consistency improvement:

Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh
This commit is contained in:
erwincoumans
2018-09-23 14:17:31 -07:00
parent b73b05e9fb
commit ab8f16961e
1773 changed files with 1081087 additions and 474249 deletions

View File

@@ -7,48 +7,46 @@ using namespace Gwen;
class PanelListPanel : public GUnit
{
public:
GWEN_CONTROL_INLINE( PanelListPanel, GUnit )
public:
GWEN_CONTROL_INLINE(PanelListPanel, GUnit)
{
m_PLP = new Gwen::Controls::PanelListPanel( this );
m_PLP->Dock( Pos::Fill );
m_PLP->SetPadding( Gwen::Padding( 10, 10 ));
m_PLP = new Gwen::Controls::PanelListPanel(this);
m_PLP->Dock(Pos::Fill);
m_PLP->SetPadding(Gwen::Padding(10, 10));
m_PLP->SetVertical();
m_PLP->SetSizeToChildren( false );
m_PLP->SetSizeToChildren(false);
for ( int i = 0; i < 16; i++)
for (int i = 0; i < 16; i++)
{
Gwen::String testName = "TEST" + Utility::ToString( i );
Gwen::Controls::Button* testButton = new Gwen::Controls::Button( m_PLP );
testButton->SetText( testName );
Gwen::String testName = "TEST" + Utility::ToString(i);
Gwen::Controls::Button* testButton = new Gwen::Controls::Button(m_PLP);
testButton->SetText(testName);
}
Gwen::Controls::StatusBar* pStatus = new Gwen::Controls::StatusBar( this );
pStatus->Dock( Pos::Bottom );
Gwen::Controls::StatusBar* pStatus = new Gwen::Controls::StatusBar(this);
pStatus->Dock(Pos::Bottom);
{
Gwen::Controls::Button* pButton = new Gwen::Controls::Button( pStatus );
pButton->SetText( "Horizontal" );
pButton->onPress.Add( this, &PanelListPanel::GoHorizontal );
pStatus->AddControl( pButton, false );
Gwen::Controls::Button* pButton = new Gwen::Controls::Button(pStatus);
pButton->SetText("Horizontal");
pButton->onPress.Add(this, &PanelListPanel::GoHorizontal);
pStatus->AddControl(pButton, false);
}
{
Gwen::Controls::Button* pButton = new Gwen::Controls::Button( pStatus );
pButton->SetText( "Vertical" );
pButton->onPress.Add( this, &PanelListPanel::GoVertical );
pStatus->AddControl( pButton, true );
Gwen::Controls::Button* pButton = new Gwen::Controls::Button(pStatus);
pButton->SetText("Vertical");
pButton->onPress.Add(this, &PanelListPanel::GoVertical);
pStatus->AddControl(pButton, true);
}
}
void GoVertical( Gwen::Controls::Base* pFromPanel )
void GoVertical(Gwen::Controls::Base* pFromPanel)
{
m_PLP->SetVertical();
}
void GoHorizontal( Gwen::Controls::Base* pFromPanel )
void GoHorizontal(Gwen::Controls::Base* pFromPanel)
{
m_PLP->SetHorizontal();
}
@@ -56,6 +54,4 @@ class PanelListPanel : public GUnit
Gwen::Controls::PanelListPanel* m_PLP;
};
DEFINE_UNIT_TEST( PanelListPanel, L"PanelListPanel" );
DEFINE_UNIT_TEST(PanelListPanel, L"PanelListPanel");