1.1 Binary file demos/vym-projectplan.vym has changed
2.1 --- a/exports.cpp Tue Jun 19 14:20:29 2007 +0000
2.2 +++ b/exports.cpp Tue Jun 19 14:20:29 2007 +0000
2.3 @@ -18,6 +18,7 @@
2.4 if (!tmpDir.exists() || !ok)
2.5 QMessageBox::critical( 0, QObject::tr( "Error" ),
2.6 QObject::tr("Couldn't access temporary directory\n"));
2.7 + cancelFlag=false;
2.8 }
2.9
2.10 ExportBase::~ExportBase()
2.11 @@ -36,6 +37,11 @@
2.12 outputFile=p;
2.13 }
2.14
2.15 +QString ExportBase::getFile ()
2.16 +{
2.17 + return outputFile;
2.18 +}
2.19 +
2.20 void ExportBase::setMapCenter(MapCenterObj *mc)
2.21 {
2.22 mapCenter=mc;
2.23 @@ -81,18 +87,24 @@
2.24 // save
2.25 break;;
2.26 case QMessageBox::Cancel:
2.27 - // return, do nothing
2.28 + cancelFlag=true;
2.29 return false;
2.30 break;
2.31 }
2.32 }
2.33 outputFile=fd->selectedFile();
2.34 + cancelFlag=false;
2.35 return true;
2.36 }
2.37 }
2.38 return false;
2.39 }
2.40
2.41 +bool ExportBase::canceled()
2.42 +{
2.43 + return cancelFlag;
2.44 +}
2.45 +
2.46 QString ExportBase::getSectionString(BranchObj *bostart)
2.47 {
2.48 // Make prefix like "2.5.3" for "bo:2,bo:5,bo:3"
2.49 @@ -112,6 +124,12 @@
2.50 }
2.51
2.52 ////////////////////////////////////////////////////////////////////////
2.53 +ExportASCII::ExportASCII()
2.54 +{
2.55 + filter="TXT (*.txt)";
2.56 + caption=vymName+ " -" +QObject::tr("Export as ASCII")+" "+QObject::tr("(still experimental)");
2.57 +}
2.58 +
2.59 void ExportASCII::doExport()
2.60 {
2.61 QFile file (outputFile);
2.62 @@ -178,7 +196,7 @@
2.63 // Main loop over all branches
2.64 QString s;
2.65 QString actIndent("");
2.66 - int i,j;
2.67 + int i;
2.68 BranchObj *bo;
2.69 bo=mapCenter->first();
2.70 while (bo)