Author: sh-sh-sh
Date: Wed Jun 11 19:22:33 2008
New Revision: 48246
URL: http://svn.opensuse.org/viewcvs/yast?rev=48246&view=rev
Log:
whitespace + comments
Modified:
trunk/ncurses/src/NCurses.cc
trunk/ncurses/src/YNCursesUI.cc
Modified: trunk/ncurses/src/NCurses.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCurses.cc?rev=48246&r1=48245&r2=48246&view=diff
==============================================================================
--- trunk/ncurses/src/NCurses.cc (original)
+++ trunk/ncurses/src/NCurses.cc Wed Jun 11 19:22:33 2008
@@ -314,18 +314,14 @@
yuiMilestone() << form( "screen size %d x %d\n", lines(), cols() );
myself = this;
-
styleset = new NCstyle( envTerm );
-
stdpan = new NCursesPanel();
-
stdpan->bkgd( style()( NCstyle::AppText ) );
if ( title_line() )
init_title();
init_screen();
-
yuiMilestone() << "NCurses ready" << endl;
}
Modified: trunk/ncurses/src/YNCursesUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/YNCursesUI.cc?rev=48246&r1=48245&r2=48246&view=diff
==============================================================================
--- trunk/ncurses/src/YNCursesUI.cc (original)
+++ trunk/ncurses/src/YNCursesUI.cc Wed Jun 11 19:22:33 2008
@@ -31,8 +31,6 @@
#define YUILogComponent "ncurses"
#include
-//#include "NCPackageSelectorStart.h"
-
#define YUILogComponent "ncurses"
#include
@@ -43,6 +41,8 @@
extern string language2encoding( string lang );
+YNCursesUI * YNCursesUI::_ui = 0;
+
YUI * createUI( bool withThreads )
{
@@ -95,6 +95,7 @@
topmostConstructorHasFinished();
}
+
YNCursesUI::~YNCursesUI()
{
//delete left-over dialogs (if any)
@@ -103,8 +104,6 @@
}
-YNCursesUI * YNCursesUI::_ui = 0;
-
YWidgetFactory *
YNCursesUI::createWidgetFactory()
{
@@ -115,7 +114,6 @@
}
-
YOptionalWidgetFactory *
YNCursesUI::createOptionalWidgetFactory()
{
@@ -136,7 +134,6 @@
}
-
void YNCursesUI::idleLoop( int fd_ycp )
{
@@ -188,17 +185,9 @@
}
-
-#define ONCREATE yuiDebug() << endl
-//#define ONCREATE
-
-
-// package selection
-
-
-
-
-// Create the package selector plugin
+/**
+ * Create the package selector plugin
+ **/
NCPackageSelectorPluginStub * YNCursesUI::packageSelectorPlugin()
{
static NCPackageSelectorPluginStub * plugin = 0;
@@ -217,10 +206,6 @@
}
-
-
-// Implementation of UI builtin RunPkgSelection() which
-// has to be called after OpenDialog( `PackageSelector() ).
YEvent * YNCursesUI::runPkgSelection( YWidget * selector )
{
YEvent * event = 0;
@@ -252,7 +237,6 @@
}
-
void YNCursesUI::init_title()
{
// Fetch command line args
@@ -319,7 +303,6 @@
}
-
bool YNCursesUI::want_colors()
{
if ( getenv( "Y2NCURSES_BW" ) != NULL )
@@ -332,10 +315,11 @@
}
-
-// UI::setConsoleFont() is called in Console.ycp.
-// The terminal encoding must be set correctly.
/**
+ * Set the console font, encoding etc.
+ * This is called from Console.ycp.
+ * The terminal encoding must be set correctly.
+ *
* This doesn't belong here, but it is so utterly entangled with member
* variables that are not exported at all (sic!) that it's not really feasible
* to extract the relevant parts.
@@ -428,3 +412,4 @@
Refresh();
}
}
+
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org