COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
GraphicalArrayRestrictedList Class Reference

#include <GraphicalArrayRestrictedList.hpp>

Inherits GraphicalValue.

Public Member Functions

 GraphicalArrayRestrictedList (boost::shared_ptr< common::Option > opt=boost::shared_ptr< common::Option >(), QWidget *parent=0)
 
 ~GraphicalArrayRestrictedList ()
 
void set_restricted_list (const QStringList &list)
 
virtual bool set_value (const QVariant &value)
 
virtual QVariant value () const
 
- Public Member Functions inherited from GraphicalValue
 GraphicalValue (QWidget *parent=0)
 
 ~GraphicalValue ()
 
QString value_string () const
 
QVariant original_value () const
 
QString original_value_string () const
 
bool is_modified () const
 
void commit ()
 
QString separator () const
 

Private Slots

void bt_add_clicked ()
 
void bt_remove_clicked ()
 

Private Member Functions

template<typename TYPE >
void vect_to_stringlist (const std::vector< boost::any > &vect, QStringList &list) const
 
template<typename TYPE >
void any_to_stringlist (const boost::any &value, QStringList &list) const
 

Private Attributes

QListView * m_allowed_list_view
 
QListView * m_selected_list_view
 
QStringListModel * m_allowed_model
 
QStringListModel * m_selected_model
 
QGroupBox * m_group_box
 
QGridLayout * m_box_layout
 
QVBoxLayout * m_buttons_layout
 
QPushButton * m_bt_add
 
QPushButton * m_bt_remove
 

Additional Inherited Members

- Signals inherited from GraphicalValue
void value_changed ()
 
- Static Public Member Functions inherited from GraphicalValue
static GraphicalValuecreate_from_option (boost::shared_ptr< common::Option > option, QWidget *parent=nullptr)
 
- Protected Attributes inherited from GraphicalValue
QVariant m_original_value
 
QHBoxLayout * m_layout
 
bool m_committing
 
QString m_separator
 

Detailed Description

Definition at line 30 of file GraphicalArrayRestrictedList.hpp.

Constructor & Destructor Documentation

GraphicalArrayRestrictedList ( boost::shared_ptr< common::Option opt = boost::shared_ptr< common::Option >(),
QWidget *  parent = 0 
)

Definition at line 38 of file GraphicalArrayRestrictedList.cpp.

Definition at line 123 of file GraphicalArrayRestrictedList.cpp.

Member Function Documentation

void any_to_stringlist ( const boost::any &  value,
QStringList &  list 
) const
private

Definition at line 244 of file GraphicalArrayRestrictedList.cpp.

void bt_add_clicked ( )
privateslot

Definition at line 166 of file GraphicalArrayRestrictedList.cpp.

void bt_remove_clicked ( )
privateslot

Definition at line 191 of file GraphicalArrayRestrictedList.cpp.

void set_restricted_list ( const QStringList &  list)

Definition at line 134 of file GraphicalArrayRestrictedList.cpp.

bool set_value ( const QVariant &  value)
virtual

Implements GraphicalValue.

Definition at line 142 of file GraphicalArrayRestrictedList.cpp.

QVariant value ( ) const
virtual

Implements GraphicalValue.

Definition at line 158 of file GraphicalArrayRestrictedList.cpp.

void vect_to_stringlist ( const std::vector< boost::any > &  vect,
QStringList &  list 
) const
private

Definition at line 220 of file GraphicalArrayRestrictedList.cpp.

Member Data Documentation

QListView* m_allowed_list_view
private

Definition at line 55 of file GraphicalArrayRestrictedList.hpp.

QStringListModel* m_allowed_model
private

Definition at line 59 of file GraphicalArrayRestrictedList.hpp.

QGridLayout* m_box_layout
private

Definition at line 65 of file GraphicalArrayRestrictedList.hpp.

QPushButton* m_bt_add
private

Definition at line 69 of file GraphicalArrayRestrictedList.hpp.

QPushButton* m_bt_remove
private

Definition at line 71 of file GraphicalArrayRestrictedList.hpp.

QVBoxLayout* m_buttons_layout
private

Definition at line 67 of file GraphicalArrayRestrictedList.hpp.

QGroupBox* m_group_box
private

Definition at line 63 of file GraphicalArrayRestrictedList.hpp.

QListView* m_selected_list_view
private

Definition at line 57 of file GraphicalArrayRestrictedList.hpp.

QStringListModel* m_selected_model
private

Definition at line 61 of file GraphicalArrayRestrictedList.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin