~ubuntu-branches/ubuntu/utopic/smb4k/utopic-proposed

« back to all changes in this revision

Viewing changes to smb4k/dialogs/smb4kprintdialog.h

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2012-05-19 18:54:34 UTC
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: package-import@ubuntu.com-20120519185434-kpqpdrg5i47zm7tl
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
    smb4kprintdialog  -  The print dialog for Smb4K
3
 
                             -------------------
4
 
    begin                : So Apr 11 2004
5
 
    copyright            : (C) 2004-2008 by Alexander Reinholdt
6
 
    email                : dustpuppy@users.berlios.de
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *   This program is free software; you can redistribute it and/or modify  *
11
 
 *   it under the terms of the GNU General Public License as published by  *
12
 
 *   the Free Software Foundation; either version 2 of the License, or     *
13
 
 *   (at your option) any later version.                                   *
14
 
 *                                                                         *
15
 
 *   This program is distributed in the hope that it will be useful, but   *
16
 
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
17
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
18
 
 *   General Public License for more details.                              *
19
 
 *                                                                         *
20
 
 *   You should have received a copy of the GNU General Public License     *
21
 
 *   along with this program; if not, write to the                         *
22
 
 *   Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,   *
23
 
 *   MA  02111-1307 USA                                                    *
24
 
 ***************************************************************************/
25
 
 
26
 
#ifndef SMB4KPRINTDIALOG_H
27
 
#define SMB4KPRINTDIALOG_H
28
 
 
29
 
#ifdef HAVE_CONFIG_H
30
 
#include <config.h>
31
 
#endif
32
 
 
33
 
// Qt includes
34
 
#include <QString>
35
 
 
36
 
// KDE includes
37
 
#include <kdialog.h>
38
 
#include <kurlrequester.h>
39
 
#include <knuminput.h>
40
 
#include <kdemacros.h>
41
 
 
42
 
// application specific includes
43
 
#include <core/smb4kshare.h>
44
 
 
45
 
 
46
 
/**
47
 
 * This class provides the print dialog for Smb4K. You can choose the
48
 
 * file that is to be printed and you can define the number of copies
49
 
 * you want to have.
50
 
 *
51
 
 * @author Alexander Reinholdt <dustpuppy@users.berlios.de>
52
 
 */
53
 
 
54
 
class KDE_EXPORT Smb4KPrintDialog : public KDialog
55
 
{
56
 
  Q_OBJECT
57
 
 
58
 
  public:
59
 
    /**
60
 
     * The constructor.
61
 
     *
62
 
     * @param share       The Smb4KShare item representing the printer.
63
 
     *
64
 
     * @param parent      The parent widget of this dialog.
65
 
     */
66
 
    Smb4KPrintDialog( Smb4KShare *share,
67
 
                      QWidget *parent = 0 );
68
 
 
69
 
    /**
70
 
     * The destructor
71
 
     */
72
 
    ~Smb4KPrintDialog();
73
 
 
74
 
  protected slots:
75
 
    /**
76
 
     * This slot is called when the User1 (i.e. the "Print") button
77
 
     * has been clicked.
78
 
     */
79
 
    void slotUser1Clicked();
80
 
 
81
 
    /**
82
 
     * This slot is called when the Cancel button has been clicked.
83
 
     */
84
 
    void slotCancelClicked();
85
 
 
86
 
    /**
87
 
     * This slot is connected to the Smb4KPrint::state() signal.
88
 
     */
89
 
    void slotPrintStateChanged( int state );
90
 
 
91
 
    /**
92
 
     * This slot is being enabled if there is input text.
93
 
     *
94
 
     * @param text        The input text.
95
 
     */
96
 
    void slotInputValueChanged( const QString &text );
97
 
 
98
 
  private:
99
 
    /**
100
 
     * Set up the view.
101
 
     */
102
 
    void setupView();
103
 
 
104
 
    /**
105
 
     * The Smb4KShareItem object.
106
 
     */
107
 
    Smb4KShare m_share;
108
 
 
109
 
    /**
110
 
     * The url requester
111
 
     */
112
 
    KUrlRequester *m_file;
113
 
 
114
 
    /**
115
 
     * The copies input
116
 
     */
117
 
    KIntNumInput *m_copies;
118
 
};
119
 
 
120
 
#endif