]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSelection.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiSelection.h
index 860c3d16aafb5a1821ed42a882099483bb1fc7ce..c7f2096aa82ae93f3ece9864adca99b3021776cb 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef SELECTION_H
-#define SELECTION_H
+#ifndef GUISELECTION_H
+#define GUISELECTION_H
 
 #include "frontends/Selection.h"
 
+#include <QObject>
+
 namespace lyx {
 namespace frontend {
 
 /**
  * The Qt4 version of the Selection.
  */
-class GuiSelection: public Selection
+class GuiSelection : public QObject, public Selection
 {
+       Q_OBJECT
 public:
-       GuiSelection() : empty_(true) {}
+       GuiSelection();
        virtual ~GuiSelection() {}
 
        /** Selection overloaded methods
@@ -36,17 +39,16 @@ public:
        void put(docstring const & str);
        bool empty() const;
        //@}
+
+private Q_SLOTS:
+       void on_dataChanged();
+
 private:
-       /**
-        * Is the selection empty?
-        * Only used on systems that don't support a real selection to
-        * reflect the status of the internal selection of LyX.
-        * This is needed to emulate the X selection as far as possible.
-        */
-       bool empty_;
+       bool text_selection_empty_;
+       bool const selection_supported_;
 };
 
 } // namespace frontend
 } // namespace lyx
 
-#endif // SELECTION_H
+#endif // GUISELECTION_H