|
WSF
|
#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) |
The same object types can be pasted in multiple contexts, this class represents the context of a paste operation
|
explicit |
| void wizard::PasteContext::AddAvailableAction | ( | const std::string & | aName, |
| QString | aLabel, | ||
| bool | aIsGrouped = true ) const |
|
inline |
|
inline |
| bool wizard::PasteContext::Exec | ( | const QMimeData * | data | ) | const |
References wizSignals.
|
inline |
| std::string wizard::PasteContext::GetFilePath | ( | ) | const |
Returns empty string if no file path given.
Referenced by wizard::ClonePlatformDialog::PasteHandler(), wizard::CreatePlatformDialog::PasteHandler(), and wizard::CreateTypeDialog::PasteHandler().
|
inline |
|
inline |
| WsfPProxyNode wizard::PasteContext::GetProxyNode | ( | ) | const |
|
inline |
|
inline |
| bool wizard::PasteContext::IsActionChosen | ( | const std::string & | aName | ) | const |
|
inline |
|
inline |
| void wizard::PasteContext::SetFile | ( | const std::string & | aFilePath | ) |
| void wizard::PasteContext::SetPosition | ( | const UtLatPos & | aLat, |
| const UtLonPos & | aLon ) |
| void wizard::PasteContext::SetProxyNode | ( | const WsfPProxyNode & | aNode | ) |
|
inline |