casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes
casa::ColorSummaryWidget Class Reference

#include <ColorSummaryWidget.qo.h>

List of all members.

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.
void addColorFit ()
void addColorFitSummary ()
void channelLineColorChanged ()
void molecularLineColorChanged ()
void zoomRectColorChanged ()
void initialGaussianEstimateColorChanged ()
void removeColorProfile ()
 Methods to remove colors in various categories.
void removeColorFit ()
void removeColorFitSummary ()
void colorSchemeChanged ()
 User changed to a different color scheme (traditional, alternative, custom, etc)
void reject ()
 Stores any changes to the colors used by the application before closing the dialog.
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 106 of file ColorSummaryWidget.qo.h.

Enumerator:
TRADITIONAL 
ALTERNATIVE 
CUSTOM 

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


Constructor & Destructor Documentation


Member Function Documentation

void casa::ColorSummaryWidget::accept ( ) [private, slot]
void casa::ColorSummaryWidget::addColor ( QListWidget *  list) [private]
void casa::ColorSummaryWidget::addColorFit ( ) [private, slot]
void casa::ColorSummaryWidget::addColorListItem ( QListWidget *  list,
const QColor &  listColor 
) [private]

Methods to add colors in various categories.

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

void casa::ColorSummaryWidget::copyViewList ( QListWidget *  listWidget,
QList< QString > &  canvasList 
) [private]
void casa::ColorSummaryWidget::persistColorList ( QSettings &  settings,
QListWidget *  list,
const QString &  baseStr,
const QString &  countStr 
) [private]
void casa::ColorSummaryWidget::populateColorList ( const QList< QString > &  colors,
QListWidget *  list 
) [private]
void casa::ColorSummaryWidget::readCustomColor ( QSettings &  settings,
const QString &  countKey,
const QString &  baseLookup,
QList< QString > &  list 
) [private]
void casa::ColorSummaryWidget::reject ( ) [private, slot]

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 ( ) [private, slot]

Methods to remove colors in various categories.

void casa::ColorSummaryWidget::setLabelColor ( QLabel *  label,
QString  colorName 
) [private]

Member Data Documentation

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

const QString casa::ColorSummaryWidget::CHANNEL_LINE_COLOR [static, private]

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

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

const QString casa::ColorSummaryWidget::COLOR_SCHEME_PREFERENCE [static, private]

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

const QString casa::ColorSummaryWidget::CUSTOM_FIT_COLOR [static, private]

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

const QString casa::ColorSummaryWidget::CUSTOM_FIT_COLOR_COUNT [static, private]

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

const QString casa::ColorSummaryWidget::CUSTOM_PROFILE_COLOR [static, private]

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

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

const QString casa::ColorSummaryWidget::CUSTOM_SUMMARY_COLOR [static, private]

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

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

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

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

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

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

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

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

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

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

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

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

const QString casa::ColorSummaryWidget::MOLECULAR_LINE_COLOR [static, private]

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

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

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

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

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

Ui::ColorSummaryWidget casa::ColorSummaryWidget::ui [private]

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

const QString casa::ColorSummaryWidget::ZOOM_RECT_COLOR [static, private]

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

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


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