• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
chooseenginedialog.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #include "chooseenginedialog_p.h"
11 
12 #include <QtGui/QComboBox>
13 #include <QtGui/QLabel>
14 
15 #include <klocale.h>
16 
17 #include "ui_chooseenginewidget.h"
18 
19 ChooseEngineDialog::ChooseEngineDialog( const QStringList &generators, const KMimeType::Ptr &mime, QWidget * parent )
20  : KDialog( parent )
21 {
22  setCaption( i18n( "Backend Selection" ) );
23  setButtons( Ok | Cancel );
24  setDefaultButton( Ok );
25  QWidget *main = new QWidget( this );
26  setMainWidget( main );
27  m_widget = new Ui_ChooseEngineWidget();
28  m_widget->setupUi( main );
29 
30  m_widget->engineList->addItems(generators);
31 
32  m_widget->description->setText(
33  i18n( "<qt>More than one backend found for the MIME type:<br />"
34  "<b>%1</b> (%2).<br /><br />"
35  "Please select which one to use:</qt>", mime->comment(), mime->name() ) );
36 }
37 
38 ChooseEngineDialog::~ChooseEngineDialog()
39 {
40  delete m_widget;
41 }
42 
43 int ChooseEngineDialog::selectedGenerator() const
44 {
45  return m_widget->engineList->currentIndex();
46 }
QWidget
chooseenginedialog_p.h
ChooseEngineDialog::m_widget
Ui_ChooseEngineWidget * m_widget
Definition: chooseenginedialog_p.h:29
main
Definition: main.qml:23
ChooseEngineDialog::~ChooseEngineDialog
~ChooseEngineDialog()
Definition: chooseenginedialog.cpp:38
ChooseEngineDialog::ChooseEngineDialog
ChooseEngineDialog(const QStringList &generators, const KMimeType::Ptr &mime, QWidget *parent=0)
Definition: chooseenginedialog.cpp:19
ChooseEngineDialog::selectedGenerator
int selectedGenerator() const
Definition: chooseenginedialog.cpp:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal