WSF
wizard::PasteContext Class Reference

#include <PasteContext.hpp>

Public Member Functions

 PasteContext (const std::string &aContextName)
bool Exec () const
bool Exec (const QMimeData *data) const
void SetDropOperation ()
bool IsDropOperation () const
void SetWidget (QWidget *aWidgetPtr)
QWidget * GetWidget () const
std::string GetContextName () const
void SetPosition (const UtLatPos &aLat, const UtLonPos &aLon)
bool HasPosition () const
const UtLatPos & GetLat () const
const UtLonPos & GetLon () const
void SetFile (const std::string &aFilePath)
std::string GetFilePath () const
 Returns empty string if no file path given.
WsfPProxyNode GetProxyNode () const
void SetProxyNode (const WsfPProxyNode &aNode)
void AddAvailableAction (const std::string &aName, QString aLabel, bool aIsGrouped=true) const
bool IsActionChosen (const std::string &aName) const
bool ApplyToTextImmediately () const
void ApplyToTextImmediately (bool aApplyNow)

Detailed Description

The same object types can be pasted in multiple contexts, this class represents the context of a paste operation

Constructor & Destructor Documentation

◆ PasteContext()

wizard::PasteContext::PasteContext ( const std::string & aContextName)
explicit

Member Function Documentation

◆ AddAvailableAction()

void wizard::PasteContext::AddAvailableAction ( const std::string & aName,
QString aLabel,
bool aIsGrouped = true ) const

◆ ApplyToTextImmediately() [1/2]

bool wizard::PasteContext::ApplyToTextImmediately ( ) const
inline

◆ ApplyToTextImmediately() [2/2]

void wizard::PasteContext::ApplyToTextImmediately ( bool aApplyNow)
inline

◆ Exec() [1/2]

bool wizard::PasteContext::Exec ( ) const

References Exec().

Referenced by Exec().

◆ Exec() [2/2]

bool wizard::PasteContext::Exec ( const QMimeData * data) const

References wizSignals.

◆ GetContextName()

std::string wizard::PasteContext::GetContextName ( ) const
inline

◆ GetFilePath()

std::string wizard::PasteContext::GetFilePath ( ) const

◆ GetLat()

const UtLatPos & wizard::PasteContext::GetLat ( ) const
inline

◆ GetLon()

const UtLonPos & wizard::PasteContext::GetLon ( ) const
inline

◆ GetProxyNode()

WsfPProxyNode wizard::PasteContext::GetProxyNode ( ) const

◆ GetWidget()

◆ HasPosition()

bool wizard::PasteContext::HasPosition ( ) const
inline

◆ IsActionChosen()

bool wizard::PasteContext::IsActionChosen ( const std::string & aName) const

◆ IsDropOperation()

bool wizard::PasteContext::IsDropOperation ( ) const
inline

◆ SetDropOperation()

void wizard::PasteContext::SetDropOperation ( )
inline

◆ SetFile()

void wizard::PasteContext::SetFile ( const std::string & aFilePath)

◆ SetPosition()

void wizard::PasteContext::SetPosition ( const UtLatPos & aLat,
const UtLonPos & aLon )

◆ SetProxyNode()

void wizard::PasteContext::SetProxyNode ( const WsfPProxyNode & aNode)

◆ SetWidget()

void wizard::PasteContext::SetWidget ( QWidget * aWidgetPtr)
inline

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved