41 #define YUILogComponent "ncurses-pkg" 45 #include "NCPackageSelectorStart.h" 46 #include "NCPushButton.h" 47 #include "NCSpacing.h" 48 #include "NCPkgTable.h" 50 #include "NCPkgStrings.h" 55 #include "YPackageSelector.h" 67 NCPackageSelectorStart::NCPackageSelectorStart( YWidget * parent,
69 YUIDimension dimension )
70 : NCLayoutBox( parent, dimension )
74 setTextdomain(
"ncurses-pkg" );
79 NCPkgTable::NCPkgTableType type;
83 if ( packager->isYouMode() )
86 type = NCPkgTable::T_Patches;
90 if ( packager->isUpdateMode() )
91 type = NCPkgTable::T_Update;
93 type = NCPkgTable::T_Packages;
128 wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
129 YLayoutBox::setSize( newwidth, newheight );
153 if ( packager->isYouMode() )
void showDiskSpace()
Calls the package mananager (updateDu()) and shows the required disk space.
void createPkgLayout(YWidget *parent, NCPkgTable::NCPkgTableType type)
Create layout for the PackageSelector.
void showDownloadSize()
Shows the total download size.
bool handleEvent(const NCursesEvent &event)
Handle the given event.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual ~NCPackageSelectorStart()
Destructor.
bool handleEvent(const NCursesEvent &event)
Pass the event to the handleEvent method of the member variable NCPackageSelector packager...
void showDefaultList()
Fills the package table with packages belonging to the default filter (the filter which is selected w...
bool fillDefaultList()
Fills the default package table.
void createYouLayout(YWidget *parent)
Create layout for the Online Update.
bool showPackageDependencies(bool doit)
Checks and shows the dependencies.