• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
kprogressbox.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2010 Timothy Pearson
3 Copyright (C) 1996 Martynas Kunigelis
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library 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 GNU
12 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 library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19/*****************************************************************************
20* *
21* KProgressBox -- progress indicator widget for KDE *
22* Original QRangeControl-based version written by Martynas Kunigelis *
23* Current TQProgressBar based version by Aaron Seigo *
24* Textbox extension by Timothy Pearson *
25* *
26*****************************************************************************/
27
28#ifndef _KProgressBox_H
29#define _KProgressBox_H "$Id: KProgressBox.h 589356 2006-09-28 00:58:09Z tpearson $"
30
31#include <tqprogressbar.h>
32#include <kdialogbase.h>
33#include <kprogress.h>
34#include <ktextedit.h>
35
54class TDEUI_EXPORT KProgressBoxDialog : public KDialogBase
55{
56 TQ_OBJECT
57
58 public:
68 KProgressBoxDialog(TQWidget* parent = 0, const char* name = 0,
69 const TQString& caption = TQString::null,
70 const TQString& text = TQString::null,
71 bool modal = false);
72
76 ~KProgressBoxDialog();
77
83 KProgress* progressBar();
84
90 KTextEdit* textEdit();
91
97 const KProgress* progressBar() const;
98
104 const KTextEdit* textEdit() const;
105
111 void setLabel(const TQString & text);
112
117 // ### Remove this KDE 4.0
118 TQString labelText() TDE_DEPRECATED;
119
123 TQString labelText() const;
124
134 void setAllowCancel(bool allowCancel);
135
141 void setAllowTextEdit(bool allowTextEdit);
142
147 // ### Remove this KDE 4.0
148 bool allowCancel() TDE_DEPRECATED;
149
153 bool allowCancel() const;
154
161 void showCancelButton(bool show);
162
167 void setAutoClose(bool close);
168
173 // ### Remove this KDE 4.0
174 bool autoClose();
175
180 bool autoClose() const;
181
187 void setAutoReset(bool autoReset);
188
193 // ### Remove this KDE 4.0
194 bool autoReset();
195
200 bool autoReset() const;
201
207 // ### Remove this KDE 4.0
208 bool wasCancelled();
209
215 bool wasCancelled() const;
216
223 void ignoreCancel();
224
228 void setButtonText(const TQString&);
229
234 // ### Remove this KDE 4.0
235 TQString buttonText() TDE_DEPRECATED;
236
240 TQString buttonText() const;
241
246 void setMinimumDuration(int ms);
247
252 // ### Remove this KDE 4.0
253 int minimumDuration() TDE_DEPRECATED;
254
258 int minimumDuration() const;
259
263 virtual void show();
264
265 protected slots:
266 void slotAutoShow();
267 void slotAutoActions(int percentage);
268 void slotCancel();
269
270 private:
271 // ### Move these member variables to d in KDE 4.0
272 bool mAutoClose;
273 bool mAutoReset;
274 bool mCancelled;
275 bool mAllowCancel;
276 bool mAllowTextEdit;
277 bool mShown;
278 TQString mCancelText;
279 TQLabel* mLabel;
280 KProgress* mProgressBar;
281 KTextEdit* mTextBox;
282 TQTimer* mShowTimer;
283 int mMinDuration;
284 protected:
285 virtual void virtual_hook( int id, void* data );
286 private:
287 struct KProgressBoxDialogPrivate;
288 KProgressBoxDialogPrivate *d;
289};
290
291#endif
KDialogBase::slotCancel
virtual void slotCancel()
Activated when the Cancel button has been clicked.
Definition kdialogbase.cpp:1215
KDialogBase::KDialogBase
KDialogBase(TQWidget *parent=0, const char *name=0, bool modal=true, const TQString &caption=TQString::null, int buttonMask=Ok|Apply|Cancel, ButtonCode defaultButton=Ok, bool separator=false, const KGuiItem &user1=KGuiItem(), const KGuiItem &user2=KGuiItem(), const KGuiItem &user3=KGuiItem())
Constructor for the standard mode where you must specify the main widget with setMainWidget() .
Definition kdialogbase.cpp:99
KDialogBase::setButtonText
void setButtonText(ButtonCode id, const TQString &text)
Sets the text of any button.
Definition kdialogbase.cpp:986
KProgressBoxDialog::showCancelButton
void showCancelButton(bool show)
Sets whether the cancel button is visible.
Definition kprogressbox.cpp:215
KProgressBoxDialog::autoReset
bool autoReset()
Returns true if the KProgressBox widget will be reset upon completion, or false otherwise.
Definition kprogressbox.cpp:237
KProgressBoxDialog::show
virtual void show()
Reimplemented for internal reasons, the API is not affected.
Definition kprogressbox.cpp:307
KProgressBoxDialog::setAutoReset
void setAutoReset(bool autoReset)
Sets whether the dialog should reset the KProgressBox dialog back to 0 steps compelete when all steps...
Definition kprogressbox.cpp:247
KProgressBoxDialog::setAutoClose
void setAutoClose(bool close)
Sets whether the dialog should close automagically when all the steps in the KProgressBox have been c...
Definition kprogressbox.cpp:231
KProgressBoxDialog::setAllowTextEdit
void setAllowTextEdit(bool allowTextEdit)
Sets whether or not the user can edit the text shown in the textbox.
Definition kprogressbox.cpp:162
KProgressBoxDialog::progressBar
KProgress * progressBar()
Returns the KProgressBox used in this dialog.
Definition kprogressbox.cpp:179
KProgressBoxDialog::setLabel
void setLabel(const TQString &text)
Sets the text in the dialog.
Definition kprogressbox.cpp:199
KProgressBoxDialog::KProgressBoxDialog
KProgressBoxDialog(TQWidget *parent=0, const char *name=0, const TQString &caption=TQString::null, const TQString &text=TQString::null, bool modal=false)
Constructs a KProgressBoxDialog.
Definition kprogressbox.cpp:56
KProgressBoxDialog::minimumDuration
int minimumDuration() TDE_DEPRECATED
Returns the wait duration in milliseconds.
Definition kprogressbox.cpp:146
KProgressBoxDialog::textEdit
KTextEdit * textEdit()
Returns the KTextEdit used in this dialog.
Definition kprogressbox.cpp:184
KProgressBoxDialog::wasCancelled
bool wasCancelled()
Returns true if the dialog was closed or canceled before completion.
Definition kprogressbox.cpp:121
KProgressBoxDialog::buttonText
TQString buttonText() TDE_DEPRECATED
Returns the text on the cancel button.
Definition kprogressbox.cpp:259
KProgressBoxDialog::ignoreCancel
void ignoreCancel()
Definition kprogressbox.cpp:126
KProgressBoxDialog::setAllowCancel
void setAllowCancel(bool allowCancel)
Sets whether or not the user can cancel the process.
Definition kprogressbox.cpp:156
KProgressBoxDialog::setMinimumDuration
void setMinimumDuration(int ms)
Set the minimum number of milliseconds to wait before actually showing the dialog.
Definition kprogressbox.cpp:136
KProgressBoxDialog::allowCancel
bool allowCancel() TDE_DEPRECATED
Returns true if the dialog can be canceled, false otherwise.
Definition kprogressbox.cpp:169
KProgressBoxDialog::labelText
TQString labelText() TDE_DEPRECATED
Returns the current dialog text.
Definition kprogressbox.cpp:205
KProgressBoxDialog::autoClose
bool autoClose()
Returns true if the dialog will close upon completion, or false otherwise.
Definition kprogressbox.cpp:221
KProgress
A progress indicator widget.
Definition kprogress.h:47
KTextEdit
A KDE'ified QTextEdit.
Definition ktextedit.h:44

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.15.0
This website is maintained by Timothy Pearson.