Fix LineGroup install & default issues

This commit is contained in:
WandererFan
2017-12-28 11:20:03 -05:00
committed by wmayer
parent 55f050e0f5
commit c548878069
3 changed files with 26 additions and 6 deletions

View File

@@ -54,11 +54,11 @@ LineGroup::~LineGroup()
void LineGroup::init(void)
{
m_name = "";
m_thin = 0.0;
m_graphic = 0.0;
m_thick = 0.0;
m_extra = 0.0;
m_name = "Default";
m_thin = 0.35;
m_graphic = 0.50;
m_thick = 0.70;
m_extra = 1.40;
}
double LineGroup::getWeight(std::string s)
@@ -132,7 +132,7 @@ std::string LineGroup::getRecordFromFile(std::string parmFile, std::string group
std::ifstream inFile;
inFile.open (parmFile, std::ifstream::in);
if(!inFile.is_open()) {
Base::Console().Message( "Cannot open input file: %s\n",parmFile.c_str());
Base::Console().Message( "Cannot open LineGroup file: %s\n",parmFile.c_str());
return record;
}

View File

@@ -43,6 +43,8 @@ public:
void setWeight(std::string s, double weight);
// void setWeight(const char* s, double weight);
void dump(char* title);
std::string getName(void) { return m_name; }
void setName(std::string s) { m_name = s; }
//static support function: split comma separated string of values into vector of numbers
static std::vector<double> split(std::string line);

View File

@@ -23,3 +23,21 @@ INSTALL(
FILES_MATCHING
PATTERN "*.svg*"
)
INSTALL(
DIRECTORY
PAT
DESTINATION
${CMAKE_INSTALL_DATADIR}/Mod/TechDraw
FILES_MATCHING
PATTERN "*.pat*"
)
INSTALL(
DIRECTORY
LineGroup
DESTINATION
${CMAKE_INSTALL_DATADIR}/Mod/TechDraw
FILES_MATCHING
PATTERN "*.csv*"
)