]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt2/QCharacterDialog.h
character dialog with auto-apply ...
[features.git] / src / frontends / qt2 / QCharacterDialog.h
index 235f2f2c26a7c751caef8f74d0d31ecb18f051b7..9b755430e84a79580a4f3e66eb371300a5ba0dc2 100644 (file)
@@ -4,6 +4,7 @@
  * see the file COPYING
  *
  * \author Edwin Leuven
+ * \author John Levon <moz@compsoc.man.ac.uk>
  */
 
 #ifndef QCHARACTERDIALOG_H
@@ -24,24 +25,7 @@ class QCharacterDialog : public QCharacterDialogBase
 { Q_OBJECT
 
 public:
-       QCharacterDialog(QCharacter * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
-       ~QCharacterDialog();
-       
-       /// FIXME
-       LyXFont getChar();
-       
-       /// return the currently selected language item
-       int langItem() {
-               return lang->currentItem();
-       };
-       
-       /// return true if toggle all is selected
-       bool toggleAll() {
-               return toggleall->isChecked();
-       };
-       
-       /// set dialog read only
-       void setReadOnly(bool);
+       QCharacterDialog(QCharacter * form);
        
 protected:
        void closeEvent(QCloseEvent * e);
@@ -50,22 +34,7 @@ private:
        QCharacter * form_;
 
 protected slots:
-       
-       void apply_adaptor() {
-               form_->apply();
-       }
-       
-       void cancel_adaptor() {
-               form_->close();
-               hide();
-       }
-       
-       void close_adaptor() {
-               form_->apply();
-               form_->close();
-               hide();
-       }
-
+       void change_adaptor();
 };
 
 #endif // QCHARACTERDIALOG_H