]> git.sesse.net Git - kdenlive/blobdiff - src/unicodedialog.h
Save folder state (opened / close):
[kdenlive] / src / unicodedialog.h
index 009d2349436573d395964c934a08efc21ce64066..4a8579a2048955461a1f4ded227e8690b3ab093f 100644 (file)
@@ -24,10 +24,17 @@ public:
     ~UnicodeDialog();
 
     /** \brief Returns infos about a unicode number. Extendable/improvable ;) */
-    QString unicodeInfo(QString unicode_number);
+    QString unicodeInfo(QString unicode);
 
     void showLastUnicode();
 
+protected:
+    virtual void wheelEvent(QWheelEvent * event);
+
+public slots:
+    /** \brief Override QDialog::exec() to assure the focus being on the unicode input field */
+    int exec();
+
 private:
     Ui::UnicodeDialog_UI m_view;
 
@@ -52,8 +59,13 @@ private:
     void updateOverviewChars(uint unicode);
     void clearOverviewChars();
 
-    int lastCursorPos;
-    QString lastUnicodeNumber;
+    int m_lastCursorPos;
+    QString m_lastUnicodeNumber;
+
+    /** \brief Reads the last used unicode number from the config file. */
+    void readChoices();
+    /** \brief Writes the last used unicode number into the config file. */
+    void writeChoices();
 
 signals:
     /** \brief Contains the selected unicode character; emitted when Enter is pressed. */