* 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
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