]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiRef.h
Make code a bit easier to read
[lyx.git] / src / frontends / qt / GuiRef.h
index 46e99ea96d99df78b5c0a0ce8e34e0c2cd3110bc..7f8860bd5355c52b933619399bc0ce5244e52eba 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "GuiDialog.h"
 #include "ui_RefUi.h"
-#include "FancyLineEdit.h"
 
 #include "insets/InsetCommandParams.h"
 
@@ -25,6 +24,8 @@ class QTreeWidgetItem;
 namespace lyx {
 namespace frontend {
 
+class FancyLineEdit;
+
 class GuiRef : public GuiDialog, public Ui::RefUi
 {
        Q_OBJECT
@@ -105,8 +106,10 @@ private:
        int restored_buffer_;
        /// store the last active buffer
        int active_buffer_;
-       /// the references
-       std::vector<docstring> refs_;
+       /// the references as three strings: plain label name, label as gui
+       /// string, and pretty dereferenced name ("Lemma 3")
+       /// FIXME: might be a good idea to use a custom struct
+       std::vector<std::tuple<docstring, docstring, docstring>> refs_;
 };
 
 } // namespace frontend