]> 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 fffb803b90f4bd5de8932dc1d46c2a8fbc1e4c6e..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();
        virtual ~GuiSelection() {}
 
        /** Selection overloaded methods
@@ -33,11 +37,18 @@ public:
        void haveSelection(bool own);
        docstring const get() const;
        void put(docstring const & str);
-       bool isInternal() const;
+       bool empty() const;
        //@}
+
+private Q_SLOTS:
+       void on_dataChanged();
+
+private:
+       bool text_selection_empty_;
+       bool const selection_supported_;
 };
 
 } // namespace frontend
 } // namespace lyx
 
-#endif // SELECTION_H
+#endif // GUISELECTION_H