MagicSmoke  $VERSION$
MFlagEditor Class Reference

enables the user to edit flags attached to an entity as defined by MagicSmoke More...

#include <flagedit.h>

Inheritance diagram for MFlagEditor:

Public Member Functions

 MFlagEditor (QWidget *parent, QString flags, QString label=QString())
 creates an editor window More...
 
QString currentFlags () const
 returns the flag string corresponding to the current state of the editor More...
 
QString originalFlags () const
 returns the original string with which the editor was initialized More...
 

Static Public Member Functions

static QString edit (QWidget *parent, QString flags, QString label=QString())
 convenience function: opens a flag editor and returns the result or the original string if unchanged More...
 

Friends

class MFlagEditorDelegate
 

Detailed Description

enables the user to edit flags attached to an entity as defined by MagicSmoke

Constructor & Destructor Documentation

MFlagEditor::MFlagEditor ( QWidget *  parent,
QString  flags,
QString  label = QString() 
)

creates an editor window

References MTGetValidFlags::getflags(), MFlagEditorDelegate, and MTGetValidFlags::query().

Member Function Documentation

QString MFlagEditor::currentFlags ( ) const

returns the flag string corresponding to the current state of the editor

References MMUST, and MNOT.

Referenced by edit().

QString MFlagEditor::edit ( QWidget *  parent,
QString  flags,
QString  label = QString() 
)
static

convenience function: opens a flag editor and returns the result or the original string if unchanged

References currentFlags().

QString MFlagEditor::originalFlags ( ) const

returns the original string with which the editor was initialized

Friends And Related Function Documentation

friend class MFlagEditorDelegate
friend

Referenced by MFlagEditor().


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