File indexing completed on 2024-12-22 04:18:17

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2007 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef COMBOBOX_H
0014 #define COMBOBOX_H
0015 
0016 #include <QComboBox>
0017 
0018 #include "kstwidgets_export.h"
0019 
0020 /*
0021 FIXME!! This class needs to be rewritten to give completion...
0022 */
0023 
0024 namespace Kst {
0025 
0026 class  KSTWIDGETS_EXPORT ComboBox : public QComboBox {
0027   Q_OBJECT
0028   public:
0029     explicit ComboBox(QWidget *parent=0);
0030     explicit ComboBox(bool editable, QWidget *parent=0);
0031     virtual ~ComboBox();
0032 
0033     void setEditable(bool editable);
0034 
0035   private:
0036     void setupLineEdit();
0037 
0038   private:
0039     bool _editable;
0040 };
0041 
0042 }
0043 
0044 #endif
0045 
0046 // vim: ts=2 sw=2 et