File: sendreceivedialogbase.cpp

package info (click to toggle)
aethera 0.9.3-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,588 kB
  • ctags: 7,282
  • sloc: cpp: 64,544; sh: 9,913; perl: 1,756; makefile: 1,680; python: 258
file content (101 lines) | stat: -rw-r--r-- 3,997 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/****************************************************************************
** Form implementation generated from reading ui file 'uic/sendreceivedialogbase.ui'
**
** Created: Sun Nov 26 00:34:27 2000
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "sendreceivedialogbase.h"

#include <qcheckbox.h>
#include <qlabel.h>
#include <qprogressbar.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a SendReceiveDialogBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
SendReceiveDialogBase::SendReceiveDialogBase( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "SendReceiveDialog" );
    resize( 490, 320 ); 
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, sizePolicy().hasHeightForWidth() ) );
    setCaption( tr( "Aethera: Send/Receive"  ) );
    setBaseSize( QSize( 0, 0 ) );
    setMinimumSize( QSize( 490, 320 ) );
    setMaximumSize( QSize( 490, 320 ) );

    sendLabel = new QLabel( this, "sendLabel" );
    sendLabel->setGeometry( QRect( 10, 60, 340, 21 ) ); 
    sendLabel->setText( tr( "TextLabel2"  ) );

    dontShowCheckbox = new QCheckBox( this, "dontShowCheckbox" );
    dontShowCheckbox->setGeometry( QRect( 10, 290, 281, 20 ) ); 
    dontShowCheckbox->setText( tr( "&Don't show this dialog again"  ) );
    QWhatsThis::add(  dontShowCheckbox, tr( "Check the box if you don't want this dialog to appear automatically." ) );

    pinToggleButton = new QPushButton( this, "pinToggleButton" );
    pinToggleButton->setGeometry( QRect( 450, 290, 30, 26 ) ); 
    pinToggleButton->setText( tr( "pin"  ) );
    pinToggleButton->setToggleButton( TRUE );
    QToolTip::add(  pinToggleButton, tr( "" ) );
    QWhatsThis::add(  pinToggleButton, tr( "Press this if you want this dialog to be displayed at all times" ) );

    stopButton = new QPushButton( this, "stopButton" );
    stopButton->setGeometry( QRect( 400, 70, 80, 30 ) ); 
    stopButton->setText( tr( "&Stop"  ) );
    QWhatsThis::add(  stopButton, tr( "Stops mail delivery and marks the account(s) involved as temporarly inactive." ) );

    hideButton = new QPushButton( this, "hideButton" );
    hideButton->setGeometry( QRect( 400, 30, 80, 30 ) ); 
    hideButton->setText( tr( "&Hide"  ) );
    QWhatsThis::add(  hideButton, tr( "Hides this dialog.\nMail delivery will continue in background." ) );

    receiveLabel = new QLabel( this, "receiveLabel" );
    receiveLabel->setGeometry( QRect( 10, 10, 340, 21 ) ); 
    receiveLabel->setText( tr( "TextLabel1"  ) );

    receiveProgressBar = new QProgressBar( this, "receiveProgressBar" );
    receiveProgressBar->setGeometry( QRect( 10, 30, 370, 21 ) ); 

    sendProgressBar = new QProgressBar( this, "sendProgressBar" );
    sendProgressBar->setGeometry( QRect( 10, 80, 370, 21 ) ); 

    TextLabel3 = new QLabel( this, "TextLabel3" );
    TextLabel3->setGeometry( QRect( 10, 120, 341, 16 ) ); 
    TextLabel3->setText( tr( "Log:"  ) );

    // signals and slots connections
    connect( hideButton, SIGNAL( clicked() ), this, SLOT( hideProgress() ) );
    connect( stopButton, SIGNAL( clicked() ), this, SLOT( stopDelivery() ) );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
SendReceiveDialogBase::~SendReceiveDialogBase()
{
    // no need to delete child widgets, Qt does it all for us
}

void SendReceiveDialogBase::hideProgress()
{
    qWarning( "SendReceiveDialogBase::hideProgress(): Not implemented yet!" );
}

void SendReceiveDialogBase::stopDelivery()
{
    qWarning( "SendReceiveDialogBase::stopDelivery(): Not implemented yet!" );
}