20 #ifndef PYTHONEDITORSTABWIDGET_H
21 #define PYTHONEDITORSTABWIDGET_H
26 #include <tulip/tulipconf.h>
30 class PythonCodeEditor;
32 class TLP_PYTHON_SCOPE PythonEditorsTabWidget :
public QTabWidget {
37 bool _dontTreatFocusIn;
38 bool reloadCodeInEditorIfNeeded(
int index);
42 explicit PythonEditorsTabWidget(QWidget *parent = 0);
44 int addEditor(
const QString &fileName =
"");
46 PythonCodeEditor *getCurrentEditor()
const;
48 PythonCodeEditor *getEditor(
int)
const;
50 void indicateErrors(
const QMap<QString, QVector<int> > &errorLines);
52 void clearErrorIndicators();
54 bool eventFilter(QObject *, QEvent *);
56 void saveCurrentEditorContentToFile();
58 void saveEditorContentToFile(
int);
60 void increaseFontSize();
62 void decreaseFontSize();
66 void tabAboutToBeDeleted(
int);
74 void scriptTextChanged();
76 void reloadCodeInEditorsIfNeeded();
78 void closeTabRequested(
int tab);
84 #endif // PYTHONEDITORSTABWIDGET_H