Subversion Repositories Scribus

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 paul 1
#include "about.h"
2
#include "about.moc"
3
#include <qpixmap.h>
4
#include "config.h"
5
 
6
extern QPixmap loadIcon(QString nam);
7
 
8
extern "C" void* Run(QWidget *d);
9
 
10
void* Run(QWidget *d)
11
{
12
        About *dia = new About(d);
13
        return dia;
14
}
15
 
16
About::About( QWidget* parent )
17
    : QDialog( parent, "About", true, 0 )
18
{
19
    setCaption( tr( "About Scribus")+" "+VERSION );
20
        setIcon(loadIcon("AppIcon.xpm"));
21
    AboutLayout = new QVBoxLayout( this );
22
    AboutLayout->setSpacing( 6 );
23
    AboutLayout->setMargin( 10 );
24
    TabWidget2 = new QTabWidget( this, "TabWidget2" );
25
    TabWidget2->setMinimumSize( QSize( 438, 258 ) );
26
    tab = new QWidget( TabWidget2, "tab" );
27
    tabLayout1 = new QVBoxLayout( tab );
28
    tabLayout1->setSpacing( 6 );
29
    tabLayout1->setMargin( 10 );
30
    PixmapLabel1 = new QLabel( tab, "PixmapLabel1" );
31
    PixmapLabel1->setPixmap(loadIcon("scribus_logo.jpg"));
32
    tabLayout1->addWidget( PixmapLabel1 );
33
    BuildID = new QLabel( tab, "BB" );
34
    BuildID->setAlignment(Qt::AlignCenter);
35
    QString bu;
36
    bu.sprintf("%s %s ", __TIME__, __DATE__);
37
#ifdef HAVE_FREETYPE
38
                bu += "F";
39
#else
40
                bu += "*";
41
#endif
42
                bu += "-";
43
#ifdef HAVE_CMS
44
                bu += "C";
45
#else
46
                bu += "*";
47
#endif
48
                bu += "-";
49
#ifdef HAVE_CUPS
50
                bu += "C";
51
#else
52
                bu += "*";
53
#endif
54
                bu += "-";
55
#ifdef HAVE_TIFF
56
                bu += "T";
57
#else
58
                bu += "*";
59
#endif
60
 
61
    BuildID->setText("Scribus Version "+QString(VERSION)+"\nBuild-ID: "+bu);
62
    tabLayout1->addWidget( BuildID );
63
    TabWidget2->insertTab( tab, tr( "About" ) );
64
    tab_2 = new QWidget( TabWidget2, "tab_2" );
65
    tabLayout = new QHBoxLayout( tab_2 );
66
    tabLayout->setSpacing( 6 );
67
    tabLayout->setMargin( 10 );
68
    TextView1 = new QTextView( tab_2, "TextView1" );
69
    TextView1->setText( "<table><tr><td><b>" + tr("Programming:") + "</b></td><td> </td></tr>" +
70
                        "<tr><td>Franz Schmid</td><td>Franz.Schmid@altmuehlnet.de</td></tr>" +
71
                        "<tr><td> </td><td> </td></tr>" +
72
                        "<tr><td><b>" + tr("Contributions from:") + "</b></td><td></td></tr>" +
73
                        "<tr><td>Christian Töpp</td><td>mr-ct@gmx.de</td></tr>" +
74
                        "<tr><td>Alastair Robinson</td><td>blackfive@fakenhamweb.co.uk</td></tr>" +
75
                        "<tr><td>Paul Johnson</td><td>paulf.johnson@ukonline.co.uk</td></tr>" +
76
                        "<tr><td></td><td> </td></tr>" +
77
                        "<tr><td><b>" + tr("Documentation:") + "</b></td><td></td></tr>" +
78
                        "<tr><td>Peter Linnell</td><td>scribusdocs@atlantictechsolutions.com</td></tr>" +
79
                        "<tr><td>Yves Ceccone</td><td>yves@yeccoe.org</td></tr>" +
80
                        "<tr><td>Thomas Zastrow</td><td>webmaster@thomas-zastrow.de</td></tr></table>");
81
    TextView1->setTextFormat( QTextView::RichText );
82
    tabLayout->addWidget( TextView1 );
83
    TabWidget2->insertTab( tab_2, tr( "Authors" ) );
84
    tab_3 = new QWidget( TabWidget2, "tab_3" );
85
    tabLayout_2 = new QHBoxLayout( tab_3 );
86
    tabLayout_2->setSpacing( 6 );
87
    tabLayout_2->setMargin( 10 );
88
    TextView2 = new QTextView( tab_3, "TextView1_2" );
89
    TextView2->setText( "<table><tr><td><b>" + tr("German:") + "</b></td><td> </td></tr>" +
90
                        "<tr><td>Franz Schmid</td><td>Franz.Schmid@altmuehlnet.de</td></tr>" +
91
                        "<tr><td> </td><td> </td></tr>" +
92
                        "<tr><td><b>" + tr("French:") + "</b></td><td> </td>" +
93
                        "<tr><td>Michel Briand</td><td>michelbriand@free.fr</td></tr>" +
94
                        "<tr><td>Yves Ceccone</td><td>yves@yeccoe.org</td></tr>" +
95
                        "<tr><td>Nicolas Boos</td><td>nicolas.boos@wanadoo.fr</td></tr>" +
96
                        "<tr><td> </td><td> </td></tr>" +
97
                        "<tr><td><b>" + tr("Spanish and Catalan:") + "</b></td><td> </td></tr>" +
98
                        "<tr><td>Josep Febrer</td><td>josep@linuxmail.org</td></tr>" +
99
                        "<tr><td> </td><td> </td></tr>" +
100
                        "<tr><td><b>" + tr("Hungarian and Italian:") + "</b></td><td> </td></tr>" +
101
                        "<tr><td>Giovanni Biczó</td><td>gbiczo@freestart.hu</td></tr>" +
102
                        "<tr><td> </td><td> </td></tr>" +
103
                        "<tr><td><b>" + tr("Ukrainian:") + "</b></td><td> </td></tr>" +
104
                        "<tr><td>Sergiy Kudryk</td><td>kudryk@yahoo.com</td></tr>" +
105
                        "<tr><td> </td><td> </td></tr>" +
106
                        "<tr><td><b>" + tr("Bulgarian:") + "</b></td><td> </td></tr>" +
107
                        "<tr><td>Vasko Tomanov</td><td>vasko@web.bg</td></tr>" +
108
                        "<tr><td> </td><td> </td></tr>" +
109
                        "<tr><td><b>" + tr("Galician:") + "</b></td><td> </td></tr>" +
110
                        "<tr><td>Manuel Anxo Rei</td><td>manxopar@avogaciagalega.org</td></tr>" +
111
                        "<tr><td> </td><td> </td></tr>" +
112
                        "<tr><td><b>" + tr("Turkish:") + "</b></td><td> </td></tr>" +
113
                        "<tr><td>Erkan Kaplan</td><td>Selamsana@uni.de</td></tr>" +
114
                        "<tr><td> </td><td> </td></tr>" +
115
                        "<tr><td><b>" + tr("Lithuanian:") + "</b></td><td> </td></tr>" +
116
                        "<tr><td>Aivaras Kirejevas</td><td>kiras@mail.lt</td></tr>" +
117
                        "<tr><td> </td><td> </td></tr>" +
118
                        "<tr><td><b>" + tr("Polish:") + "</b></td><td> </td></tr>" +
119
                        "<tr><td>Maciej Hański</td><td>m.hanski@gmx.at</td></tr>" +
120
                        "<tr><td> </td><td> </td></tr>" +
121
                        "<tr><td><b>" + tr("Slovak:") + "</b></td><td></td></tr>" +
122
                        "<tr><td>Zdenko Podobnę</td><td>zdpo@mailbox.sk</td></tr>" +
123
                        "<tr><td> </td><td> </td></tr>" +
124
                        "<tr><td><b>" + tr("Danish:") + "</b></td><td></td></tr>" +
125
                        "<tr><td>Morten Langlo</td><td>mlanglo@post6.tele.dk</td></tr>" +
126
                        "<tr><td> </td><td> </td></tr>" +
12 Franz 127
                        "<tr><td><b>" + tr("Norwegian:") + "</b></td><td></td></tr>" +
128
                        "<tr><td>Johannes Wilm</td><td>j@indymedia.no</td></tr>" +
129
                        "<tr><td> </td><td> </td></tr>" +
3 paul 130
                        "<tr><td><b>" + tr("English:") + "</b></td><td></td></tr>" +
131
                        "<tr><td>Paul F. Johnson</td><td>paulf.johnson@ukonline.co.uk</td></tr></table>");
132
    TextView2->setTextFormat( QTextView::RichText );
133
    tabLayout_2->addWidget( TextView2 );
134
    TabWidget2->insertTab( tab_3, tr( "Translations" ) );
135
    AboutLayout->addWidget( TabWidget2 );
136
    Layout2 = new QHBoxLayout;
137
    Layout2->setSpacing( 6 );
138
    Layout2->setMargin( 0 );
139
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
140
    Layout2->addItem( spacer );
141
    PushButton1 = new QPushButton( this, "PushButton1" );
142
    PushButton1->setText( tr( "Close" ) );
143
    PushButton1->setDefault( true );
144
    Layout2->addWidget( PushButton1 );
145
    AboutLayout->addLayout( Layout2 );
146
    setMaximumSize(sizeHint());
147
 
148
    // signals and slots connections
149
    connect( PushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) );
150
}
151
 
152
/*  
153
 *  Destroys the object and frees any allocated resources
154
 */
155
About::~About()
156
{
157
    // no need to delete child widgets, Qt does it all for us
158
}
159