• 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 
54 class TDEUI_EXPORT KProgressBoxDialog : public KDialogBase
55 {
56  Q_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() KDE_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() KDE_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() KDE_DEPRECATED;
236 
240  TQString buttonText() const;
241 
246  void setMinimumDuration(int ms);
247 
252  // ### Remove this KDE 4.0
253  int minimumDuration() KDE_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
KProgress
A progress indicator widget.
Definition: kprogress.h:46
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:191
KProgressBoxDialog
KProgressBoxDialog provides a dialog with a text label, a progress bar and an optional cancel button ...
Definition: kprogressbox.h:54
KDialogBase::slotCancel
virtual void slotCancel()
Activated when the Cancel button has been clicked.
Definition: kdialogbase.cpp:1215
KDialogBase::setButtonText
void setButtonText(ButtonCode id, const TQString &text)
Sets the text of any button.
Definition: kdialogbase.cpp:986
KTextEdit
A KDE'ified QTextEdit.
Definition: ktextedit.h:43

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.8.8
This website is maintained by Timothy Pearson.