[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/karchiver
From: Eric Coquelle <eric.coquelle () gmail ! com>
Date: 2006-09-11 22:02:26
Message-ID: 1158012146.053238.7322.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 583276 by coquelle:
Added a Wizard to create Sfx archives. Also added a new sfx module (7z's sfx for Windows)
M +14 -3 cscript.cpp
M +6 -1 cscript.h
A cwizardsfx.cpp [License: GPL (v2+)]
A cwizardsfx.h [License: GPL (v2+)]
--- trunk/kdenonbeta/karchiver/cscript.cpp #583275:583276
@@ -86,10 +86,10 @@
return WIZ_CONVERSION;
}
}
- else if(wizmainpage.getTypeOperation()==-1)
+ else if(wizmainpage.getTypeOperation()==3)
{
//It's a split
- CWizardCutt opcutt;
+ CWizardCutt opcutt;
if(opcutt.exec() == QDialog::Accepted )
{
cuttsize=opcutt.getCuttSize();
@@ -97,7 +97,18 @@
return WIZ_UNCUTT;
}
}
- }
+ else if(wizmainpage.getTypeOperation()==4)
+ {
+ //It's a sfx
+ CWizardSfx opsfx;
+ if(opsfx.exec() == QDialog::Accepted )
+ {
+ sfxtype=opsfx.getSfxType();
+ sfxname=opsfx.getSfxName();
+ return WIZ_SFX;
+ }
+ }
+ }
return -1;
}
--- trunk/kdenonbeta/karchiver/cscript.h #583275:583276
@@ -26,6 +26,7 @@
#include "cwizardinstallation.h"
#include "cwizardconversion.h"
#include "cwizardcutt.h"
+#include "cwizardsfx.h"
/**This class runs a serie of wizards and then
execute the appropriates commands: apply a
@@ -51,12 +52,14 @@
QString getDirectoryCutt();
/** Return the size of a block of a huge file */
int getCuttSize();
+ int getSfxArchiveType() {return sfxtype;};
+ QString getSfxArchiveName() {return sfxname;};
protected:
int mainwizardpage();
public:
- enum {WIZ_PATCH, WIZ_INSTALLATION, WIZ_CONVERSION, WIZ_UNCUTT};
+ enum {WIZ_PATCH, WIZ_INSTALLATION, WIZ_CONVERSION, WIZ_UNCUTT, WIZ_SFX};
private:
/*The main wizard window*/
@@ -72,6 +75,8 @@
int targettypeconversion;
QString targetdirectorycutt;
int cuttsize;
+ int sfxtype;
+ QString sfxname;
};
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic