1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User's Guide: qwt_arrbtn.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>qwt_arrbtn.h</h1><pre class="fragment"><div>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span>
00002 <span class="comment"> * Qwt Widget Library</span>
00003 <span class="comment"> * Copyright (C) 1997 Josef Wilgen</span>
00004 <span class="comment"> * Copyright (C) 2002 Uwe Rathmann</span>
00005 <span class="comment"> * </span>
00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
00008 <span class="comment"> *****************************************************************************/</span>
00009
00010 <span class="preprocessor">#ifndef QWT_ARRBTN_H</span>
00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_ARRBTN_H</span>
00012 <span class="preprocessor"></span>
00013 <span class="preprocessor">#include <qpushbutton.h></span>
00014 <span class="preprocessor">#include "qwt_global.h"</span>
00015
<a name="l00023"></a><a class="code" href="class_qwt_arrow_button.html">00023</a> <span class="keyword">class </span>QWT_EXPORT QwtArrowButton : <span class="keyword">public</span> QPushButton
00024 {
00025 <span class="keyword">public</span>:
00026 QwtArrowButton (<span class="keywordtype">int</span> num, Qt::ArrowType, QWidget *parent,
00027 <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0);
00028
00029 Qt::ArrowType arrowType() <span class="keyword">const</span>;
00030 <span class="keywordtype">int</span> num() <span class="keyword">const</span>;
00031
00032 <span class="keyword">virtual</span> QSize sizeHint() <span class="keyword">const</span>;
00033 <span class="keyword">virtual</span> QSize minimumSizeHint() <span class="keyword">const</span>;
00034 <span class="keyword">virtual</span> QSizePolicy sizePolicy() <span class="keyword">const</span>;
00035
00036 <span class="keyword">protected</span>:
00037 <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawButtonLabel(QPainter *p);
00038 <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawArrow(QPainter *,
00039 <span class="keyword">const</span> QRect &, Qt::ArrowType) <span class="keyword">const</span>;
00040 <span class="keyword">virtual</span> QRect labelRect() <span class="keyword">const</span>;
00041 <span class="keyword">virtual</span> QSize arrowSize(Qt::ArrowType,
00042 <span class="keyword">const</span> QSize &boundingSize) <span class="keyword">const</span>;
00043
00044 <span class="keyword">virtual</span> <span class="keywordtype">void</span> keyPressEvent(QKeyEvent *);
00045
00046 <span class="keyword">private</span>:
00047
00048 <span class="keyword">const</span> <span class="keywordtype">int</span> d_num;
00049 <span class="keyword">const</span> Qt::ArrowType d_arrowType;
00050 };
00051
00052 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:20 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|