33 #ifndef __KPIM_PROGRESSDIALOG_H__
34 #define __KPIM_PROGRESSDIALOG_H__
37 #include <tqlistview.h>
40 #include "overlaywidget.h"
41 #include <tdemacros.h>
49 class TransactionItemListView;
50 class TransactionItem;
53 class TransactionItemView :
public TQScrollView {
57 TransactionItemView( TQWidget * parent = 0,
58 const char * name = 0,
61 virtual ~TransactionItemView()
63 TransactionItem* addTransactionItem( ProgressItem *item,
bool first );
66 TQSize sizeHint()
const;
67 TQSize minimumSizeHint()
const;
69 void slotLayoutFirstItem();
72 virtual void resizeContents (
int w,
int h );
78 class TransactionItem :
public TQVBox {
84 TransactionItem( TQWidget * parent,
85 ProgressItem* item,
bool first );
91 void setProgress(
int progress );
92 void setLabel(
const TQString& );
93 void setStatus(
const TQString& );
94 void setCrypto(
bool );
95 void setTotalSteps(
int totalSteps );
97 ProgressItem* item()
const {
return mItem; }
99 void addSubTransaction( ProgressItem *item);
103 void setItemComplete() { mItem = 0; }
106 void slotItemCanceled();
109 TQProgressBar* mProgress;
110 TQPushButton* mCancelButton;
112 TQLabel* mItemStatus;
118 class TDE_EXPORT ProgressDialog :
public OverlayWidget
124 ProgressDialog( TQWidget* alignWidget, TQWidget* parent,
const char* name = 0 );
126 void setVisible(
bool b );
129 void slotToggleVisibility();
132 void slotTransactionAdded( KPIM::ProgressItem *item );
133 void slotTransactionCompleted( KPIM::ProgressItem *item );
134 void slotTransactionCanceled( KPIM::ProgressItem *item );
135 void slotTransactionProgress( KPIM::ProgressItem *item,
unsigned int progress );
136 void slotTransactionStatus( KPIM::ProgressItem *item,
const TQString& );
137 void slotTransactionLabel( KPIM::ProgressItem *item,
const TQString& );
138 void slotTransactionUsesCrypto( KPIM::ProgressItem *item,
bool );
139 void slotTransactionUsesBusyIndicator( KPIM::ProgressItem*,
bool );
146 void visibilityChanged(
bool );
149 virtual void closeEvent( TQCloseEvent* );
151 TransactionItemView* mScrollView;
152 TransactionItem* mPreviousItem;
153 TQMap< const ProgressItem*, TransactionItem* > mTransactionsToListviewItems;
TDEPIM classes for drag and drop of mails.