summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.cpp3
-rw-r--r--core/apps/textedit/fileBrowser.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp
index 7eac5d2..eea7144 100644
--- a/core/apps/textedit/fileBrowser.cpp
+++ b/core/apps/textedit/fileBrowser.cpp
@@ -89,25 +89,25 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
89 89
90 homeButton = new QPushButton( Resource::loadIconSet("home"),"",this,"homeButton"); 90 homeButton = new QPushButton( Resource::loadIconSet("home"),"",this,"homeButton");
91 homeButton->setMinimumSize( QSize( 20, 20 ) ); 91 homeButton->setMinimumSize( QSize( 20, 20 ) );
92 homeButton->setMaximumSize( QSize( 20, 20 ) ); 92 homeButton->setMaximumSize( QSize( 20, 20 ) );
93 connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) ); 93 connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) );
94 homeButton->setFlat(TRUE); 94 homeButton->setFlat(TRUE);
95 layout->addMultiCellWidget( homeButton, 0, 0, 7, 7 ); 95 layout->addMultiCellWidget( homeButton, 0, 0, 7, 7 );
96 96
97 FileStack = new QWidgetStack( this ); 97 FileStack = new QWidgetStack( this );
98 98
99 99
100 ListView = new QListView( this, "ListView" ); 100 ListView = new QListView( this, "ListView" );
101 ListView->setMinimumSize( QSize( 100, 25 ) ); 101// ListView->setMinimumSize( QSize( 100, 25 ) );
102 ListView->addColumn( tr( "Name" ) ); 102 ListView->addColumn( tr( "Name" ) );
103 ListView->setColumnWidth(0,120); 103 ListView->setColumnWidth(0,120);
104 ListView->setSorting( 2, FALSE); 104 ListView->setSorting( 2, FALSE);
105 ListView->addColumn( tr( "Size" ) ); 105 ListView->addColumn( tr( "Size" ) );
106 ListView->setColumnWidth(1,-1); 106 ListView->setColumnWidth(1,-1);
107 ListView->addColumn( "Date",-1); 107 ListView->addColumn( "Date",-1);
108 108
109 ListView->setColumnWidthMode(0,QListView::Manual); 109 ListView->setColumnWidthMode(0,QListView::Manual);
110 ListView->setColumnAlignment(1,QListView::AlignRight); 110 ListView->setColumnAlignment(1,QListView::AlignRight);
111 ListView->setColumnAlignment(2,QListView::AlignRight); 111 ListView->setColumnAlignment(2,QListView::AlignRight);
112 ListView->setAllColumnsShowFocus( TRUE ); 112 ListView->setAllColumnsShowFocus( TRUE );
113 113
@@ -518,14 +518,13 @@ void fileBrowser::dirPathEditPressed() {
518 update(); 518 update();
519} 519}
520 520
521void fileBrowser::fillCombo(const QString &currentPath) { 521void fileBrowser::fillCombo(const QString &currentPath) {
522 522
523 dirPathCombo->lineEdit()->setText(currentPath); 523 dirPathCombo->lineEdit()->setText(currentPath);
524 524
525 if( dirPathStringList.grep(currentPath,TRUE).isEmpty() ) { 525 if( dirPathStringList.grep(currentPath,TRUE).isEmpty() ) {
526 dirPathCombo->clear(); 526 dirPathCombo->clear();
527 dirPathStringList.prepend(currentPath ); 527 dirPathStringList.prepend(currentPath );
528 dirPathCombo->insertStringList( dirPathStringList,-1); 528 dirPathCombo->insertStringList( dirPathStringList,-1);
529 } 529 }
530
531} 530}
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h
index 42bbc10..bac3d2e 100644
--- a/core/apps/textedit/fileBrowser.h
+++ b/core/apps/textedit/fileBrowser.h
@@ -54,31 +54,31 @@ public:
54 QLabel *dirLabel; 54 QLabel *dirLabel;
55 QString selectedFileName, filterStr; 55 QString selectedFileName, filterStr;
56 QDir currentDir; 56 QDir currentDir;
57 QFile file; 57 QFile file;
58 QStringList fileList, dirPathStringList; 58 QStringList fileList, dirPathStringList;
59 QListViewItem * item; 59 QListViewItem * item;
60 QComboBox *SelectionCombo, *dirPathCombo; 60 QComboBox *SelectionCombo, *dirPathCombo;
61 MenuButton *typemb; 61 MenuButton *typemb;
62 QWidgetStack *FileStack; 62 QWidgetStack *FileStack;
63 FileSelector *fileSelector; 63 FileSelector *fileSelector;
64 QString mimeType; 64 QString mimeType;
65public slots: 65public slots:
66 66 void setFileView( int );
67
67private: 68private:
68// QDict<void> mimes; 69// QDict<void> mimes;
69 QRegExp tf; 70 QRegExp tf;
70 QStringList getMimeTypes(); 71 QStringList getMimeTypes();
71 void fillCombo( const QString&); 72 void fillCombo( const QString&);
72 void setFileView( int );
73 73
74private slots: 74private slots:
75 void populateList(); 75 void populateList();
76 void homeButtonPushed(); 76 void homeButtonPushed();
77 void docButtonPushed(); 77 void docButtonPushed();
78 void ListPressed( int, QListViewItem *, const QPoint&, int); 78 void ListPressed( int, QListViewItem *, const QPoint&, int);
79 void showListMenu(QListViewItem*); 79 void showListMenu(QListViewItem*);
80 void doCd(); 80 void doCd();
81 void makDir(); 81 void makDir();
82 void localRename(); 82 void localRename();
83 void localDelete(); 83 void localDelete();
84 void receive( const QCString &msg, const QByteArray &data ); 84 void receive( const QCString &msg, const QByteArray &data );