a widget that holds snippets and serializes the snippets to a certain places
More...
#include <QmitkPythonSnippets.h>
a widget that holds snippets and serializes the snippets to a certain places
Definition at line 23 of file QmitkPythonSnippets.h.
◆ QStringMap
◆ QmitkPythonSnippets()
QmitkPythonSnippets::QmitkPythonSnippets |
( |
const QString & |
_AutoSaveFileName = "" , |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
build ui here the snippets will be loaded from _AutoSaveFileName if not empty and readable otherwise the default snippets will be loaded
◆ ~QmitkPythonSnippets()
QmitkPythonSnippets::~QmitkPythonSnippets |
( |
| ) |
|
|
override |
◆ CreateUniqueName()
QString QmitkPythonSnippets::CreateUniqueName |
( |
const QString & |
name | ) |
const |
|
protected |
creates a name which does not exist in the list
◆ LoadStringMap()
static bool QmitkPythonSnippets::LoadStringMap |
( |
const QString & |
filename, |
|
|
QStringMap & |
oldMap |
|
) |
| |
|
static |
read string map from xml file
◆ on_AddSnippet_triggered
void QmitkPythonSnippets::on_AddSnippet_triggered |
( |
bool |
checked = false | ) |
|
|
protectedslot |
ask for name, create snippet, call update()
◆ on_Content_textChanged
void QmitkPythonSnippets::on_Content_textChanged |
( |
| ) |
|
|
protectedslot |
◆ on_LoadSnippets_triggered
void QmitkPythonSnippets::on_LoadSnippets_triggered |
( |
bool |
checked = false | ) |
|
|
protectedslot |
ask for file, load snippets (do not replace)
◆ on_Name_currentIndexChanged
void QmitkPythonSnippets::on_Name_currentIndexChanged |
( |
int |
i | ) |
|
|
protectedslot |
update action state (enable/disable), update text box
◆ on_PasteSnippet_triggered
void QmitkPythonSnippets::on_PasteSnippet_triggered |
( |
bool |
checked = false | ) |
|
|
protectedslot |
emits PasteCommandRequested signal
◆ on_RemoveSnippet_triggered
void QmitkPythonSnippets::on_RemoveSnippet_triggered |
( |
bool |
checked = false | ) |
|
|
protectedslot |
remove the current snippet, call update()
◆ on_RenameSnippet_triggered
void QmitkPythonSnippets::on_RenameSnippet_triggered |
( |
bool |
checked = false | ) |
|
|
protectedslot |
ask for name as long as it exists, call update()
◆ on_RestoreDefaultSnippets_triggered
void QmitkPythonSnippets::on_RestoreDefaultSnippets_triggered |
( |
bool |
checked = false | ) |
|
|
protectedslot |
call LoadStringMap with d->m_DefaultSnippetsAutoSaveFileName
◆ on_SaveSnippets_triggered
void QmitkPythonSnippets::on_SaveSnippets_triggered |
( |
bool |
checked = false | ) |
|
|
protectedslot |
ask for file, save snippets
◆ PasteCommandRequested
void QmitkPythonSnippets::PasteCommandRequested |
( |
const QString & |
command | ) |
|
|
signal |
this class whishes to paste sth command
◆ SaveStringMap()
void QmitkPythonSnippets::SaveStringMap |
( |
const QString & |
filename, |
|
|
const QStringMap & |
map |
|
) |
| const |
|
protected |
write string map to xml file
◆ Update()
void QmitkPythonSnippets::Update |
( |
const QString & |
name = "" | ) |
|
|
protected |
update combo box if name is passed, the according element will be selected
◆ DEFAULT_SNIPPET_FILE
const QString QmitkPythonSnippets::DEFAULT_SNIPPET_FILE |
|
static |
◆ SNIPPETS_ROOT_XML_ELEMENT_NAME
const QString QmitkPythonSnippets::SNIPPETS_ROOT_XML_ELEMENT_NAME |
|
static |
◆ SNIPPETS_XML_ELEMENT_NAME
const QString QmitkPythonSnippets::SNIPPETS_XML_ELEMENT_NAME |
|
static |
The documentation for this class was generated from the following file: