Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as one that does not. Moving it to Base opens possibilities to integrate it better with the rest of FreeCAD.
This commit is contained in:
@@ -58,7 +58,7 @@ FeatureViewAnnotation::~FeatureViewAnnotation()
|
||||
App::DocumentObjectExecReturn* FeatureViewAnnotation::execute(void)
|
||||
{
|
||||
stringstream result, hr, hg, hb;
|
||||
const App::Color& c = TextColor.getValue();
|
||||
const Base::Color& c = TextColor.getValue();
|
||||
hr << hex << setfill('0') << setw(2) << (int)(255.0 * c.r);
|
||||
hg << hex << setfill('0') << setw(2) << (int)(255.0 * c.g);
|
||||
hb << hex << setfill('0') << setw(2) << (int)(255.0 * c.b);
|
||||
|
||||
@@ -153,7 +153,7 @@ App::DocumentObjectExecReturn* FeatureViewSpreadsheet::execute(void)
|
||||
// create the containing group
|
||||
std::string ViewName = Label.getValue();
|
||||
std::stringstream result, hr, hg, hb;
|
||||
const App::Color& c = Color.getValue();
|
||||
const Base::Color& c = Color.getValue();
|
||||
hr << std::hex << std::setfill('0') << std::setw(2) << (int)(255.0 * c.r);
|
||||
hg << std::hex << std::setfill('0') << std::setw(2) << (int)(255.0 * c.g);
|
||||
hb << std::hex << std::setfill('0') << std::setw(2) << (int)(255.0 * c.b);
|
||||
@@ -207,7 +207,7 @@ App::DocumentObjectExecReturn* FeatureViewSpreadsheet::execute(void)
|
||||
std::string textstyle = "";
|
||||
Spreadsheet::Cell* cell = sheet->getCell(address);
|
||||
if (cell) {
|
||||
App::Color f, b;
|
||||
Base::Color f, b;
|
||||
std::set<std::string> st;
|
||||
int colspan, rowspan;
|
||||
if (cell->getBackground(b)) {
|
||||
|
||||
Reference in New Issue
Block a user