Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
KDevelop Widgets Library
KDevelop Widgets Library
lib
widgets
resizablecombo.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 RESIZABLECOMBO_H
20
#define RESIZABLECOMBO_H
21
22
#include <tqpushbutton.h>
23
#include <tqpoint.h>
24
25
class
KComboView;
26
class
TQMouseEvent;
27
class
MyPushButton;
28
33
38
class
ResizableCombo:
public
TQWidget{
39
TQ_OBJECT
40
41
public
:
42
ResizableCombo(KComboView *view, TQWidget *parent = 0,
const
char
*name = 0);
43
44
private
:
45
MyPushButton *m_sizer;
46
KComboView *m_combo;
47
48
friend
class
MyPushButton;
49
};
50
51
class
MyPushButton:
public
TQPushButton
52
{
53
public
:
54
MyPushButton(
ResizableCombo
*parent = 0,
const
char
*name = 0 );
55
56
TQPoint pressedPos()
57
{
58
return
m_pressedPos;
59
}
60
61
protected
:
62
virtual
void
mouseReleaseEvent ( TQMouseEvent * e );
63
virtual
void
mousePressEvent ( TQMouseEvent * e );
64
virtual
void
mouseMoveEvent ( TQMouseEvent * e );
65
66
private
:
67
bool
m_resizing;
68
TQPoint m_pressedPos;
69
int
m_width;
70
ResizableCombo *m_combo;
71
};
72
73
#endif
ResizableCombo
Resizable combo box.
Definition
resizablecombo.h:38
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