summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/dialogs/exportallviewsdialog.h
blob: 5c4bcba96047b7b0283f621d20e9aaa7d0cfbd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   copyright (C) 2006-2007                                               *
 *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
 ***************************************************************************/

#ifndef EXPORTALLVIEWSDIALOG_H
#define EXPORTALLVIEWSDIALOG_H

// application specific includes
#include "exportallviewsdialogbase.h"

// KDE forward declarations
class KFileFilterCombo;

/**
 * Dialog for collecting the "Export all views" params.
 * Inherits ExportAllViewsDialogBase and adds a KFileFilterCombo that uses
 * only the mime types of the supported images types.
 *
 * The KFileFilterCombo is declared here instead of in the .ui file because QT
 * Designer and uic don't recognize it.
 */
class ExportAllViewsDialog : public ExportAllViewsDialogBase {
  Q_OBJECT
  

public:

    /**
     * Constructor for UMLViewImageExporterModel.
     *
     * @param parent The parent of the dialog.
     * @param name The internal name.
     * @param modal If modal is true the dialog will block input to other the windows
     *              in the application until it's closed.
     * @param fl Window flags.
     * @param defaultMimeType The default mime type that appears in the mime types list.
     *
     * @see TQDialog::TQDialog
     */
    explicit ExportAllViewsDialog(TQWidget* parent = 0, const char* name = 0,
                         bool modal = false, WFlags fl = 0,
                         const TQString& defaultMimeType = "image/png");

    /**
     * Destructor for UMLViewImageExporterModel.
     */
    ~ExportAllViewsDialog() {
    }

    /**
     * The image type selected.
     */
    KFileFilterCombo* m_imageType;

protected slots:

    /**
     *  Sets the strings of the subwidgets using the current
     *  language.
     */
    virtual void languageChange();

};

#endif