]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QCharacterDialog.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QCharacterDialog.h
index 235f2f2c26a7c751caef8f74d0d31ecb18f051b7..135715483ec2b765a5ffed416640f8d282ab2492 100644 (file)
@@ -1,71 +1,41 @@
+// -*- C++ -*-
 /**
  * \file QCharacterDialog.h
- * Copyright 2001 the LyX Team
- * see the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Edwin Leuven
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef QCHARACTERDIALOG_H
 #define QCHARACTERDIALOG_H
 
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
 
-#include "ui/QCharacterDialogBase.h"
 #include "QCharacter.h"
+#include "ui/QCharacterDialogBase.h"
 
 #include <qevent.h>
 #include <qcheckbox.h>
 #include <qcombobox.h>
 
 class LyXFont;
-class QCharacterDialog : public QCharacterDialogBase
-{ Q_OBJECT
 
+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);
-
 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