17 #ifndef _QmitkPythonSnippets_H
18 #define _QmitkPythonSnippets_H
22 #include <MitkQtPythonExports.h>
23 struct QmitkPythonSnippetsData;
48 static bool LoadStringMap(
const QString&
filename, QStringMap& oldMap );
53 void PasteCommandRequested(
const QString& command);
58 void on_PasteSnippet_triggered(
bool checked =
false );
61 void on_RenameSnippet_triggered(
bool checked =
false );
64 void on_AddSnippet_triggered(
bool checked =
false );
67 void on_RemoveSnippet_triggered(
bool checked =
false );
70 void on_RestoreDefaultSnippets_triggered(
bool checked =
false );
73 void on_Name_currentIndexChanged(
int i );
76 void on_Content_textChanged();
79 void on_SaveSnippets_triggered(
bool checked =
false );
82 void on_LoadSnippets_triggered(
bool checked =
false );
87 void SaveStringMap(
const QString&
filename,
const QStringMap&
map )
const;
90 QString CreateUniqueName(
const QString &name)
const;
94 void Update(
const QString &name =
"");
98 QmitkPythonSnippetsData* d;
104 #endif // _QmitkPythonSnippets_H_INCLUDED
static const QString DEFAULT_SNIPPET_FILE
QMap< QString, QString > QStringMap
typedef for string map
a widget that holds snippets and serializes the snippets to a certain places
static void Update(vtkPolyData *)
static const QString SNIPPETS_ROOT_XML_ELEMENT_NAME
static const std::string filename
static const QString SNIPPETS_XML_ELEMENT_NAME