summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-04-02 00:33:22 (UTC)
committer llornkcor <llornkcor>2002-04-02 00:33:22 (UTC)
commit83d80c254e77aee34e579fc01679ffb0bfa4599b (patch) (unidiff)
tree20acc40793f439a00cbf28fa48b74372569ac807
parent56b0e9e47fb776ccf78026b3243101415669e8b4 (diff)
downloadopie-83d80c254e77aee34e579fc01679ffb0bfa4599b.zip
opie-83d80c254e77aee34e579fc01679ffb0bfa4599b.tar.gz
opie-83d80c254e77aee34e579fc01679ffb0bfa4599b.tar.bz2
opps forgot to comment out some stuff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp
index 652f830..b655c96 100644
--- a/core/apps/textedit/fileBrowser.cpp
+++ b/core/apps/textedit/fileBrowser.cpp
@@ -32,55 +32,56 @@
32#include <qlayout.h> 32#include <qlayout.h>
33#include <unistd.h> 33#include <unistd.h>
34#include <qpopupmenu.h> 34#include <qpopupmenu.h>
35#include <qlineedit.h> 35#include <qlineedit.h>
36#include <qstringlist.h> 36#include <qstringlist.h>
37 37
38#include <unistd.h> 38#include <unistd.h>
39#include <stdlib.h> 39#include <stdlib.h>
40 40
41static int u_id = 1; 41static int u_id = 1;
42static int get_unique_id() 42static int get_unique_id()
43{ 43{
44 return u_id++; 44 return u_id++;
45} 45}
46 46
47fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags fl , const QString mimeFilter ) 47fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags fl , const QString mimeFilter )
48 : QDialog( parent, name, modal, fl ) 48 : QDialog( parent, name, modal, fl )
49{ 49{
50 if ( !name ) 50 if ( !name )
51 setName( "fileBrowser" ); 51 setName( "fileBrowser" );
52 setCaption(tr( name ) ); 52 setCaption(tr( name ) );
53// mimeType = mimeFilter; 53// mimeType = mimeFilter;
54// MimeType mt( mimeType); 54// MimeType mt( mimeType);
55// if( mt.extension().isEmpty()) 55// if( mt.extension().isEmpty())
56 QStringList filterList; 56// QStringList filterList;
57 filterList=QStringList::split(";",mimeFilter,FALSE); 57// filterList=QStringList::split(";",mimeFilter,FALSE);
58 for ( QStringList::Iterator it = filterList.begin(); it != filterList.end(); ++it ) { 58// for ( QStringList::Iterator it = filterList.begin(); it != filterList.end(); ++it ) {
59 printf( "%s \n", (*it).latin1() ); 59// printf( "%s \n", (*it).latin1() );
60 } 60// }
61 61
62 filterStr = mimeFilter.right(mimeFilter.length()- mimeFilter.find("/",0,TRUE) - 1);// "*"; 62 filterStr = mimeFilter.right(mimeFilter.length() - mimeFilter.find("/",0,TRUE) - 1);// "*";
63
63 qDebug(filterStr); 64 qDebug(filterStr);
64// else 65// else
65// filterStr = "*."+ mt.extension(); 66// filterStr = "*."+ mt.extension();
66// qDebug("description "+mt.description()); 67// qDebug("description "+mt.description());
67// qDebug( "id "+mt.id()); 68// qDebug( "id "+mt.id());
68// qDebug("extension "+mt.extension()); 69// qDebug("extension "+mt.extension());
69 70
70// channel = new QCopChannel( "QPE/fileDialog", this ); 71// channel = new QCopChannel( "QPE/fileDialog", this );
71// connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), 72// connect( channel, SIGNAL(received(const QCString&, const QByteArray&)),
72// this, SLOT(receive(const QCString&, const QByteArray&)) ); 73// this, SLOT(receive(const QCString&, const QByteArray&)) );
73 74
74 QGridLayout *layout = new QGridLayout( this ); 75 QGridLayout *layout = new QGridLayout( this );
75 layout->setSpacing( 4 ); 76 layout->setSpacing( 4 );
76 layout->setMargin( 4 ); 77 layout->setMargin( 4 );
77 78
78 dirPathCombo = new QComboBox( FALSE, this, "dirPathCombo" ); 79 dirPathCombo = new QComboBox( FALSE, this, "dirPathCombo" );
79 dirPathCombo->setEditable(TRUE); 80 dirPathCombo->setEditable(TRUE);
80 81
81 connect( dirPathCombo, SIGNAL( activated( const QString & ) ), 82 connect( dirPathCombo, SIGNAL( activated( const QString & ) ),
82 this, SLOT( dirPathComboActivated( const QString & ) ) ); 83 this, SLOT( dirPathComboActivated( const QString & ) ) );
83 84
84 connect( dirPathCombo->lineEdit(), SIGNAL( returnPressed( ) ), 85 connect( dirPathCombo->lineEdit(), SIGNAL( returnPressed( ) ),
85 this, SLOT( dirPathEditPressed( ) ) ); 86 this, SLOT( dirPathEditPressed( ) ) );
86 87