1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/
19 // File: QtxComboBox.h
20 // Author: Sergey TELKOV
28 #include <qcombobox.h>
31 #pragma warning( disable:4251 )
34 class QTX_EXPORT QtxComboBox : public QComboBox
38 typedef QMap<int, int> IndexIdMap;
41 QtxComboBox( QWidget* = 0, const char* = 0 );
42 QtxComboBox( bool, QWidget* = 0, const char* = 0 );
43 virtual ~QtxComboBox();
45 bool isCleared() const;
46 void setCleared( const bool );
48 virtual void setCurrentItem( int );
49 virtual void setCurrentText( const QString& );
51 int currentId() const;
52 void setCurrentId( int );
55 void activatedId( int );
56 void highlightedId( int );
59 void onActivated( int );
60 void onActivated( const QString& );
63 virtual void paintEvent( QPaintEvent* );
66 int id( const int ) const;
67 int index( const int ) const;
70 void paintClear( QPaintEvent* );
78 #pragma warning( default:4251 )