Skip to content
Snippets Groups Projects
Commit 4dd0c5dd authored by stefan's avatar stefan
Browse files

New SequenceViewer, changed colors of conservation mode 1, fixed painter bug...

New SequenceViewer, changed colors of conservation mode 1, fixed painter bug (multiple times same display mode)

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2351 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 0bb0decb
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ AlignmentViewObject::AlignmentViewObject(const seq::AlignmentHandle& alignment,
//Calculate Conservation Mode 1
for(unsigned int i=0; i<values.size(); i++){
gfx::Color color = gradient_.GetColorAt(values[i]);
conservation_1_[i] = QColor(color.Red()*255,color.Green()*255,color.Blue()*255);
conservation_1_[i] = QColor(color.Red()*255,color.Green()*255,color.Blue()*255,100);
}
//Calculate Conservation Mode 2
......@@ -191,7 +191,7 @@ QVariant AlignmentViewObject::GetData(int row, int column, int role)
void AlignmentViewObject::SetDisplayMode(const QString& mode)
{
if(this->display_modes_.contains(mode)){
if(this->display_modes_.contains(mode) && mode != this->GetCurrentDisplayMode()){
if(mode == conservation_mode_1 || mode == conservation_mode_2){
for(int i=0 ; i<this->GetRowCount(); i++){
BaseRow* row = this->GetRow(i);
......
......@@ -132,7 +132,7 @@ gfx::EntityP& SequenceViewObject::GetGfxObject()
void SequenceViewObject::SetDisplayMode(const QString& mode)
{
if(this->display_modes_.contains(mode)){
if(this->display_modes_.contains(mode) && mode != this->GetCurrentDisplayMode()){
if(mode == properties_mode){
for(int i=0 ; i<this->GetRowCount(); i++){
BaseRow* row = this->GetRow(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment