File indexing completed on 2024-04-28 16:26:30
0001 /*************************************************************************** 0002 date : Dec 23 2007 0003 version : 0.22 0004 copyright : (C) 2004 by Mathias Soeken 0005 email : msoeken@tzi.de 0006 ***************************************************************************/ 0007 0008 /*************************************************************************** 0009 * * 0010 * This program is free software; you can redistribute it and/or modify * 0011 * it under the terms of the GNU General Public License as published by * 0012 * the Free Software Foundation; either version 2 of the License, or * 0013 * (at your option) any later version. * 0014 * * 0015 ***************************************************************************/ 0016 0017 #ifndef CATEGORYCOMBOBOX_H 0018 #define CATEGORYCOMBOBOX_H 0019 0020 #include <KComboBox> 0021 0022 namespace KileWidget { 0023 0024 class CategoryComboBox : public KComboBox 0025 { 0026 public: 0027 enum { 0028 Category = Qt::UserRole + 1 0029 }; 0030 0031 public: 0032 explicit CategoryComboBox(QWidget *parent = 0); 0033 explicit CategoryComboBox(bool rw, QWidget *parent = 0); 0034 0035 virtual ~CategoryComboBox(); 0036 0037 public: 0038 void addCategoryItem(const QString &text); 0039 }; 0040 0041 } 0042 #endif