OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
CSVWidget::SceneToolRun Class Reference

#include <scenetoolrun.hpp>

Inheritance diagram for CSVWidget::SceneToolRun:
Collaboration diagram for CSVWidget::SceneToolRun:

Signals

void runRequest (const std::string &profile)
 

Public Member Functions

 SceneToolRun (SceneToolbar *parent, const QString &toolTip, const QString &icon, const std::vector< std::string > &profiles)
 
virtual void showPanel (const QPoint &position)
 
virtual void activate ()
 
void removeProfile (const std::string &profile)
 
void addProfile (const std::string &profile)
 
- Public Member Functions inherited from CSVWidget::SceneTool
 SceneTool (SceneToolbar *parent, Type type=Type_TopMode)
 
- Public Member Functions inherited from CSVWidget::PushButton
 PushButton (const QIcon &icon, Type type, const QString &tooltip="", QWidget *parent=0)
 
 PushButton (Type type, const QString &tooltip="", QWidget *parent=0)
 
bool hasKeepOpen () const
 
QString getBaseToolTip () const
 Return tooltip used at construction (without any button-specific modifications) More...
 
Type getType () const
 

Private Slots

void clicked (const QModelIndex &index)
 

Private Member Functions

void adjustToolTips ()
 
void updateIcon ()
 
void updatePanel ()
 

Private Attributes

std::set< std::string > mProfiles
 
std::set< std::string >::iterator mSelected
 
QString mToolTip
 
QFramemPanel
 
QTableWidgetmTable
 

Additional Inherited Members

- Public Types inherited from CSVWidget::PushButton
enum  Type { Type_TopMode, Type_TopAction, Type_Mode, Type_Toggle }
 
- Protected Member Functions inherited from CSVWidget::SceneTool
void mouseReleaseEvent (QMouseEvent *event)
 
- Protected Member Functions inherited from CSVWidget::PushButton
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 

Constructor & Destructor Documentation

CSVWidget::SceneToolRun::SceneToolRun ( SceneToolbar parent,
const QString &  toolTip,
const QString &  icon,
const std::vector< std::string > &  profiles 
)

Here is the call graph for this function:

Member Function Documentation

void CSVWidget::SceneToolRun::activate ( )
virtual

This function will only called for buttons of type Type_TopAction. The default implementation is empty.

Reimplemented from CSVWidget::SceneTool.

void CSVWidget::SceneToolRun::addProfile ( const std::string &  profile)
Attention
This function doe not add the profile to the profile selection panel. This only happens when the panel is re-opened.
Note
Adding profiles that are already listed is a no-op.
void CSVWidget::SceneToolRun::adjustToolTips ( )
private

Here is the caller graph for this function:

void CSVWidget::SceneToolRun::clicked ( const QModelIndex &  index)
privateslot

Here is the caller graph for this function:

void CSVWidget::SceneToolRun::removeProfile ( const std::string &  profile)
Attention
This function does not remove the profile from the profile selection panel.
void CSVWidget::SceneToolRun::runRequest ( const std::string &  profile)
signal
void CSVWidget::SceneToolRun::showPanel ( const QPoint &  position)
virtual

Implements CSVWidget::SceneTool.

void CSVWidget::SceneToolRun::updateIcon ( )
private

Here is the caller graph for this function:

void CSVWidget::SceneToolRun::updatePanel ( )
private

Member Data Documentation

QFrame* CSVWidget::SceneToolRun::mPanel
private
std::set<std::string> CSVWidget::SceneToolRun::mProfiles
private
std::set<std::string>::iterator CSVWidget::SceneToolRun::mSelected
private
QTableWidget* CSVWidget::SceneToolRun::mTable
private
QString CSVWidget::SceneToolRun::mToolTip
private

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