casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
casa::ColorSummaryWidget Class Reference

#include <ColorSummaryWidget.qo.h>

Inheritance diagram for casa::ColorSummaryWidget:

Public Member Functions

 ColorSummaryWidget (QWidget *parent=0)
 
 ~ColorSummaryWidget ()
 
void setColorCanvas (QtCanvas *colorCanvas)
 

Private Types

enum  ColorCategory {
  MAIN_COLOR,
  FIT_COLOR,
  SUMMARY_FIT_COLOR,
  END_COLOR_CATEGORY
}
 
enum  SchemeCategory {
  TRADITIONAL,
  ALTERNATIVE,
  CUSTOM
}
 

Private Slots

void addColorProfile ()
 Methods to add colors in various categories. More...
 
void addColorFit ()
 
void addColorFitSummary ()
 
void channelLineColorChanged ()
 
void molecularLineColorChanged ()
 
void zoomRectColorChanged ()
 
void initialGaussianEstimateColorChanged ()
 
void removeColorProfile ()
 Methods to remove colors in various categories. More...
 
void removeColorFit ()
 
void removeColorFitSummary ()
 
void colorSchemeChanged ()
 User changed to a different color scheme (traditional, alternative, custom, etc) More...
 
void reject ()
 Stores any changes to the colors used by the application before closing the dialog. More...
 
void accept ()
 

Private Member Functions

void addColor (QListWidget *list)
 
void removeColor (QListWidget *list)
 
void initializeColors ()
 
void addColorListItem (QListWidget *list, const QColor &listColor)
 
void readCustomColor (QSettings &settings, const QString &countKey, const QString &baseLookup, QList< QString > &list)
 
void populateColorList (const QList< QString > &colors, QListWidget *list)
 
void copyViewList (QListWidget *listWidget, QList< QString > &canvasList)
 
void copyViewLists ()
 
void initializePresetColors ()
 
void initializeUserColors ()
 
void populateColorLists ()
 
void clearColorLists ()
 
void registerColorChange ()
 
void clearColorChange ()
 
void pixelCanvasColorChange ()
 
void persistColorList (QSettings &settings, QListWidget *list, const QString &baseStr, const QString &countStr)
 
void persist ()
 
void setLabelColor (QLabel *label, QString colorName)
 

Private Attributes

Ui::ColorSummaryWidget ui
 
QtCanvaspixelCanvas
 
QList< QString > mainCurveColorList
 
QList< QString > fitCurveColorList
 
QList< QString > fitSummaryCurveColorList
 
QList< QString > traditionalCurveColorList
 
QList< QString > customMainList
 
QList< QString > customFitList
 
QList< QString > customFitSummaryList
 
QColor channelLineColor
 
QColor zoomRectColor
 
QColor molecularLineColor
 
QColor initialGaussianEstimateColor
 
bool traditionalChange
 
bool alternativeChange
 

Static Private Attributes

static const QString CUSTOM_PROFILE_COLOR
 
static const QString CUSTOM_FIT_COLOR
 
static const QString CUSTOM_SUMMARY_COLOR
 
static const QString CUSTOM_PROFILE_COLOR_COUNT
 
static const QString CUSTOM_FIT_COLOR_COUNT
 
static const QString CUSTOM_SUMMARY_COLOR_COUNT
 
static const QString COLOR_SCHEME_PREFERENCE
 
static const QString CHANNEL_LINE_COLOR
 
static const QString INITIAL_GAUSSIAN_ESTIMATE_COLOR
 
static const QString MOLECULAR_LINE_COLOR
 
static const QString ZOOM_RECT_COLOR
 

Detailed Description

Definition at line 37 of file ColorSummaryWidget.qo.h.

Member Enumeration Documentation

Enumerator
MAIN_COLOR 
FIT_COLOR 
SUMMARY_FIT_COLOR 
END_COLOR_CATEGORY 

Definition at line 105 of file ColorSummaryWidget.qo.h.

Enumerator
TRADITIONAL 
ALTERNATIVE 
CUSTOM 

Definition at line 106 of file ColorSummaryWidget.qo.h.

Constructor & Destructor Documentation

casa::ColorSummaryWidget::ColorSummaryWidget ( QWidget *  parent = 0)
casa::ColorSummaryWidget::~ColorSummaryWidget ( )

Member Function Documentation

void casa::ColorSummaryWidget::accept ( )
privateslot
void casa::ColorSummaryWidget::addColor ( QListWidget *  list)
private
void casa::ColorSummaryWidget::addColorFit ( )
privateslot
void casa::ColorSummaryWidget::addColorFitSummary ( )
privateslot
void casa::ColorSummaryWidget::addColorListItem ( QListWidget *  list,
const QColor &  listColor 
)
private
void casa::ColorSummaryWidget::addColorProfile ( )
privateslot

Methods to add colors in various categories.

void casa::ColorSummaryWidget::channelLineColorChanged ( )
privateslot
void casa::ColorSummaryWidget::clearColorChange ( )
private
void casa::ColorSummaryWidget::clearColorLists ( )
private
void casa::ColorSummaryWidget::colorSchemeChanged ( )
privateslot

User changed to a different color scheme (traditional, alternative, custom, etc)

void casa::ColorSummaryWidget::copyViewList ( QListWidget *  listWidget,
QList< QString > &  canvasList 
)
private
void casa::ColorSummaryWidget::copyViewLists ( )
private
void casa::ColorSummaryWidget::initialGaussianEstimateColorChanged ( )
privateslot
void casa::ColorSummaryWidget::initializeColors ( )
private
void casa::ColorSummaryWidget::initializePresetColors ( )
private
void casa::ColorSummaryWidget::initializeUserColors ( )
private
void casa::ColorSummaryWidget::molecularLineColorChanged ( )
privateslot
void casa::ColorSummaryWidget::persist ( )
private
void casa::ColorSummaryWidget::persistColorList ( QSettings &  settings,
QListWidget *  list,
const QString &  baseStr,
const QString &  countStr 
)
private
void casa::ColorSummaryWidget::pixelCanvasColorChange ( )
private
void casa::ColorSummaryWidget::populateColorList ( const QList< QString > &  colors,
QListWidget *  list 
)
private
void casa::ColorSummaryWidget::populateColorLists ( )
private
void casa::ColorSummaryWidget::readCustomColor ( QSettings &  settings,
const QString &  countKey,
const QString &  baseLookup,
QList< QString > &  list 
)
private
void casa::ColorSummaryWidget::registerColorChange ( )
private
void casa::ColorSummaryWidget::reject ( )
privateslot

Stores any changes to the colors used by the application before closing the dialog.

void casa::ColorSummaryWidget::removeColor ( QListWidget *  list)
private
void casa::ColorSummaryWidget::removeColorFit ( )
privateslot
void casa::ColorSummaryWidget::removeColorFitSummary ( )
privateslot
void casa::ColorSummaryWidget::removeColorProfile ( )
privateslot

Methods to remove colors in various categories.

void casa::ColorSummaryWidget::setColorCanvas ( QtCanvas colorCanvas)
void casa::ColorSummaryWidget::setLabelColor ( QLabel *  label,
QString  colorName 
)
private
void casa::ColorSummaryWidget::zoomRectColorChanged ( )
privateslot

Member Data Documentation

bool casa::ColorSummaryWidget::alternativeChange
private

Definition at line 121 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::CHANNEL_LINE_COLOR
staticprivate

Definition at line 115 of file ColorSummaryWidget.qo.h.

QColor casa::ColorSummaryWidget::channelLineColor
private

Definition at line 101 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::COLOR_SCHEME_PREFERENCE
staticprivate

Definition at line 114 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::CUSTOM_FIT_COLOR
staticprivate

Definition at line 109 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::CUSTOM_FIT_COLOR_COUNT
staticprivate

Definition at line 112 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::CUSTOM_PROFILE_COLOR
staticprivate

Definition at line 108 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::CUSTOM_PROFILE_COLOR_COUNT
staticprivate

Definition at line 111 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::CUSTOM_SUMMARY_COLOR
staticprivate

Definition at line 110 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::CUSTOM_SUMMARY_COLOR_COUNT
staticprivate

Definition at line 113 of file ColorSummaryWidget.qo.h.

QList<QString> casa::ColorSummaryWidget::customFitList
private

Definition at line 99 of file ColorSummaryWidget.qo.h.

QList<QString> casa::ColorSummaryWidget::customFitSummaryList
private

Definition at line 100 of file ColorSummaryWidget.qo.h.

QList<QString> casa::ColorSummaryWidget::customMainList
private

Definition at line 98 of file ColorSummaryWidget.qo.h.

QList<QString> casa::ColorSummaryWidget::fitCurveColorList
private

Definition at line 95 of file ColorSummaryWidget.qo.h.

QList<QString> casa::ColorSummaryWidget::fitSummaryCurveColorList
private

Definition at line 96 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::INITIAL_GAUSSIAN_ESTIMATE_COLOR
staticprivate

Definition at line 116 of file ColorSummaryWidget.qo.h.

QColor casa::ColorSummaryWidget::initialGaussianEstimateColor
private

Definition at line 104 of file ColorSummaryWidget.qo.h.

QList<QString> casa::ColorSummaryWidget::mainCurveColorList
private

Definition at line 94 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::MOLECULAR_LINE_COLOR
staticprivate

Definition at line 117 of file ColorSummaryWidget.qo.h.

QColor casa::ColorSummaryWidget::molecularLineColor
private

Definition at line 103 of file ColorSummaryWidget.qo.h.

QtCanvas* casa::ColorSummaryWidget::pixelCanvas
private

Definition at line 93 of file ColorSummaryWidget.qo.h.

bool casa::ColorSummaryWidget::traditionalChange
private

Definition at line 120 of file ColorSummaryWidget.qo.h.

QList<QString> casa::ColorSummaryWidget::traditionalCurveColorList
private

Definition at line 97 of file ColorSummaryWidget.qo.h.

Ui::ColorSummaryWidget casa::ColorSummaryWidget::ui
private

Definition at line 92 of file ColorSummaryWidget.qo.h.

const QString casa::ColorSummaryWidget::ZOOM_RECT_COLOR
staticprivate

Definition at line 118 of file ColorSummaryWidget.qo.h.

QColor casa::ColorSummaryWidget::zoomRectColor
private

Definition at line 102 of file ColorSummaryWidget.qo.h.


The documentation for this class was generated from the following file: