summaryrefslogtreecommitdiff
path: root/core/applets/screenshotapplet/inputDialog.cpp
Unidiff
Diffstat (limited to 'core/applets/screenshotapplet/inputDialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/screenshotapplet/inputDialog.cpp65
1 files changed, 0 insertions, 65 deletions
diff --git a/core/applets/screenshotapplet/inputDialog.cpp b/core/applets/screenshotapplet/inputDialog.cpp
deleted file mode 100644
index ce03ec0..0000000
--- a/core/applets/screenshotapplet/inputDialog.cpp
+++ b/dev/null
@@ -1,65 +0,0 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'inputDialog.ui'
3**
4** Created: Sat Mar 2 07:55:03 2002
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "inputDialog.h"
10
11#include <qpe/resource.h>
12
13#include <opie2/ofiledialog.h>
14
15#include <qlineedit.h>
16#include <qpushbutton.h>
17
18using namespace Opie::Ui;
19InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
20 : QDialog( parent, name, modal, fl )
21{
22 if ( !name )
23 setName( "InputDialog" );
24 resize( 234, 115);
25 setMaximumSize( QSize( 240, 40));
26 setCaption( tr(name ) );
27
28 QPushButton *browserButton;
29 browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton");
30 browserButton->setGeometry( QRect( 205, 10, 22, 22));
31 connect( browserButton, SIGNAL(released()),this,SLOT(browse()));
32 LineEdit1 = new QLineEdit( this, "LineEdit1" );
33 LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) );
34}
35
36/*
37 * Destroys the object and frees any allocated resources
38 */
39InputDialog::~InputDialog()
40{
41 inputText= LineEdit1->text();
42
43}
44
45void InputDialog::browse() {
46
47 MimeTypes types;
48 QStringList audio, video, all;
49 audio << "audio/*";
50 audio << "playlist/plain";
51 audio << "audio/x-mpegurl";
52
53 video << "video/*";
54 video << "playlist/plain";
55
56 all += audio;
57 all += video;
58 types.insert("All Media Files", all );
59 types.insert("Audio", audio );
60 types.insert("Video", video );
61
62 QString str = Opie::Ui::OFileDialog::getOpenFileName( 1,"/","", types, 0 );
63 LineEdit1->setText(str);
64}
65