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