BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Attributes | List of all members
BALL::VIEW::ColorTable Class Reference

#include <BALL/VIEW/WIDGETS/colorTable.h>

Inheritance diagram for BALL::VIEW::ColorTable:
QTableWidget BALL::VIEW::PreferencesEntry::ExtendedPreferencesObject

Public Member Functions

 ColorTable (QWidget *parent=0, const char *name=0)
void setNamesTitle (const String &string)
String getNamesTitle () const
void setContent (const vector< String > &names, const vector< ColorRGBA > &colors)
void setColors (const vector< ColorRGBA > &colors)
const vector< ColorRGBA > & getColors () const
const vector< String > & getNames () const
virtual bool getValue (String &) const
 Overload this in derived classes!
virtual bool setValue (const String &value)
 Overload this in derived classes!
- Public Member Functions inherited from BALL::VIEW::PreferencesEntry::ExtendedPreferencesObject
 ExtendedPreferencesObject ()
virtual ~ExtendedPreferencesObject ()

Private Slots

void beginEdit (int row, int col)
virtual void mousePressEvent (QMouseEvent *event)

Private Attributes

vector< ColorRGBAcolors_
vector< Stringnames_
bool setting_content_

Detailed Description

Class for storing colors in a GUI table

Definition at line 23 of file colorTable.h.

Constructor & Destructor Documentation

BALL::VIEW::ColorTable::ColorTable ( QWidget parent = 0,
const char *  name = 0 
)

Member Function Documentation

void BALL::VIEW::ColorTable::beginEdit ( int  row,
int  col 
)
privateslot
const vector<ColorRGBA>& BALL::VIEW::ColorTable::getColors ( ) const
inline

Definition at line 40 of file colorTable.h.

const vector<String>& BALL::VIEW::ColorTable::getNames ( ) const
inline

Definition at line 43 of file colorTable.h.

String BALL::VIEW::ColorTable::getNamesTitle ( ) const
virtual bool BALL::VIEW::ColorTable::getValue ( String ) const
virtual

Overload this in derived classes!

Implements BALL::VIEW::PreferencesEntry::ExtendedPreferencesObject.

virtual void BALL::VIEW::ColorTable::mousePressEvent ( QMouseEvent event)
privatevirtualslot
void BALL::VIEW::ColorTable::setColors ( const vector< ColorRGBA > &  colors)
void BALL::VIEW::ColorTable::setContent ( const vector< String > &  names,
const vector< ColorRGBA > &  colors 
)
void BALL::VIEW::ColorTable::setNamesTitle ( const String string)
virtual bool BALL::VIEW::ColorTable::setValue ( const String )
virtual

Overload this in derived classes!

Implements BALL::VIEW::PreferencesEntry::ExtendedPreferencesObject.

Member Data Documentation

vector<ColorRGBA> BALL::VIEW::ColorTable::colors_
private

Definition at line 59 of file colorTable.h.

vector<String> BALL::VIEW::ColorTable::names_
private

Definition at line 60 of file colorTable.h.

bool BALL::VIEW::ColorTable::setting_content_
private

Definition at line 61 of file colorTable.h.