author | llornkcor <llornkcor> | 2002-07-13 22:49:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-13 22:49:06 (UTC) |
commit | fc63a266936297efd9125c6418bbdccf1d0fcaa2 (patch) (unidiff) | |
tree | 1f255b956d7080443186fd4e319e6cdcfd7001a3 /core/applets/screenshotapplet/inputDialog.cpp | |
parent | 1627ed22871af50d6debaa0140546c14984501cf (diff) | |
download | opie-fc63a266936297efd9125c6418bbdccf1d0fcaa2.zip opie-fc63a266936297efd9125c6418bbdccf1d0fcaa2.tar.gz opie-fc63a266936297efd9125c6418bbdccf1d0fcaa2.tar.bz2 |
added netcat button, and a 'name it' checkbox
Diffstat (limited to 'core/applets/screenshotapplet/inputDialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/screenshotapplet/inputDialog.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/core/applets/screenshotapplet/inputDialog.cpp b/core/applets/screenshotapplet/inputDialog.cpp new file mode 100644 index 0000000..da8e276 --- a/dev/null +++ b/core/applets/screenshotapplet/inputDialog.cpp | |||
@@ -0,0 +1,67 @@ | |||
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 <opie/ofiledialog.h> | ||
14 | |||
15 | #include <qlineedit.h> | ||
16 | #include <qlayout.h> | ||
17 | #include <qvariant.h> | ||
18 | #include <qpushbutton.h> | ||
19 | #include <qwhatsthis.h> | ||
20 | |||
21 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
22 | : QDialog( parent, name, modal, fl ) | ||
23 | { | ||
24 | if ( !name ) | ||
25 | setName( "InputDialog" ); | ||
26 | resize( 234, 115); | ||
27 | setMaximumSize( QSize( 240, 40)); | ||
28 | setCaption( tr(name ) ); | ||
29 | |||
30 | QPushButton *browserButton; | ||
31 | browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton"); | ||
32 | browserButton->setGeometry( QRect( 205, 10, 22, 22)); | ||
33 | connect( browserButton, SIGNAL(released()),this,SLOT(browse())); | ||
34 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | ||
35 | LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) ); | ||
36 | } | ||
37 | |||
38 | /* | ||
39 | * Destroys the object and frees any allocated resources | ||
40 | */ | ||
41 | InputDialog::~InputDialog() | ||
42 | { | ||
43 | inputText= LineEdit1->text(); | ||
44 | |||
45 | } | ||
46 | |||
47 | void InputDialog::browse() { | ||
48 | |||
49 | MimeTypes types; | ||
50 | QStringList audio, video, all; | ||
51 | audio << "audio/*"; | ||
52 | audio << "playlist/plain"; | ||
53 | audio << "audio/x-mpegurl"; | ||
54 | |||
55 | video << "video/*"; | ||
56 | video << "playlist/plain"; | ||
57 | |||
58 | all += audio; | ||
59 | all += video; | ||
60 | types.insert("All Media Files", all ); | ||
61 | types.insert("Audio", audio ); | ||
62 | types.insert("Video", video ); | ||
63 | |||
64 | QString str = OFileDialog::getOpenFileName( 1,"/","", types, 0 ); | ||
65 | LineEdit1->setText(str); | ||
66 | } | ||
67 | |||