File indexing completed on 2024-05-05 17:15:08
0001 /************************************************************************************* 0002 begin : Feb 24 2007 0003 copyright : 2007 by Holger Danielsson (holger.danielsson@versanet.de) 0004 *************************************************************************************/ 0005 0006 /*************************************************************************** 0007 * * 0008 * This program is free software; you can redistribute it and/or modify * 0009 * it under the terms of the GNU General Public License as published by * 0010 * the Free Software Foundation; either version 2 of the License, or * 0011 * (at your option) any later version. * 0012 * * 0013 ***************************************************************************/ 0014 0015 #ifndef ABBREVIATIONINPUTDIALOG_H 0016 #define ABBREVIATIONINPUTDIALOG_H 0017 0018 #include <QLabel> 0019 #include <QDialog> 0020 #include <QString> 0021 #include <QTreeWidgetItem> 0022 0023 #include "widgets/abbreviationview.h" 0024 0025 class QDialogButtonBox; 0026 class QLineEdit; 0027 0028 //////////////////// add/edit dialog for abbreviations //////////////////// 0029 0030 namespace KileDialog { 0031 0032 class AbbreviationInputDialog : public QDialog 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 AbbreviationInputDialog(KileWidget::AbbreviationView *listview, QTreeWidgetItem *item, int mode, const char *name = Q_NULLPTR); 0038 ~AbbreviationInputDialog(); 0039 void abbreviation(QString &abbrev, QString &expansion); 0040 0041 private Q_SLOTS: 0042 void onTextChanged(const QString &text); 0043 0044 private: 0045 KileWidget::AbbreviationView *m_listview; 0046 QDialogButtonBox *m_buttonBox; 0047 QTreeWidgetItem *m_abbrevItem; 0048 QLineEdit *m_leAbbrev; 0049 QLineEdit *m_leExpansion; 0050 int m_mode; 0051 QString m_abbrev, m_expansion; 0052 }; 0053 0054 } 0055 0056 #endif