summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-03-26 02:29:46 (UTC)
committer llornkcor <llornkcor>2003-03-26 02:29:46 (UTC)
commit114dc0018c29cb899f10bbbe4eb84db1482f9598 (patch) (unidiff)
tree5f090b026bcb6cafe39b4650530fe0a5cac16bdc
parent445c957aeddcea7ee0b83657e00987103a6d35b0 (diff)
downloadopie-114dc0018c29cb899f10bbbe4eb84db1482f9598.zip
opie-114dc0018c29cb899f10bbbe4eb84db1482f9598.tar.gz
opie-114dc0018c29cb899f10bbbe4eb84db1482f9598.tar.bz2
change to UnknownDocument icon
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp10
-rw-r--r--noncore/net/opieftp/opieftp.h2
2 files changed, 9 insertions, 3 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 7c83223..db365ca 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -83,12 +83,17 @@ OpieFtp::OpieFtp( )
83 connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); 83 connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) );
84 84
85 QPEMenuBar *menuBar = new QPEMenuBar(this); 85 QPEMenuBar *menuBar = new QPEMenuBar(this);
86// QPEToolBar *menuBar = new QPEToolBar(this); 86// QPEToolBar *menuBar = new QPEToolBar(this);
87// menuBar->setHorizontalStretchable( TRUE ); 87// menuBar->setHorizontalStretchable( TRUE );
88 88
89 QWMatrix matrix;
90 QPixmap pix(Resource::loadPixmap( "UnknownDocument" ));
91 matrix.scale( .4, .4);
92 unknownXpm = pix.xForm(matrix);
93
89 connectionMenu = new QPopupMenu( this ); 94 connectionMenu = new QPopupMenu( this );
90 localMenu = new QPopupMenu( this ); 95 localMenu = new QPopupMenu( this );
91 remoteMenu = new QPopupMenu( this ); 96 remoteMenu = new QPopupMenu( this );
92 tabMenu = new QPopupMenu( this ); 97 tabMenu = new QPopupMenu( this );
93 98
94 layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 ); 99 layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 );
@@ -685,25 +690,24 @@ void OpieFtp::populateLocalView()
685 if( !fi->isReadable() ) 690 if( !fi->isReadable() )
686 pm = Resource::loadPixmap( "locked" ); 691 pm = Resource::loadPixmap( "locked" );
687 else { 692 else {
688 MimeType mt(fi->filePath()); 693 MimeType mt(fi->filePath());
689 pm=mt.pixmap(); //sets the correct pixmap for mimetype 694 pm=mt.pixmap(); //sets the correct pixmap for mimetype
690 if(pm.isNull()) 695 if(pm.isNull())
691 pm = Resource::loadPixmap( "UnknownDocument-14" ); 696 pm = unknownXpm;
692 item->setPixmap( 0,pm);
693 } 697 }
694 } 698 }
695 if( fileL.find("->",0,TRUE) != -1) { 699 if( fileL.find("->",0,TRUE) != -1) {
696 // overlay link image 700 // overlay link image
697 pm= Resource::loadPixmap( "folder" ); 701 pm= Resource::loadPixmap( "folder" );
698 QPixmap lnk = Resource::loadPixmap( "opie/symlink" ); 702 QPixmap lnk = Resource::loadPixmap( "opie/symlink" );
699 QPainter painter( &pm ); 703 QPainter painter( &pm );
700 painter.drawPixmap( pm.width()-lnk.width(), pm.height()-lnk.height(), lnk ); 704 painter.drawPixmap( pm.width()-lnk.width(), pm.height()-lnk.height(), lnk );
701 pm.setMask( pm.createHeuristicMask( FALSE ) ); 705 pm.setMask( pm.createHeuristicMask( FALSE ) );
702 item->setPixmap( 0, pm);
703 } 706 }
707 item->setPixmap( 0,pm);
704 } 708 }
705 isDir=FALSE; 709 isDir=FALSE;
706 ++it; 710 ++it;
707 } 711 }
708 Local_View->setSorting( 3,FALSE); 712 Local_View->setSorting( 3,FALSE);
709 currentPathCombo->lineEdit()->setText( currentDir.canonicalPath() ); 713 currentPathCombo->lineEdit()->setText( currentDir.canonicalPath() );
diff --git a/noncore/net/opieftp/opieftp.h b/noncore/net/opieftp/opieftp.h
index 109b5f8..9d5d211 100644
--- a/noncore/net/opieftp/opieftp.h
+++ b/noncore/net/opieftp/opieftp.h
@@ -15,12 +15,13 @@
15#include <qvariant.h> 15#include <qvariant.h>
16#include <qdialog.h> 16#include <qdialog.h>
17#include <qmainwindow.h> 17#include <qmainwindow.h>
18#include <qdir.h> 18#include <qdir.h>
19#include <qstring.h> 19#include <qstring.h>
20#include <qpoint.h> 20#include <qpoint.h>
21#include <qpixmap.h>
21 22
22class QVBoxLayout; 23class QVBoxLayout;
23class QHBoxLayout; 24class QHBoxLayout;
24class QGridLayout; 25class QGridLayout;
25class QComboBox; 26class QComboBox;
26class QListView; 27class QListView;
@@ -124,12 +125,13 @@ protected slots:
124 void deleteServer(); 125 void deleteServer();
125 void connectorBtnToggled(bool); 126 void connectorBtnToggled(bool);
126 void NewServer(); 127 void NewServer();
127 void serverListClicked( const QString &); 128 void serverListClicked( const QString &);
128 129
129protected: 130protected:
131 QPixmap unknownXpm;
130 bool fuckeduphack; 132 bool fuckeduphack;
131 QStringList remoteDirPathStringList, localDirPathStringList; 133 QStringList remoteDirPathStringList, localDirPathStringList;
132 QString newServerName; 134 QString newServerName;
133 void nullifyCallBack(); 135 void nullifyCallBack();
134 QGridLayout* tabLayout; 136 QGridLayout* tabLayout;
135 QGridLayout* tabLayout_2; 137 QGridLayout* tabLayout_2;