source: trunk/tools/designer/editor/arghintwidget.h

Last change on this file was 197, checked in by rudi, 14 years ago

Added QtDesigner

File size: 1.7 KB
Line 
1/**********************************************************************
2** Copyright (C) 2005-2007 Trolltech ASA. All rights reserved.
3**
4** This file is part of Qt Designer.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
12** licenses may use this file in accordance with the Qt Commercial License
13** Agreement provided with the Software.
14**
15** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17**
18** See http://www.trolltech.com/gpl/ for GPL licensing information.
19** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
20** information about Qt Commercial License Agreements.
21**
22** Contact info@trolltech.com if any conditions of this licensing are
23** not clear to you.
24**
25**********************************************************************/
26
27#ifndef ARGHINTWIDGET_H
28#define ARGHINTWIDGET_H
29
30#include <qframe.h>
31
32class QLabel;
33class ArrowButton;
34
35class ArgHintWidget : public QFrame
36{
37 Q_OBJECT
38
39public:
40 ArgHintWidget( QWidget *parent, const char*name );
41
42 void setFunctionText( int func, const QString &text );
43 void setNumFunctions( int num );
44
45public slots:
46 void relayout();
47 void gotoPrev();
48 void gotoNext();
49
50private:
51 void updateState();
52
53private:
54 int curFunc;
55 int numFuncs;
56 QMap<int, QString> funcs;
57 QLabel *funcLabel;
58 ArrowButton *prev, *next;
59
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.