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
CSVWorld::IdContextMenu Class Reference

A context menu with "Edit 'ID'" action for editors in the dialogue subview. More...

#include <dialoguesubview.hpp>

Inheritance diagram for CSVWorld::IdContextMenu:
Collaboration diagram for CSVWorld::IdContextMenu:

Signals

void editIdRequest (const CSMWorld::UniversalId &id, const std::string &hint)
 

Public Member Functions

 IdContextMenu (QWidget *widget, CSMWorld::ColumnBase::Display display)
 
void excludeId (const std::string &id)
 

Private Slots

void showContextMenu (const QPoint &pos)
 
void editIdRequest ()
 

Private Member Functions

QString getWidgetValue () const
 
void addEditIdActionToMenu (const QString &text)
 
void removeEditIdActionFromMenu ()
 

Private Attributes

QWidgetmWidget
 
CSMWorld::UniversalId::Type mIdType
 
std::set< std::string > mExcludedIds
 A list of IDs that should not have the Edit 'ID' action. More...
 
QMenumContextMenu
 
QActionmEditIdAction
 

Detailed Description

A context menu with "Edit 'ID'" action for editors in the dialogue subview.

Constructor & Destructor Documentation

CSVWorld::IdContextMenu::IdContextMenu ( QWidget widget,
CSMWorld::ColumnBase::Display  display 
)

Here is the call graph for this function:

Member Function Documentation

void CSVWorld::IdContextMenu::addEditIdActionToMenu ( const QString &  text)
private
void CSVWorld::IdContextMenu::editIdRequest ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::IdContextMenu::editIdRequest ( const CSMWorld::UniversalId id,
const std::string &  hint 
)
signal
void CSVWorld::IdContextMenu::excludeId ( const std::string &  id)

Here is the caller graph for this function:

QString CSVWorld::IdContextMenu::getWidgetValue ( ) const
private
void CSVWorld::IdContextMenu::removeEditIdActionFromMenu ( )
private
void CSVWorld::IdContextMenu::showContextMenu ( const QPoint &  pos)
privateslot

Here is the caller graph for this function:

Member Data Documentation

QMenu* CSVWorld::IdContextMenu::mContextMenu
private
QAction* CSVWorld::IdContextMenu::mEditIdAction
private
std::set<std::string> CSVWorld::IdContextMenu::mExcludedIds
private

A list of IDs that should not have the Edit 'ID' action.

CSMWorld::UniversalId::Type CSVWorld::IdContextMenu::mIdType
private
QWidget* CSVWorld::IdContextMenu::mWidget
private

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