KDE3Support
k3listviewlineedit.h
Go to the documentation of this file.00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2000 Charles Samuels <charles@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 #ifndef KLISTVIEWLINEEDIT_H 00019 #define KLISTVIEWLINEEDIT_H 00020 00021 00022 #include <klineedit.h> 00023 #include <k3listview.h> 00024 00029 class K3ListViewLineEdit : public KLineEdit 00030 { 00031 Q_OBJECT 00032 public: 00033 K3ListViewLineEdit(K3ListView *parent); 00034 ~K3ListViewLineEdit(); 00035 00036 Q3ListViewItem *currentItem() const; 00037 00038 Q_SIGNALS: 00039 void done(Q3ListViewItem*, int); 00040 00041 public Q_SLOTS: 00042 void terminate(); 00043 void load(Q3ListViewItem *i, int c); 00044 00045 protected: 00046 virtual void focusOutEvent(QFocusEvent *); 00047 virtual void keyPressEvent(QKeyEvent *e); 00048 virtual void paintEvent(QPaintEvent *e); 00049 virtual bool event (QEvent *pe); 00050 void selectNextCell (Q3ListViewItem *pi, int column, bool forward); 00051 void terminate(bool commit); 00052 Q3ListViewItem *item; 00053 int col; 00054 K3ListView* const p; 00055 00056 protected Q_SLOTS: 00057 void slotSelectionChanged(); 00058 00059 }; 00060 00061 #endif