|
From: CVS C. to T. <the...@li...> - 2011-01-27 21:42:39
|
Revision: 618
http://themis.svn.sourceforge.net/themis/?rev=618&view=rev
Author: mark_hellegers
Date: 2011-01-27 21:42:33 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
Cleaned up the style.
Modified Paths:
--------------
trunk/themis/framework/ThemisTabView.cpp
Modified: trunk/themis/framework/ThemisTabView.cpp
===================================================================
--- trunk/themis/framework/ThemisTabView.cpp 2011-01-16 21:43:37 UTC (rev 617)
+++ trunk/themis/framework/ThemisTabView.cpp 2011-01-27 21:42:33 UTC (rev 618)
@@ -744,45 +744,37 @@
fake_single_view = true;
}
-void
-ThemisTabView::SetNavButtonsByTabHistory()
-{
+void ThemisTabView::SetNavButtonsByTabHistory() {
// printf( "ThemisTabView::SetNavButtonsByTabHistory()\n" );
- ThemisTab* tab = ( ThemisTab* )TabAt( Selection() );
+ ThemisTab* tab = (ThemisTab*)TabAt(Selection());
- ThemisNavView* nv = ( ( Win* )Window() )->GetNavView();
+ ThemisNavView* nv = ((Win*)Window())->GetNavView();
-// printf( "CurrentPosition: %d\n", tab->GetHistory()->GetCurrentPosition() );
+// printf("CurrentPosition: %d\n", tab->GetHistory()->GetCurrentPosition());
tab->GetHistory()->PrintHistory();
- if( tab->GetHistory()->GetCurrentPosition() == 0 )
- {
- if( tab->GetHistory()->GetEntryCount() > 1 )
- {
-// printf( "TABVIEW: enabling back, disabling fwd button if needed.\n" );
- nv->buttons[0]->SetMode( 0 );
- nv->buttons[1]->SetMode( 3 );
+ if (tab->GetHistory()->GetCurrentPosition() == 0) {
+ if (tab->GetHistory()->GetEntryCount() > 1) {
+// printf("TABVIEW: enabling back, disabling fwd button if needed.\n");
+ nv->buttons[0]->SetMode(0);
+ nv->buttons[1]->SetMode(3);
}
- else
- {
+ else {
// printf( "TABVIEW: only one ( or no )history item. disabling back and fwd if needed.\n" );
- nv->buttons[0]->SetMode( 3 );
- nv->buttons[1]->SetMode( 3 );
+ nv->buttons[0]->SetMode(3);
+ nv->buttons[1]->SetMode(3);
}
}
- else
- {
- if( tab->GetHistory()->GetCurrentPosition() == ( tab->GetHistory()->GetEntryCount() - 1 ) )
- {
-// printf( "TABVIEW: at history end. disable back, enable fwd if needed.\n" );
- nv->buttons[0]->SetMode( 3 );
- nv->buttons[1]->SetMode( 0 );
+ else {
+ if (tab->GetHistory()->GetCurrentPosition() == (tab->GetHistory()->GetEntryCount() - 1)) {
+// printf("TABVIEW: at history end. disable back, enable fwd if needed.\n");
+ nv->buttons[0]->SetMode(3);
+ nv->buttons[1]->SetMode(0);
}
- else
- {
-// printf( "TABVIEW: in middle of history. enablind back and fwd if needed.\n" );
- nv->buttons[0]->SetMode( 0 );
- nv->buttons[1]->SetMode( 0 );
+ else {
+// printf("TABVIEW: in middle of history. enabling back and fwd if needed.\n");
+ nv->buttons[0]->SetMode(0);
+ nv->buttons[1]->SetMode(0);
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|