Debian Codegraph @

src/progressbar.cpp

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2014 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 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 General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "progressbar.h"cxx . . $ `<file>/src/progressbar.h`/
19
20 #include <QHBoxLayout>
21 #include <QtGui>
22
23 ProgressBarcxx . . $ ProgressBar#::ProgressBarcxx . . $ ProgressBar#ProgressBar(d4d784ff5f449b0d).(QWidgetcxx . . $ QWidget#* parent, const char* name)
24 : QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(parent)
25 {
26
27 QHBoxLayoutcxx . . $ QHBoxLayout#* mainLayout = new QHBoxLayoutcxx . . $ QHBoxLayout#;
28 mainLayout->setMargincxx . . $ QLayout#setMargin(d4f767463ce0a6b3).(0);
29 mainLayout->setSpacingcxx . . $ QBoxLayout#setSpacing(d4f767463ce0a6b3).(1);
30
31 barcxx . . $ ProgressBar#bar. = new QProgressBarcxx . . $ QProgressBar#(this);
32 barcxx . . $ ProgressBar#bar.->setMinimumHeightcxx . . $ QWidget#setMinimumHeight(d4f767463ce0a6b3).(16);
33 barcxx . . $ ProgressBar#bar.->setRangecxx . . $ QProgressBar#setRange(3e454b8ccf442868).(0, 100);
34
35 clearButtoncxx . . $ ProgressBar#clearButton. = new QToolButtoncxx . . $ QToolButton#(this);
36 QPixmapcxx . . $ QPixmap# pixmapcxx . . $ QPixmap#QPixmap(dec4543235ec9b46).(":clear_left.png"cxx . . $ QString#QString(85c52e162fed56f9).);
37 clearButtoncxx . . $ ProgressBar#clearButton.->setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(8887f7d25b86c3f4).(pixmap));
38 clearButtoncxx . . $ ProgressBar#clearButton.->setIconSizecxx . . $ QAbstractButton#setIconSize(1c5f201b4c2f0aba).(QSizecxx . . $ QSize#QSize(c0d38f4800714fae).(18, 17));
39 clearButtoncxx . . $ ProgressBar#clearButton.->setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).("QToolButton {max-height: 16px;min-height: 16px;margin-top: -2px;}"cxx . . $ QString#QString(85c52e162fed56f9).);
40 clearButtoncxx . . $ ProgressBar#clearButton.->resizecxx . . $ QWidget#resize(3e454b8ccf442868).(22, 16);
41 connectcxx . . $ QObject#connect(158df1d9a01a3410).(clearButtoncxx . . $ ProgressBar#clearButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(stopped()));
42
43 mainLayout->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(clearButtoncxx . . $ ProgressBar#clearButton.);
44 mainLayout->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(barcxx . . $ ProgressBar#bar.);
45
46 setLayoutcxx . . $ QWidget#setLayout(23396b1058755fec).(mainLayout);
47 }
48
49 ProgressBarcxx . . $ ProgressBar#::~cxx . . $ ProgressBar#`~ProgressBar`(ced63f7c635d850d).ProgressBarcxx . . $ ProgressBar#() {}
50
51 void ProgressBarcxx . . $ ProgressBar#::setValuecxx . . $ ProgressBar#setValue(d4f767463ce0a6b3).(int value)
52 {
53 barcxx . . $ ProgressBar#bar.->setValuecxx . . $ QProgressBar#setValue(d4f767463ce0a6b3).(value);
54 if (value > 0 && value < 100)
55 this->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
56 else
57 this->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
58 }
59
60 int ProgressBarcxx . . $ ProgressBar#::valuecxx . . $ ProgressBar#value(b126dc7c1de90089).()
61 {
62 return barcxx . . $ ProgressBar#bar.->valuecxx . . $ QProgressBar#value(455f465bc33b4cdf).();
63 }
64
65 void ProgressBarcxx . . $ ProgressBar#::resizeEventcxx . . $ ProgressBar#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent#* ev)
66 {
67 barcxx . . $ ProgressBar#bar.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(0, 0, ev->sizecxx . . $ QResizeEvent#size(68bda57ac551785b).().widthcxx . . $ QSize#width(ea6fe5115c70a13f).(), 20);
68 }