• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Widgets Library
 

KDevelop Widgets Library

  • lib
  • widgets
kcomboview.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2003 Alexander Dymo <cloudtemple@mksat.net>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19#ifndef KCOMBOVIEW_H
20#define KCOMBOVIEW_H
21
22#include <kcompletion.h>
23
24#include "qcomboview.h"
25
30
36
37
39class CustomCompleter : public TDECompletion {
40 public:
41 virtual void addItem (const TQString &item) {
42 TDECompletion::addItem( item );
43 }
44
45 virtual void removeItem (const TQString &item) {
46 TDECompletion::removeItem( item );
47 }
48
49 virtual void clear() {
50 TDECompletion::clear();
51 }
52};
53
54
55class KComboView: public QComboView
56{
57 TQ_OBJECT
58
59public:
61 KComboView( bool rw, int defaultWidth = 100, TQWidget* parent=0, const char* name=0, CustomCompleter* completer = new CustomCompleter() );
62 virtual ~KComboView();
63
64 virtual void addItem(TQListViewItem *it);
65 virtual void removeItem(TQListViewItem *it);
66 virtual void renameItem(TQListViewItem *it, const TQString &newName);
67
68 virtual void setDefaultText(const TQString &text);
69
70 virtual void clear();
71
72 int defaultWidth();
73private:
74 virtual void setUpListView();
75
76 CustomCompleter* m_comp;
77 int m_defaultWidth;
78 TQString m_defaultText;
79};
80
81#endif
CustomCompleter
KComboView - a combo with a TQListView as a popup widget.
Definition kcomboview.h:39
QComboView
QComboView - a combo with a TQListView as a popup widget.
Definition qcomboview.h:42
QComboView::clear
virtual void clear()
Definition qcomboview.cpp:199
qcomboview.h
QComboView class.

KDevelop Widgets Library

Skip menu "KDevelop Widgets Library"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop Widgets Library

Skip menu "KDevelop Widgets Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Widgets Library by doxygen 1.15.0
This website is maintained by Timothy Pearson.