typo fix
[pykit.git] / PDFWidget.hh
index 041a29c..97c6a5a 100644 (file)
@@ -10,6 +10,7 @@
 #define HH_PyKit_PDFWidget_ 1
 
 // Custom includes
+#include <vector>
 #include <poppler/qt4/poppler-qt4.h>
 #include <boost/scoped_ptr.hpp>
 #include <QLabel>
@@ -35,6 +36,7 @@ namespace pykit {
         ~PDFWidget();
 
         void load(QUrl const & url);
+        Q_INVOKABLE void highlightString(QString const & str);
 
     protected:
         virtual void resizeEvent(QResizeEvent * event);
@@ -57,6 +59,8 @@ namespace pykit {
         double dpi_;
         QRubberBand * rubberBand_;
         QPoint origin_;
+        QStringList highlightStrings_;
+        std::vector<QRectF> highlightAreas_;
     };
 
 }
@@ -75,5 +79,5 @@ namespace pykit {
 // c-file-style: "j32"
 // indent-tabs-mode: nil
 // ispell-local-dictionary: "american"
-// compile-command: "scons -U"
+// compile-command: "make"
 // End: