23 using namespace kome::objects;
28 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
29 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
34 #define HISTORY_COUNT 9
35 #define MRU_SECTION "MRU"
84 if( sample !=
NULL ) {
107 for(
int i = 0; i < (int)
m_samples.size(); i++ ) {
126 for(
unsigned int i = 0; i < HISTORY_COUNT; i++ ) {
127 std::string name = FMT(
"File%d", ( i + 1 ) );
149 for(
unsigned int i = 0; i <
m_fileHistory.size() && idx < 0; i++ ) {
170 std::string name = FMT(
"File%d", ( i + 1 ) );
182 std::vector< std::string > history;
195 for(
unsigned int i = 0; i < history.size(); i++ ) {
196 if( history[ i ].compare( p ) != 0 ) {
241 for(
unsigned int i = 0; i < HISTORY_COUNT && loop; i++ ) {
242 std::string name = FMT(
"File%d", ( i + 1 ) );
243 std::string path = ini->
getString( MRU_SECTION, name.c_str(),
"" );
257 if( sample ==
NULL ) {
271 std::vector< DataGroupNode* > groups;
276 if( sample !=
NULL && sample == (*it).first ){
282 for(
int i = 0; i < (int)groups.size(); i++ ) {
347 std::vector< Sample* > strTmp;
351 for(
unsigned int i=0; i < strTmp.size(); i++ ){
interfaces of ActiveObjectsManager class
group of spectrum management class
static MsppManager & getInstance()
gets MsppManager object (This is the only object.)
void getDataSet(DataSet *dataSet)
gets spectra that contains this group. (getSpectrum method cannot get spectra that belong to child gr...
interfaces of Chromatogram class
void removeOpenSpectra(Spectrum *spec)
on closed spectrum canvas ( remove spectrum )
virtual void onCloseSample(Sample *sample, const bool deleting)
This method is called when a sample is closed. (override method)
sample information management class
std::vector< Sample * > m_samples
std::map< Sample *, std::string > m_tagNameMap
std::vector< Sample * > m_tmpSamples
virtual void onOpenSample(Sample *sample)
This method is called when a sample is opened. (override method)
IniFile * getIniFile()
gets ini file
static ActiveObjectsManager & getInstance()
get active object manager object (This is the only object.)
active object management class
std::vector< Spectrum * > getOpenSpectra()
const char * getString(const char *section, const char *key, const char *defaultValue)
gets string value
interfaces of SampleSet class
ActiveObjectsManager()
constructor
virtual void removeChromatogram(Chromatogram *chrom)
removes chromatogram
interfaces of Spectrum class
void removeHistoryFile(const char *path)
removes history file
interfaces of DataGroupNode class
interfaces of Sample class
Chromatogram * getChromatogram(const unsigned int index)
gets chroamtogram
interfaces of GraphInfo class
unsigned int getNumberOfOpenedSamples()
gets the number of opened samples
void clearFileHistory()
clears file history
void setActiveSample(Sample *sample)
sets the active sample
void readHistoryFromIni()
reads history files from ini file
std::vector< Spectrum * > m_openSpectra
void addOpenSpectra(Spectrum *spec)
Get Open spectra.
void addTabSample(Sample *sample)
adds opened sample
std::vector< std::string > m_fileHistory
unsigned int getNumberOfHistoryFiles()
gets the number of history files
unsigned int getNumberOfChromatograms()
gets the number of chromatograms
void setTabSample()
initializes the array of opened samples
std::vector< Sample * > getTabSamples()
gets the array of opened samples
DataSet * getFilteredDataSet(Sample *sample)
gets filtered data set
bool isAutoCreated()
gets auto created flag value
int searchSample(Sample *sample)
searchs sample from array
void setSampleTagName(Sample *sample, const char *name)
sets the sample tag name
DataGroupNode * getRootDataGroupNode()
gets root spectrum group
void delTabSample(Sample *sample)
deletes opened sample
Sample * getActiveSample()
gets the active sample
spectrum information management class
std::string absolutepath(const char *path)
get absolute path
std::map< Sample *, DataSet * > m_filteredDataSetMap
virtual ~ActiveObjectsManager()
destructor
one or more spectra management class
void deleteValue(const char *section, const char *key)
deletes value
ini file management class
Sample * getOpenedSample(const unsigned int idx)
gets opened sample
chromatogram information management class
const char * getHistoryFile(const unsigned int idx)
gets history file
const char * getSampleTagName(Sample *sample)
gets the sample tag name
void addHistoryFile(const char *path)
adds history file
void setString(const char *section, const char *key, const char *value)
sets string value