// gets disk space required
long getSize( InstallationType instType ) const
{
- return ( instType == Binaries ? ( type == "component" ? sizeBinaryTotal + sizeSourcesTotal : sizeBinaryTotal ) :
- ( instType == Sources ? sizeSourcesTotal : sizeSrcBuildTotal ) );
+ return instType == Binaries ? sizeBinaryTotal :
+ instType == Sources ? sizeSourcesTotal :
+ sizeSrcBuildTotal;
}
// gets temporary disk space required
long getTempSize( InstallationType instType ) const
QString getDescription() const { return description; }
// gets product's type
QString getType() const { return type; }
- // returns true if product supports given type
- bool hasType( const QString& tp ) const
- {
- QStringList tl = QStringList::split(",",type);
- return tl.find( tp ) != tl.end();
- }
- // gets default mode
- QString getDefault() const { return ""; }
// returns true if this product needs to pick-up environment
bool pickUpEnvironment() { return pickupEnv; }
void updateAvailableSpace();
// Slot to take result of Fortran libraries checking
void checkFLibResult();
+ // Slot to update 'Size' column for modules and prerequisites
+ void updateSizeColumn();
// <Finish> page buttons slot
void onFinishButton();
QString tmpCreated; // created temporary directory
bool stateChanged; // flag: whether installation type or platform was changed
bool exitConfirmed; // flag: "Exit confirmed"
+ bool rmSrcPrevState; // flag: status of "Remove SRC & TMP files" is changed ?
// Widgets
// --> introduction page
QWidget* introPage; // page itself
QRadioButton* binBtn; // install binaries button
QRadioButton* srcBtn; // install sources button
QRadioButton* srcCompileBtn; // install sources and compile button
- QMyCheckBox* removeSrcBtn; // <Remove sources & tmp files> checkbox
+ QCheckBox* removeSrcBtn; // <Remove sources & tmp files> checkbox
// --> installation platform page
QWidget* platformsPage; // page itself
QButtonGroup* platBtnGrp; // group of platforms for selection