13 #ifndef QmitkPythonSnippets_h
14 #define QmitkPythonSnippets_h
18 #include <MitkQtPythonExports.h>
19 struct QmitkPythonSnippetsData;
44 static bool LoadStringMap(
const QString& filename,
QStringMap& oldMap );
49 void PasteCommandRequested(
const QString& command);
54 void on_PasteSnippet_triggered(
bool checked =
false );
57 void on_RenameSnippet_triggered(
bool checked =
false );
60 void on_AddSnippet_triggered(
bool checked =
false );
63 void on_RemoveSnippet_triggered(
bool checked =
false );
66 void on_RestoreDefaultSnippets_triggered(
bool checked =
false );
69 void on_Name_currentIndexChanged(
int i );
72 void on_Content_textChanged();
75 void on_SaveSnippets_triggered(
bool checked =
false );
78 void on_LoadSnippets_triggered(
bool checked =
false );
83 void SaveStringMap(
const QString& filename,
const QStringMap&
map )
const;
86 QString CreateUniqueName(
const QString &name)
const;
90 void Update(
const QString &name =
"");
94 QmitkPythonSnippetsData* d;