Fix LineGroup install & default issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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*"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user