35 #include <QColorDialog>
36 #include <QInputDialog>
57 vtkMySQLDatabase *iDatabaseConnector)
61 QColorDialog::ShowAlphaChannel);
75 if ( !this->CheckEntityAlreadyExists< GoDBColorRow >(this->
m_NewColor) )
91 this->ValidateNameTemplate< GoDBColorRow >(this->
m_NewColor, iName,
106 SIGNAL( ListEntitiesToDelete(std::vector< std::string > ) ),
112 return Dialog->
exec();
118 std::list< QGoDBColorManager::ItemColorComboboxData >
121 std::list< ItemColorComboboxData > oInfoColors;
123 iDatabaseConnector,
"*",
"color",
"name");
125 while ( i < ResultsQuery.size() )
128 temp.first = ResultsQuery[i + 1];
129 QColor tempColor( atoi( ResultsQuery[i + 2].c_str() ), atoi( ResultsQuery[i + 3].c_str() ),
130 atoi( ResultsQuery[i + 4].c_str() ), atoi( ResultsQuery[i + 5].c_str() ) );
131 temp.second = tempColor;
132 oInfoColors.push_back(temp);