1
/* ============================================================
2
* File : camerainfodialog.cpp
3
* Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
7
* Copyright 2003 by Renchi Raju
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)
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.
20
* ============================================================ */
27
#include <qtextedit.h>
29
#include "camerainfodialog.h"
32
CameraInfoDialog::CameraInfoDialog(const QString& summary,
33
const QString& manual,
35
: KDialogBase(KJanusWidget::Tabbed, i18n("Camera Information"),
40
// ----------------------------------------------------------
42
QFrame *p1 = addPage( i18n("Summary") );
43
QVBoxLayout *p1layout = new QVBoxLayout( p1, 0, 6 );
45
QTextEdit *summaryView = new QTextEdit(summary, QString::null,
47
summaryView->setWordWrap(QTextEdit::WidgetWidth);
48
summaryView->setReadOnly(true);
49
p1layout->addWidget(summaryView);
51
// ----------------------------------------------------------
53
QFrame *p2 = addPage( i18n("Manual") );
54
QVBoxLayout *p2layout = new QVBoxLayout( p2, 0, 6 );
56
QTextEdit *manualView = new QTextEdit(manual, QString::null,
58
manualView->setWordWrap(QTextEdit::WidgetWidth);
59
manualView->setReadOnly(true);
60
p2layout->addWidget(manualView);
62
// ----------------------------------------------------------
64
QFrame *p3 = addPage( i18n("About") );
65
QVBoxLayout *p3layout = new QVBoxLayout( p3, 0, 6 );
68
QTextEdit *aboutView = new QTextEdit(about, QString::null,
70
aboutView->setWordWrap(QTextEdit::WidgetWidth);
71
aboutView->setReadOnly(true);
72
p3layout->addWidget(aboutView);
76
CameraInfoDialog::~CameraInfoDialog()