diff gui/src/editor/FileEditorTab.h @ 14680:628eeaf879f7 gui

Copy/Paste buttons get greyed out in the editor correctly again. Removed margin in editor tabs and status bar. * FileEditor: Removed status bar and added slot to handle changes in tabs. * FileEditorTab: Removed margen and added signal when copying is possible.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Thu, 24 May 2012 12:08:53 +0200
parents 35512b788af2
children ca733a66be7a
line wrap: on
line diff
--- a/gui/src/editor/FileEditorTab.h
+++ b/gui/src/editor/FileEditorTab.h
@@ -28,6 +28,7 @@
   Q_OBJECT
 public:
   FileEditorTab (FileEditor *fileEditor);
+  bool copyAvailable ();
 
 public slots:
   void newTitle(bool modified);
@@ -56,10 +57,11 @@
   void runFile ();
 
 signals:
-  void fileNameChanged(QString fileName);
+  void fileNameChanged (QString fileName);
+  void editorStateChanged ();
 
 protected:
-  void closeEvent(QCloseEvent *event);
+  void closeEvent (QCloseEvent *event);
 
 private:
   int checkFileModified (QString msg, int cancelButton);
@@ -73,6 +75,7 @@
 
   bool m_modified;
   bool m_longTitle;
+  bool m_copyAvailable;
 
   // TODO: Use QFileSystemWatcher to sync with disc.
 };