summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad/importdialog.cpp
Unidiff
Diffstat (limited to 'noncore/graphics/drawpad/importdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/importdialog.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/importdialog.cpp b/noncore/graphics/drawpad/importdialog.cpp
new file mode 100644
index 0000000..7722417
--- a/dev/null
+++ b/noncore/graphics/drawpad/importdialog.cpp
@@ -0,0 +1,41 @@
1/***************************************************************************
2 * *
3 * DrawPad - a drawing program for Opie Environment *
4 * *
5 * (C) 2002 by S. Prud'homme <prudhomme@laposte.net> *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 ***************************************************************************/
13
14#include "importdialog.h"
15
16#include <qpe/applnk.h>
17#include <qpe/fileselector.h>
18
19#include <qlayout.h>
20
21ImportDialog::ImportDialog(QWidget* parent, const char* name)
22 : QDialog(parent, name, true)
23{
24 setCaption(tr("Import"));
25
26 m_pFileSelector = new FileSelector("image/*", this, "fileselector");
27 m_pFileSelector->setNewVisible(false);
28 m_pFileSelector->setCloseVisible(false);
29
30 QVBoxLayout* mainLayout = new QVBoxLayout(this, 4, 4);
31 mainLayout->addWidget(m_pFileSelector);
32}
33
34ImportDialog::~ImportDialog()
35{
36}
37
38const DocLnk* ImportDialog::selected()
39{
40 return m_pFileSelector->selected();
41}