]> git.sesse.net Git - kdenlive/blobdiff - src/unicodedialog.h
Ask to change profile if first clip does not match project profile:
[kdenlive] / src / unicodedialog.h
index f68a90ae410ee39e8585d5630a786117b4976854..4a8579a2048955461a1f4ded227e8690b3ab093f 100644 (file)
@@ -20,7 +20,7 @@ public:
     /** \brief The input method for the dialog. Atm only InputHex supported. */
     enum InputMethod { InputHex, InputDec };
 
-    UnicodeDialog(InputMethod inputMeth, QString lastUnicodeNumber);
+    UnicodeDialog(InputMethod inputMeth);
     ~UnicodeDialog();
 
     /** \brief Returns infos about a unicode number. Extendable/improvable ;) */
@@ -28,6 +28,13 @@ public:
 
     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;
 
@@ -55,11 +62,14 @@ private:
     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. */
     void charSelected(const QString&);
-    /** \brief Contains the last used unicode number. */
-    void newUnicodeNumber(const QString&);
 
 private slots:
     void slotTextChanged(QString text);