Last change
on this file since 8 was 2, checked in by dmik, 20 years ago |
Imported xplatform parts of the official release 3.3.1 from Trolltech
|
-
Property svn:keywords
set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | /****************************************************************************
|
---|
2 | ** $Id: popup.h 2 2005-11-16 15:49:26Z dmik $
|
---|
3 | **
|
---|
4 | ** Definition of something or other
|
---|
5 | **
|
---|
6 | ** Created : 979899
|
---|
7 | **
|
---|
8 | ** Copyright (C) 1997 by Trolltech AS. All rights reserved.
|
---|
9 | **
|
---|
10 | ** This file is part of an example program for Qt. This example
|
---|
11 | ** program may be used, distributed and modified without limitation.
|
---|
12 | **
|
---|
13 | *****************************************************************************/
|
---|
14 |
|
---|
15 | #ifndef POPUP_H
|
---|
16 | #define POPUP_H
|
---|
17 | #include <qlabel.h>
|
---|
18 | #include <qpushbutton.h>
|
---|
19 | #include <qlineedit.h>
|
---|
20 |
|
---|
21 | class FancyPopup : public QLabel
|
---|
22 | {
|
---|
23 | Q_OBJECT
|
---|
24 | public:
|
---|
25 | FancyPopup( QWidget* parent = 0, const char* name=0);
|
---|
26 |
|
---|
27 | void popup( QWidget* parent = 0);
|
---|
28 | protected:
|
---|
29 | virtual void mouseMoveEvent( QMouseEvent * );
|
---|
30 | virtual void mouseReleaseEvent( QMouseEvent * );
|
---|
31 | virtual void closeEvent( QCloseEvent * );
|
---|
32 |
|
---|
33 | private:
|
---|
34 | QWidget* popupParent;
|
---|
35 | int moves;
|
---|
36 | };
|
---|
37 |
|
---|
38 |
|
---|
39 | class Frame : public QFrame
|
---|
40 | {
|
---|
41 | Q_OBJECT
|
---|
42 | public:
|
---|
43 | Frame( QWidget *parent=0, const char* name=0);
|
---|
44 |
|
---|
45 | protected:
|
---|
46 |
|
---|
47 | private slots:
|
---|
48 | void button1Clicked();
|
---|
49 | void button2Pressed();
|
---|
50 |
|
---|
51 | private:
|
---|
52 | QPushButton *button1;
|
---|
53 | QPushButton *button2;
|
---|
54 |
|
---|
55 | QFrame* popup1;
|
---|
56 | FancyPopup* popup2;
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.