summaryrefslogtreecommitdiffstats
path: root/kommander/editor/choosewidgetimpl.h
blob: 877bcd072af6d8f7f6067d6d71cb05037a95a89a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/***************************************************************************
                          choosewidgetimpl.h  - dialog to choose widget
                             -------------------
    begin                :  Thu 13 Apr 2004
    copyright            : (C) 2000 Michal Rudolf <mrudolf@kdewebdev.org>
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
 
#ifndef _HAVE_CHOOSEWIDGETIMPL_H_
#define _HAVE_CHOOSEWIDGETIMPL_H_

#include "choosewidget.h"

class ChooseWidget : public ChooseWidgetBase
{
  Q_OBJECT
public:
  ChooseWidget(QWidget*, const char* = 0, bool=true);
  ~ChooseWidget();
  // Put current widget and all of its children in a tree
  void setWidget(QWidget *);
  // Return current widget
  QString selection();
 
public slots:
  // Filter text changed - find matching widget
  void textChanged(const QString&);
  // Double clicked on listviwew
  void selectedItem(QListViewItem *);
private:
  // Check if given widget is a Kommander widget
  bool isKommanderWidget(QObject* w);

};

#endif