• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeprint
 

kdeprint

  • kdeprint
  • management
kdeprint_management_module.cpp
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
4  * Copyright (C) 2004 Dominique Devriese <devriese@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License version 2 as published by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  **/
20 
21 #include "kxmlcommandselector.h"
22 #include "kmconfigdialog.h"
23 #include "kmwizard.h"
24 #include "kmfactory.h"
25 #include "kmmanager.h"
26 #include "kmprinter.h"
27 #include "kmmainview.h"
28 
29 #include <kmessagebox.h>
30 #include <kdialogbase.h>
31 #include <klocale.h>
32 
33 extern "C"
34 {
35  KDEPRINT_EXPORT int add_printer_wizard(TQWidget *parent)
36  {
37  return kdeprint_management_add_printer_wizard( parent );
38  }
39 
40  KDEPRINT_EXPORT bool config_dialog(TQWidget *parent)
41  {
42  KMConfigDialog dlg(parent);
43  return dlg.exec();
44  }
45 
46  KDEPRINT_EXPORT TQString select_command( TQWidget* parent )
47  {
48  KDialogBase dlg( parent, 0, true, i18n( "Select Command" ), KDialogBase::Ok|KDialogBase::Cancel );
49  KXmlCommandSelector *xmlSel = new KXmlCommandSelector( false, &dlg, "CommandSelector", &dlg );
50  dlg.setMainWidget( xmlSel );
51  if ( dlg.exec() )
52  return xmlSel->command();
53  return TQString::null;
54  }
55 }
56 

kdeprint

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

kdeprint

Skip menu "kdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeprint by doxygen 1.8.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |