~ubuntu-branches/ubuntu/hoary/digikam/hoary

« back to all changes in this revision

Viewing changes to digikamcameraclient/cameraui/camerainfodialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2004-12-01 21:25:37 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041201212537-n3lss68skjz6g2cg
Tags: 0.7-3
Digikam Depends: libimlib2-dev to workaround current imlib2 issues
(See Bug#283339)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ============================================================
2
 
 * File  : camerainfodialog.cpp
3
 
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
4
 
 * Date  : 2003-01-28
5
 
 * Description : 
6
 
 * 
7
 
 * Copyright 2003 by Renchi Raju
8
 
 *
9
 
 * This program is free software; you can redistribute it
10
 
 * and/or modify it under the terms of the GNU General
11
 
 * Public License as published bythe Free Software Foundation;
12
 
 * either version 2, or (at your option)
13
 
 * any later version.
14
 
 * 
15
 
 * This program is distributed in the hope that it will be useful,
16
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
 * GNU General Public License for more details.
19
 
 * 
20
 
 * ============================================================ */
21
 
 
22
 
#include <klocale.h>
23
 
 
24
 
#include <qstring.h>
25
 
#include <qlayout.h>
26
 
#include <qframe.h>
27
 
#include <qtextedit.h>
28
 
 
29
 
#include "camerainfodialog.h"
30
 
 
31
 
 
32
 
CameraInfoDialog::CameraInfoDialog(const QString& summary,
33
 
                                   const QString& manual,
34
 
                                   const QString& about)
35
 
    : KDialogBase(KJanusWidget::Tabbed, i18n("Camera Information"),
36
 
                  Ok, Ok)
37
 
{
38
 
    resize(500, 400);
39
 
 
40
 
    // ----------------------------------------------------------
41
 
    
42
 
    QFrame *p1 = addPage( i18n("Summary") );
43
 
    QVBoxLayout *p1layout = new QVBoxLayout( p1, 0, 6 );
44
 
 
45
 
    QTextEdit *summaryView = new QTextEdit(summary, QString::null,
46
 
                                           p1);
47
 
    summaryView->setWordWrap(QTextEdit::WidgetWidth);
48
 
    summaryView->setReadOnly(true);
49
 
    p1layout->addWidget(summaryView);
50
 
 
51
 
    // ----------------------------------------------------------
52
 
 
53
 
    QFrame *p2 = addPage( i18n("Manual") );
54
 
    QVBoxLayout *p2layout = new QVBoxLayout( p2, 0, 6 );
55
 
 
56
 
    QTextEdit *manualView = new QTextEdit(manual, QString::null,
57
 
                                           p2);
58
 
    manualView->setWordWrap(QTextEdit::WidgetWidth);
59
 
    manualView->setReadOnly(true);
60
 
    p2layout->addWidget(manualView);
61
 
 
62
 
    // ----------------------------------------------------------
63
 
 
64
 
    QFrame *p3 = addPage( i18n("About") );
65
 
    QVBoxLayout *p3layout = new QVBoxLayout( p3, 0, 6 );
66
 
    
67
 
 
68
 
    QTextEdit *aboutView = new QTextEdit(about, QString::null,
69
 
                                         p3);
70
 
    aboutView->setWordWrap(QTextEdit::WidgetWidth);
71
 
    aboutView->setReadOnly(true);
72
 
    p3layout->addWidget(aboutView);
73
 
 
74
 
}
75
 
 
76
 
CameraInfoDialog::~CameraInfoDialog()
77
 
{
78
 
    
79
 
}