Commit 685da7f2 authored by hungdangquoc's avatar hungdangquoc
Browse files

[ADD #132] default state for single-selector-content

parent d738a486
......@@ -40,3 +40,8 @@ std::string WDatatype::getString()
{
return "string";
}
std::string WDatatype::getDefault()
{
return "default";
}
\ No newline at end of file
......@@ -50,6 +50,12 @@ public:
* \return datatype string as string
*/
static std::string getString();
/**
* getter
* \return default as string
*/
static std::string getDefault();
};
#endif // WDATATYPE_H
......@@ -161,6 +161,11 @@ std::vector< std::string > WProtonData::getHeaderFromType( std::string typeName
std::vector< std::string > columnTypes = *m_columnTypes;
std::vector< std::string > filterHeader;
if( typeName == WDatatype::getDefault() )
{
return header;
}
for( size_t i = 0; i < columnTypes.size(); i++)
{
if( columnTypes[i] == typeName )
......
......@@ -86,7 +86,7 @@ WSingleSelectorName::NameDescriptionSearchTyp WSingleSelectorName::getZwithDescr
getZ(),
"Choose the column which should be used to determine the z coordinate.",
"posZ",
WDatatype::getDouble() );
WDatatype::getDefault() );
}
WSingleSelectorName::NameDescriptionSearchTyp WSingleSelectorName::getPDGwithDescription()
......
......@@ -35,9 +35,12 @@
#include "core/common/WItemSelectionItemTyped.h"
#include "../WDatatype.h"
#include "../WProtonData.h"
#include "../WSingleSelectorName.h"
/**
* Creates, updates and handles the column properties.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment