File: saveformatdialog.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 (88 lines) | stat: -rw-r--r-- 3,485 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
/****************************************************************************
** Form implementation generated from reading ui file 'uic/saveformatdialog.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 "saveformatdialog.h"

#include <qbuttongroup.h>
#include <qcheckbox.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a SaveFormatDialog 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.
 */
SaveFormatDialog::SaveFormatDialog( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "SaveFormatForm" );
    resize( 350, 205 ); 
    setMaximumSize( QSize( 350, 205 ) );
    setCaption( tr( "Aethera: Select format"  ) );
    setMinimumSize( QSize( 350, 205 ) );

    ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" );
    ButtonGroup1->setGeometry( QRect( 10, 5, 330, 125 ) ); 
    ButtonGroup1->setTitle( tr( "Select format"  ) );

    formattedHTMLRadio = new QRadioButton( ButtonGroup1, "formattedHTMLRadio" );
    formattedHTMLRadio->setGeometry( QRect( 10, 20, 310, 20 ) ); 
    formattedHTMLRadio->setText( tr( "Formatted HTML source (HTML)"  ) );

    originalHTMLRadio = new QRadioButton( ButtonGroup1, "originalHTMLRadio" );
    originalHTMLRadio->setGeometry( QRect( 10, 40, 310, 20 ) ); 
    originalHTMLRadio->setText( tr( "Original HTML source (HTML)"  ) );

    formattedTextRadio = new QRadioButton( ButtonGroup1, "formattedTextRadio" );
    formattedTextRadio->setGeometry( QRect( 10, 60, 310, 21 ) ); 
    formattedTextRadio->setText( tr( "Formatted text (HTML)"  ) );

    originalTextRadio = new QRadioButton( ButtonGroup1, "originalTextRadio" );
    originalTextRadio->setGeometry( QRect( 10, 80, 310, 20 ) ); 
    originalTextRadio->setText( tr( "Original text (plain text)"  ) );

    entireMessageRadio = new QRadioButton( ButtonGroup1, "entireMessageRadio" );
    entireMessageRadio->setGeometry( QRect( 10, 100, 310, 21 ) ); 
    entireMessageRadio->setText( tr( "Entire message (plain text in Internet format)"  ) );
    entireMessageRadio->setChecked( TRUE );

    saveImagesCheckbox = new QCheckBox( this, "saveImagesCheckbox" );
    saveImagesCheckbox->setGeometry( QRect( 70, 135, 211, 25 ) ); 
    saveImagesCheckbox->setText( tr( "&Save additional document images"  ) );
    saveImagesCheckbox->setEnabled( FALSE );

    okButton = new QPushButton( this, "okButton" );
    okButton->setGeometry( QRect( 90, 165, 80, 30 ) ); 
    okButton->setText( tr( "&Ok"  ) );
    okButton->setDefault( TRUE );

    cancelButton = new QPushButton( this, "cancelButton" );
    cancelButton->setGeometry( QRect( 180, 165, 80, 30 ) ); 
    cancelButton->setText( tr( "&Cancel"  ) );

    // signals and slots connections
    connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( cancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) );
}

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