~ubuntu-branches/ubuntu/precise/uim/precise

« back to all changes in this revision

Viewing changes to qt4/chardict/kseparator.h

  • Committer: Package Import Robot
  • Author(s): Ilya Barygin
  • Date: 2011-12-18 16:35:38 UTC
  • mfrom: (1.1.13) (15.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20111218163538-8ktir39z2mjpii8z
Tags: 1:1.7.1-3ubuntu1
* Merge from Debian testing (LP: #818199).
* Remaining changes:
  - debian/uim-qt.install: Fix plugin path for multiarch location.
* Dropped changes:
  - uim-applet-gnome removal (GNOME 3 applet is available)
  - 19_as-needed_compile_fix.dpatch (accepted into Debian package)
* translations.patch: add several files to POTFILE.in to prevent
  intltool-update failure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 <QtGui/QFrame>
24
 
 
25
 
/**
26
 
 * Standard horizontal or vertical separator.
27
 
 *
28
 
 * @author Michael Roth <mroth@wirlweb.de>
29
 
 * @version $Id: kseparator.h,v 1.14 2004/09/09 15:23:53 faure Exp $
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
 
     * @param parent parent object.
39
 
     * @param name name of the new object.
40
 
     * @param f extra QWidget flags.
41
 
     **/
42
 
    explicit KSeparator( QWidget* parent = 0, Qt::WFlags f = 0 );
43
 
 
44
 
    /**
45
 
     * Constructor.
46
 
     * @param orientation Set the orientation of the separator.
47
 
     * Possible values are HLine or Horizontal and VLine or Vertical.
48
 
     * @param parent parent object.
49
 
     * @param name name of the new object.
50
 
     * @param f extra QWidget flags.
51
 
     **/
52
 
    explicit KSeparator( int orientation, QWidget* parent = 0,
53
 
                Qt::WFlags f = 0 );
54
 
 
55
 
    /**
56
 
     * Returns the orientation of the separator.
57
 
     * @return int Possible values are VLine and HLine.
58
 
     **/
59
 
    int orientation() const;
60
 
 
61
 
    /**
62
 
     * Set the orientation of the separator to @p orient
63
 
     *
64
 
     * @param orient Possible values are VLine and HLine.
65
 
     */
66
 
    void setOrientation( int orient );
67
 
 
68
 
    /**
69
 
     * The recommended height (width) for a horizontal (vertical) separator.
70
 
     **/
71
 
    virtual QSize sizeHint() const;
72
 
 
73
 
protected:
74
 
    /**
75
 
     * @param p pointer to painter
76
 
     */
77
 
    virtual void drawFrame( QPainter *p );
78
 
protected:
79
 
    virtual void virtual_hook( int id, void* data );
80
 
private:
81
 
    class KSeparatorPrivate* d;
82
 
};
83
 
 
84
 
 
85
 
#endif // __KSEPARATOR_H__