author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /microkde/kdeui/kseparator.h | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
-rw-r--r-- | microkde/kdeui/kseparator.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/microkde/kdeui/kseparator.h b/microkde/kdeui/kseparator.h new file mode 100644 index 0000000..6d2712a --- a/dev/null +++ b/microkde/kdeui/kseparator.h | |||
@@ -0,0 +1,77 @@ | |||
1 | /* | ||
2 | * Copyright (C) 1997 Michael Roth <mroth@wirlweb.de> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU Library General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program 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 | ||
12 | * GNU 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 program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
17 | * | ||
18 | */ | ||
19 | |||
20 | #ifndef __KSEPARATOR_H__ | ||
21 | #define __KSEPARATOR_H__ | ||
22 | |||
23 | #include <qframe.h> | ||
24 | |||
25 | /** | ||
26 | * Standard horizontal or vertical separator. | ||
27 | * | ||
28 | * @author Michael Roth <mroth@wirlweb.de> | ||
29 | * @version $Id$ | ||
30 | */ | ||
31 | class KSeparator : public QFrame | ||
32 | { | ||
33 | Q_OBJECT | ||
34 | Q_PROPERTY( int orientation READ orientation WRITE setOrientation ) | ||
35 | public: | ||
36 | /** | ||
37 | * Constructor. | ||
38 | **/ | ||
39 | KSeparator(QWidget* parent=0, const char* name=0, WFlags f=0); | ||
40 | /** | ||
41 | * Constructor. | ||
42 | * | ||
43 | * @param orientation Set the orientation of the separator. | ||
44 | * Possible values are HLine or Horizontal and VLine or Vertical. | ||
45 | **/ | ||
46 | KSeparator(int orientation, QWidget* parent=0, const char* name=0, | ||
47 | WFlags f=0); | ||
48 | |||
49 | /** | ||
50 | * Returns the orientation of the separator. | ||
51 | * | ||
52 | * Possible values are VLine and HLine. | ||
53 | **/ | ||
54 | int orientation() const; | ||
55 | |||
56 | /** | ||
57 | * Set the orientation of the separator to @p orient | ||
58 | * | ||
59 | * Possible values are VLine and HLine. | ||
60 | */ | ||
61 | void setOrientation(int orient); | ||
62 | |||
63 | /** | ||
64 | * The recommended height (width) for a horizontal (vertical) separator. | ||
65 | **/ | ||
66 | virtual QSize sizeHint() const; | ||
67 | |||
68 | protected: | ||
69 | virtual void drawFrame( QPainter * ); | ||
70 | protected: | ||
71 | virtual void virtual_hook( int id, void* data ); | ||
72 | private: | ||
73 | class KSeparatorPrivate* d; | ||
74 | }; | ||
75 | |||
76 | |||
77 | #endif // __KSEPARATOR_H__ | ||