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

tdeprint

  • tdeprint
  • management
tdeprint_management_module.cpp
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <tdeprint@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 <tdemessagebox.h>
30 #include <kdialogbase.h>
31 #include <tdelocale.h>
32 
33 extern "C"
34 {
35  TDEPRINT_EXPORT int add_printer_wizard(TQWidget *parent)
36  {
37  return tdeprint_management_add_printer_wizard( parent );
38  }
39 
40  TDEPRINT_EXPORT bool config_dialog(TQWidget *parent)
41  {
42  KMConfigDialog dlg(parent);
43  return dlg.exec();
44  }
45 
46  TDEPRINT_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 

tdeprint

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

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.9.1
This website is maintained by Timothy Pearson.