~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/utilities/cameragui/dialogs/camerainfodialog.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ============================================================
2
 
 *
3
 
 * This file is a part of digiKam project
4
 
 * http://www.digikam.org
5
 
 *
6
 
 * Date        : 2003-01-28
7
 
 * Description : a dialog to display camera information.
8
 
 *
9
 
 * Copyright (C) 2003-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
10
 
 * Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
 
 *
12
 
 * This program is free software; you can redistribute it
13
 
 * and/or modify it under the terms of the GNU General
14
 
 * Public License as published by the Free Software Foundation;
15
 
 * either version 2, or (at your option)
16
 
 * any later version.
17
 
 *
18
 
 * This program is distributed in the hope that it will be useful,
19
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 
 * GNU General Public License for more details.
22
 
 *
23
 
 * ============================================================ */
24
 
 
25
 
#include "camerainfodialog.h"
26
 
 
27
 
// Qt includes
28
 
 
29
 
#include <QTextEdit>
30
 
 
31
 
// KDE includes
32
 
 
33
 
#include <kicon.h>
34
 
#include <klocale.h>
35
 
#include <ktextedit.h>
36
 
 
37
 
 
38
 
namespace Digikam
39
 
{
40
 
 
41
 
CameraInfoDialog::CameraInfoDialog(QWidget* parent, const QString& summary, const QString& manual,
42
 
                                   const QString& about)
43
 
    : KPageDialog(parent)
44
 
{
45
 
    setCaption(i18n("Device Information"));
46
 
    setButtons(KDialog::Help | KDialog::Ok);
47
 
    setDefaultButton(KDialog::Ok);
48
 
    setHelp("digitalstillcamera.anchor", "digikam");
49
 
    setFaceType(KPageDialog::List);
50
 
    setModal(true);
51
 
    resize(500, 400);
52
 
 
53
 
    // ----------------------------------------------------------
54
 
 
55
 
    KTextEdit* summaryView = new KTextEdit(summary);
56
 
    summaryView->setWordWrapMode(QTextOption::WordWrap);
57
 
    summaryView->setReadOnly(true);
58
 
 
59
 
    KPageWidgetItem* p1 = addPage(summaryView, i18n("Summary"));
60
 
    p1->setHeader(i18n("Device Summary"));
61
 
    p1->setIcon(KIcon("dialog-information"));
62
 
 
63
 
    // ----------------------------------------------------------
64
 
 
65
 
    KTextEdit* manualView = new KTextEdit(manual);
66
 
    manualView->setWordWrapMode(QTextOption::WordWrap);
67
 
    manualView->setReadOnly(true);
68
 
 
69
 
    KPageWidgetItem* p2 = addPage(manualView, i18n("Manual"));
70
 
    p2->setHeader(i18n("Device Manual"));
71
 
    p2->setIcon(KIcon("help-contents"));
72
 
 
73
 
    // ----------------------------------------------------------
74
 
 
75
 
    KTextEdit* aboutView = new KTextEdit(about);
76
 
    aboutView->setWordWrapMode(QTextOption::WordWrap);
77
 
    aboutView->setReadOnly(true);
78
 
 
79
 
    KPageWidgetItem* p3 = addPage(aboutView, i18n("About"));
80
 
    p3->setHeader(i18n("About Driver"));
81
 
    p3->setIcon(KIcon("camera-photo"));
82
 
}
83
 
 
84
 
CameraInfoDialog::~CameraInfoDialog()
85
 
{
86
 
}
87
 
 
88
 
}  // namespace Digikam