1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
#include "currents.h"
#include "globals.h"
#include "exprnode.h"
#include "utility.h"
Currents::~Currents()
{
// for( unsigned int n = 0; n < maskv.size(); n++ )
// delete c_maskv[n];
}
void Currents::save()
{
c_cCategory = cCategory;
c_cPath = cPath;
c_aPath = aPath;
c_cFile = cFile;
c_selectionv = selectionv;
c_skippedCat = skippedCat;
c_selectionentered = selectionentered;
c_maskv = maskv;
c_masksv = masksv;
c_highlight = highlight;
// c_argCat = argCat;
c_argv = argv;
if( cCategory )
fullpath = fullPath( cPath, cCategory );
}
void Currents::load()
{
cCategory = c_cCategory;
load_nocat();
}
void Currents::load_nosel()
{
load_nocat();
selectionentered = 0;
}
void Currents::load_nocat()
{
cPath = c_cPath;
aPath = c_aPath;
cFile = c_cFile;
selectionv = c_selectionv;
skippedCat = c_skippedCat;
selectionentered = c_selectionentered;
maskv = c_maskv;
masksv = c_masksv;
argv = c_argv;
// argCat = c_argCat;
if( highlight != -1 )
highlight = c_highlight;
}
int Currents::changed()
{
return( ( cCategory != c_cCategory ) ||
( cFile != c_cFile ) ||
( cPath != c_cPath ) ||
( selectionv != c_selectionv ) ||
( skippedCat != c_skippedCat ) ||
( selectionentered != c_selectionentered ) ||
( maskv != c_maskv ) ||
( masksv != c_masksv ) ||
// ( argCat != c_argCat ) ||
( argv != c_argv ) );
}
|