You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(98) |
Sep
(138) |
Oct
(100) |
Nov
(49) |
Dec
(131) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(94) |
Feb
(65) |
Mar
(100) |
Apr
(83) |
May
(72) |
Jun
(29) |
Jul
(167) |
Aug
(127) |
Sep
(131) |
Oct
(269) |
Nov
(122) |
Dec
(100) |
2005 |
Jan
(228) |
Feb
(266) |
Mar
(63) |
Apr
(135) |
May
(157) |
Jun
(52) |
Jul
(25) |
Aug
(49) |
Sep
(184) |
Oct
(159) |
Nov
(75) |
Dec
(37) |
2006 |
Jan
(60) |
Feb
(129) |
Mar
(110) |
Apr
(34) |
May
(31) |
Jun
(42) |
Jul
(72) |
Aug
(90) |
Sep
(57) |
Oct
(66) |
Nov
(42) |
Dec
(90) |
2007 |
Jan
(106) |
Feb
(54) |
Mar
(93) |
Apr
(27) |
May
(21) |
Jun
(17) |
Jul
(19) |
Aug
(22) |
Sep
(25) |
Oct
(2) |
Nov
(1) |
Dec
(1) |
2008 |
Jan
(65) |
Feb
(70) |
Mar
(29) |
Apr
(45) |
May
(91) |
Jun
(20) |
Jul
(11) |
Aug
(24) |
Sep
(23) |
Oct
(13) |
Nov
(23) |
Dec
(39) |
2009 |
Jan
(23) |
Feb
(39) |
Mar
(15) |
Apr
(56) |
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ck...@us...> - 2008-09-23 19:21:38
|
Revision: 6086 http://krusader.svn.sourceforge.net/krusader/?rev=6086&view=rev Author: ckarai Date: 2008-09-23 19:20:22 +0000 (Tue, 23 Sep 2008) Log Message: ----------- Queue with basic GUI Modified Paths: -------------- trunk/krusader_kde4/krusader/Queue/queue.cpp trunk/krusader_kde4/krusader/Queue/queue.h trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp trunk/krusader_kde4/krusader/Queue/queue_mgr.h trunk/krusader_kde4/krusader/Queue/queuedialog.cpp trunk/krusader_kde4/krusader/Queue/queuedialog.h trunk/krusader_kde4/krusader/Queue/queuewidget.cpp trunk/krusader_kde4/krusader/Queue/queuewidget.h Modified: trunk/krusader_kde4/krusader/Queue/queue.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue.cpp 2008-09-22 21:12:08 UTC (rev 6085) +++ trunk/krusader_kde4/krusader/Queue/queue.cpp 2008-09-23 19:20:22 UTC (rev 6086) @@ -23,6 +23,7 @@ if( !isRunning ) job->start(); + emit changed(); emit showQueueDialog(); dumpQueue(); } @@ -41,6 +42,7 @@ _jobs.removeAll( jw ); if( current && _jobs.count() > 0 ) _jobs[ 0 ]->start(); + emit changed(); } void Queue::slotResult( KJob * job ) @@ -65,6 +67,8 @@ break; case KMessageBox::No: // delete the queue _jobs.clear(); + emit changed(); + emit emptied(); return; default: // suspend /* TODO */ @@ -72,8 +76,26 @@ } } + emit changed(); if( _jobs.count() > 0 ) _jobs[ 0 ]->start(); + else + emit emptied(); } } } + +QList<KIOJobWrapper *> Queue::items() +{ + return _jobs; +} + +QList<QString> Queue::itemDescriptions() +{ + QList<QString> ret; + foreach( KIOJobWrapper *job, _jobs ) + { + ret.append( job->typeStr() + " : " + job->url().prettyUrl() ); + } + return ret; +} \ No newline at end of file Modified: trunk/krusader_kde4/krusader/Queue/queue.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue.h 2008-09-22 21:12:08 UTC (rev 6085) +++ trunk/krusader_kde4/krusader/Queue/queue.h 2008-09-23 19:20:22 UTC (rev 6086) @@ -23,6 +23,10 @@ inline const QString& name() const { return _name; } void enqueue(KIOJobWrapper *job); + int count() { return _jobs.size(); } + + QList<QString> itemDescriptions(); + QList<KIOJobWrapper *> items(); protected slots: void slotJobDestroyed( QObject * ); @@ -36,6 +40,8 @@ signals: void showQueueDialog(); + void changed(); + void emptied(); }; #endif // QUEUE_H Modified: trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp 2008-09-22 21:12:08 UTC (rev 6085) +++ trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp 2008-09-23 19:20:22 UTC (rev 6086) @@ -1,16 +1,18 @@ #include "queue_mgr.h" #include "queuedialog.h" #include <QList> +#include <klocale.h> -const QString QueueManager::defaultName="default"; +const QString QueueManager::defaultName=i18n( "default" ); QMap<QString, Queue*> QueueManager::_queues; -QString QueueManager::_current="default"; +QString QueueManager::_current=QueueManager::defaultName; QueueManager * QueueManager::_self = 0; QueueManager::QueueManager() { Queue *defaultQ = new Queue(defaultName); connect( defaultQ, SIGNAL( showQueueDialog() ), this, SLOT( slotShowQueueDialog() ) ); + connect( defaultQ, SIGNAL( emptied() ), this, SLOT( slotQueueEmptied() ) ); _queues.insert(defaultQ->name(), defaultQ); _current = defaultName; _self = this; @@ -31,7 +33,7 @@ return _queues[queueName]; } -QList<QString> QueueManager::queues() const +QList<QString> QueueManager::queues() { return _queues.keys(); } @@ -49,5 +51,18 @@ void QueueManager::slotShowQueueDialog() { -// QueueDialog::showDialog(); + QueueDialog::showDialog(); } + +void QueueManager::slotQueueEmptied() +{ + bool empty = true; + QList<Queue *> queues = _queues.values(); + foreach( Queue * queue, queues ) { + if( queue->count() != 0 ) { + empty = false; + break; + } + } + QueueDialog::everyQueueIsEmpty(); +} Modified: trunk/krusader_kde4/krusader/Queue/queue_mgr.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue_mgr.h 2008-09-22 21:12:08 UTC (rev 6085) +++ trunk/krusader_kde4/krusader/Queue/queue_mgr.h 2008-09-23 19:20:22 UTC (rev 6086) @@ -20,7 +20,7 @@ ~QueueManager(); static Queue* queue(const QString& queueName=defaultName); - QList<QString> queues() const; + static QList<QString> queues(); static Queue* currentQueue(); static void setCurrentQueue(const QString& queueName); @@ -29,6 +29,7 @@ protected slots: void slotShowQueueDialog(); + void slotQueueEmptied(); protected: static QMap<QString, Queue*> _queues; Modified: trunk/krusader_kde4/krusader/Queue/queuedialog.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queuedialog.cpp 2008-09-22 21:12:08 UTC (rev 6085) +++ trunk/krusader_kde4/krusader/Queue/queuedialog.cpp 2008-09-23 19:20:22 UTC (rev 6086) @@ -93,7 +93,7 @@ QueueDialog * QueueDialog::_queueDialog = 0; -QueueDialog::QueueDialog() : QDialog( 0, Qt::FramelessWindowHint ) +QueueDialog::QueueDialog() : QDialog( 0, Qt::FramelessWindowHint ), _autoHide( true ) { setWindowModality( Qt::NonModal ); setWindowTitle( i18n("Krusader::Queue Manager") ); @@ -169,14 +169,17 @@ _queueDialog = 0; } -void QueueDialog::showDialog() +void QueueDialog::showDialog( bool autoHide ) { if( _queueDialog == 0 ) _queueDialog = new QueueDialog(); else { + _queueDialog->show(); _queueDialog->raise(); _queueDialog->activateWindow(); } + if( !autoHide ) + autoHide = false; } void QueueDialog::paintEvent ( QPaintEvent * event ) @@ -200,7 +203,20 @@ _startPos = pos(); } + +void QueueDialog::everyQueueIsEmpty() +{ + if( _queueDialog->_autoHide && _queueDialog != 0 && !_queueDialog->isHidden() ) + _queueDialog->reject(); +} + + void QueueDialog::mouseMoveEvent(QMouseEvent *me) { move(_startPos + me->globalPos() - _clickPos); } + +void QueueDialog::closeEvent ( QCloseEvent * event ) +{ + _autoHide = true; +} \ No newline at end of file Modified: trunk/krusader_kde4/krusader/Queue/queuedialog.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queuedialog.h 2008-09-22 21:12:08 UTC (rev 6085) +++ trunk/krusader_kde4/krusader/Queue/queuedialog.h 2008-09-23 19:20:22 UTC (rev 6086) @@ -34,6 +34,7 @@ #include <qdialog.h> class QPaintEvent; +class QCloseEvent; class QueueDialog : public QDialog { @@ -45,10 +46,12 @@ public: virtual ~QueueDialog(); - static void showDialog(); + static void showDialog( bool autoHide = true ); + static void everyQueueIsEmpty(); protected: virtual void paintEvent ( QPaintEvent * event ); + virtual void closeEvent ( QCloseEvent * event ); virtual void mousePressEvent(QMouseEvent *me); virtual void mouseMoveEvent(QMouseEvent *me); @@ -60,6 +63,7 @@ int _y; QPoint _clickPos; QPoint _startPos; + bool _autoHide; }; #endif // __QUEUEDIALOG_H__ \ No newline at end of file Modified: trunk/krusader_kde4/krusader/Queue/queuewidget.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queuewidget.cpp 2008-09-22 21:12:08 UTC (rev 6085) +++ trunk/krusader_kde4/krusader/Queue/queuewidget.cpp 2008-09-23 19:20:22 UTC (rev 6086) @@ -1,10 +1,35 @@ #include "queuewidget.h" +#include "queue_mgr.h" QueueWidget::QueueWidget( QWidget * parent ): KTabWidget( parent ) { + QList<QString> queueList = QueueManager::queues(); + foreach( QString name, queueList ) { + KrQueueListWidget * jobWidget = new KrQueueListWidget( QueueManager::queue( name ), this ); + addTab( jobWidget, name ); + } } QueueWidget::~QueueWidget() { } + + +KrQueueListWidget::KrQueueListWidget( Queue * queue, QWidget * parent ) : QListWidget( parent ), + _queue( queue ) +{ + connect( queue, SIGNAL( changed() ), this, SLOT( slotChanged() ) ); + slotChanged(); +} + +void KrQueueListWidget::slotChanged() +{ + clear(); + if( _queue ) + { + QList<QString> itdescs = _queue->itemDescriptions(); + foreach( QString desc, itdescs ) + addItem( desc ); + } +} Modified: trunk/krusader_kde4/krusader/Queue/queuewidget.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queuewidget.h 2008-09-22 21:12:08 UTC (rev 6085) +++ trunk/krusader_kde4/krusader/Queue/queuewidget.h 2008-09-23 19:20:22 UTC (rev 6086) @@ -1,7 +1,10 @@ #ifndef QUEUE_WIDGET_H #define QUEUE_WIDGET_H +#include "queue.h" #include <ktabwidget.h> +#include <qlistwidget.h> +#include <qpointer.h> class QueueWidget: public KTabWidget { @@ -11,4 +14,18 @@ ~QueueWidget(); }; +class KrQueueListWidget : public QListWidget +{ + Q_OBJECT +public: + KrQueueListWidget( Queue * queue, QWidget * parent ); + +public slots: + void slotChanged(); + +private: + QPointer<Queue> _queue; +}; + + #endif // QUEUE_WIDGET_H This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vac...@us...> - 2008-09-22 21:12:17
|
Revision: 6085 http://krusader.svn.sourceforge.net/krusader/?rev=6085&view=rev Author: vaclavjuza Date: 2008-09-22 21:12:08 +0000 (Mon, 22 Sep 2008) Log Message: ----------- I18N: Updated Czech translation Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/po/cs.po Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-09-22 20:19:41 UTC (rev 6084) +++ trunk/krusader_kde4/ChangeLog 2008-09-22 21:12:08 UTC (rev 6085) @@ -41,6 +41,7 @@ FIXED: Do not duplicate menu entries in UserAction menu while still not crashing when configuring toolbars. + I18N: Updated Czech translation I18N: Updated Ukrainian translation (thanks Yuri Chornoivan) I18N: Updated Slovenian translation (thanks Matej Urbancic) Modified: trunk/krusader_kde4/po/cs.po =================================================================== --- trunk/krusader_kde4/po/cs.po 2008-09-22 20:19:41 UTC (rev 6084) +++ trunk/krusader_kde4/po/cs.po 2008-09-22 21:12:08 UTC (rev 6085) @@ -1,3 +1,4 @@ +# translation of cs.po to # Translation of krusader.pot to Czech # # Copyright (C) 2000-2003, Shie Erlich, Rafi Yanai @@ -12,14 +13,13 @@ "Project-Id-Version: krusader-2.0.0-beta1\n" "Report-Msgid-Bugs-To: kru...@go...\n" "POT-Creation-Date: 2008-09-22 20:47+0200\n" -"PO-Revision-Date: 2008-04-17 13:12+0200\n" -"Last-Translator: Václav Jůza <vac...@se...>\n" -"Language-Team: Czech <kru...@go...>\n" +"PO-Revision-Date: 2008-09-22 23:00+0200\n" +"Last-Translator: Vaclav Juza <vaclavjuza at gmail dot com>\n" +"Language-Team: Czech <kru...@go...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" -"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: KBabel 1.11.4\n" #: GUI/dirhistorybutton.cpp:36 GUI/dirhistorybutton.cpp:37 @@ -94,24 +94,24 @@ msgstr "Disketa" #: GUI/mediabutton.cpp:179 -#, fuzzy, kde-format +#, kde-format msgid "CD/DVD-ROM" -msgstr "CD-ROM" +msgstr "CD/DVD-ROM" #: GUI/mediabutton.cpp:181 #, kde-format msgid "USB pen drive" -msgstr "" +msgstr "USB klíčenka" #: GUI/mediabutton.cpp:183 #, kde-format msgid "USB device" -msgstr "" +msgstr "USB zařízení" #: GUI/mediabutton.cpp:185 #, kde-format msgid "Removable media" -msgstr "" +msgstr "Vyměnitelné medium" #: GUI/mediabutton.cpp:187 #, kde-format @@ -119,24 +119,24 @@ msgstr "Pevný disk" #: GUI/mediabutton.cpp:189 -#, fuzzy, kde-format +#, kde-format msgid "Camera" -msgstr "Název" +msgstr "Foťák" #: GUI/mediabutton.cpp:191 #, kde-format msgid "Video CD/DVD-ROM" -msgstr "" +msgstr "Video CD/DVD-ROM" #: GUI/mediabutton.cpp:193 #, kde-format msgid "Audio CD/DVD-ROM" -msgstr "" +msgstr "Zvukové CD/DVD" #: GUI/mediabutton.cpp:195 #, kde-format msgid "Recordable CD/DVD-ROM" -msgstr "" +msgstr "Nahrávatelné CD/DVD" #: GUI/mediabutton.cpp:325 Panel/krpopupmenu.cpp:69 #: BookMan/krbookmarkhandler.cpp:557 @@ -170,12 +170,12 @@ #: GUI/mediabutton.cpp:423 #, kde-format msgid "An error occurred while accessing '%1', the system responded: %2" -msgstr "" +msgstr "Při práci s'%1' nastala chyba: %2" #: GUI/mediabutton.cpp:426 #, kde-format msgid "An error occurred while accessing '%1'" -msgstr "" +msgstr "Při práci s '%1' nastala chyba" #: GUI/syncbrowsebutton.cpp:45 GUI/syncbrowsebutton.cpp:48 #, kde-format @@ -418,10 +418,10 @@ msgstr "Kopírování" #: VFS/preserveattrcopyjob.cpp:361 -#, fuzzy, kde-format +#, kde-format msgctxt "@title job" msgid "Creating directory" -msgstr "Rodičovský adresář" +msgstr "Vytváření adresáře" #: VFS/preserveattrcopyjob.cpp:362 Panel/krinterview.cpp:205 #: Panel/krbriefview.cpp:226 Panel/krdetailedview.cpp:317 @@ -431,9 +431,9 @@ msgstr "Adresář" #: VFS/preserveattrcopyjob.cpp:793 -#, fuzzy, kde-format +#, kde-format msgid "Folder Already Exists" -msgstr "Soubor již existuje" +msgstr "Adresář již existuje" #: VFS/preserveattrcopyjob.cpp:1074 VFS/preserveattrcopyjob.cpp:1594 #: Synchronizer/synchronizer.cpp:1171 Synchronizer/synchronizer.cpp:1181 @@ -442,9 +442,9 @@ msgstr "Soubor již existuje" #: VFS/preserveattrcopyjob.cpp:1074 VFS/preserveattrcopyjob.cpp:1594 -#, fuzzy, kde-format +#, kde-format msgid "Already Exists as Folder" -msgstr "Soubor již existuje" +msgstr "Již existuje adresář s takovým názvem" #: VFS/normal_vfs.cpp:91 #, kde-format @@ -498,19 +498,19 @@ msgstr "Stav" #: VFS/kiojobwrapper.cpp:181 -#, fuzzy, kde-format +#, kde-format msgid "Directory Size" -msgstr "Adresáře" +msgstr "Velikost adresáře" #: VFS/kiojobwrapper.cpp:184 -#, fuzzy, kde-format +#, kde-format msgid "Copy" -msgstr " Kopírovat" +msgstr "Kopírování" #: VFS/kiojobwrapper.cpp:187 -#, fuzzy, kde-format +#, kde-format msgid "Move" -msgstr " Přesun" +msgstr "Přesun" #: VFS/krquery.cpp:159 Filter/generalfilter.cpp:142 #: Konfigurator/konfigurator.cpp:159 @@ -664,60 +664,55 @@ #: Filter/generalfilter.cpp:56 msgid "Any Character" -msgstr "" +msgstr "Jakýkoli znak" #: Filter/generalfilter.cpp:57 -#, fuzzy msgid "Start of Line" -msgstr "Profil při spuštění:" +msgstr "Začátek řádku" #: Filter/generalfilter.cpp:58 msgid "End of Line" -msgstr "" +msgstr "Konec řádku" #: Filter/generalfilter.cpp:59 msgid "Set of Characters" -msgstr "" +msgstr "Jeden ze sady znaků" #: Filter/generalfilter.cpp:60 msgid "Repeats, Zero or More Times" -msgstr "" +msgstr "Opakuje se, ani jednou nebo vícekrát" #: Filter/generalfilter.cpp:61 msgid "Repeats, One or More Times" -msgstr "" +msgstr "Opakuje se, jednou nebo vícekrát" #: Filter/generalfilter.cpp:62 -#, fuzzy msgid "Optional" -msgstr "&Možnosti" +msgstr "Nepovinné" #: Filter/generalfilter.cpp:63 msgid "Escape" -msgstr "" +msgstr "Zrušení zvláštního významu dalšího znaku" #: Filter/generalfilter.cpp:64 msgid "TAB" -msgstr "" +msgstr "TAB" #: Filter/generalfilter.cpp:65 -#, fuzzy msgid "Newline" -msgstr "Nový odkaz" +msgstr "Nový řádek (LF)" #: Filter/generalfilter.cpp:66 msgid "Carriage Return" -msgstr "" +msgstr "Nový řádek (CR)" #: Filter/generalfilter.cpp:67 -#, fuzzy msgid "White Space" -msgstr "Bílá" +msgstr "Prázdné znaky (mezera, TAB)" #: Filter/generalfilter.cpp:68 -#, fuzzy msgid "Digit" -msgstr "Pravá" +msgstr "Číslice" #: Filter/generalfilter.cpp:101 #, kde-format @@ -830,12 +825,12 @@ #: Filter/generalfilter.cpp:265 #, kde-format msgid "RegExp" -msgstr "" +msgstr "Regulární výraz" #: Filter/generalfilter.cpp:286 -#, fuzzy, kde-format +#, kde-format msgid "Encoding:" -msgstr "Upravování" +msgstr "Kódování:" #: Filter/generalfilter.cpp:301 #, kde-format @@ -1600,8 +1595,7 @@ #: UserAction/kraction.cpp:224 #, kde-format -msgid "" -"Embedded terminal emulator does not work, using output collection instead." +msgid "Embedded terminal emulator does not work, using output collection instead." msgstr "" "Zabudovaný emulátor terminálu nefunguje nebo není nainstalován, použiji " "místo něj režim \"Zobrazit smíchaný standardní a chybový výstup\"." @@ -1642,9 +1636,9 @@ msgstr "Uživatelské akce - neplatná akce" #: Panel/krinterview.cpp:58 -#, fuzzy, kde-format +#, kde-format msgid "&Experimental View" -msgstr "Po&drobný pohled" +msgstr "&Experimentální pohled" #: Panel/krdetailedviewitem.cpp:79 Panel/krdetailedviewitem.cpp:113 #: Synchronizer/synchronizergui.cpp:2064 Synchronizer/synchronizergui.cpp:2071 @@ -2325,7 +2319,7 @@ msgstr "Vyhodit do &koše" #: Panel/panelfunc.cpp:690 -#, fuzzy, kde-format +#, kde-format msgid "" "Do you really want to delete this virtual item (physical files stay " "untouched)?" @@ -2482,29 +2476,29 @@ #: Queue/queue.cpp:55 #, kde-format msgid "An error occurred during processing the queue.\n" -msgstr "" +msgstr "Při zpracovávání fronty nastala chyba.\n" #: Queue/queue.cpp:57 #, kde-format msgid "The last processed element in the queue was aborted.\n" -msgstr "" +msgstr "Zpracování poslední položky z fronty bylo přerušeno.\n" #: Queue/queue.cpp:58 #, kde-format msgid "" "Do you wish to continue with the next element, delete the queue or suspend " "the queue?" -msgstr "" +msgstr "Přejete si pokračovat dalšími položkami, smazat frontu nebo pozastavit frontu?" #: Queue/queue.cpp:60 -#, fuzzy, kde-format +#, kde-format msgid "Krusader::Queue" -msgstr "Krusader::Locate" +msgstr "Krusader::Fronta" #: Queue/queue.cpp:61 -#, fuzzy, kde-format +#, kde-format msgid "Suspend" -msgstr "Přidat" +msgstr "Pozastavit" #: Locate/locate.cpp:119 Locate/locate.cpp:123 Locate/locate.cpp:390 #, kde-format @@ -2631,8 +2625,7 @@ #: krusader.cpp:384 #, kde-format msgid "Statusbar will show basic information about file below mouse pointer." -msgstr "" -"Stavová lišta zobrazí základní informace o souboru pod ukazatelem myši." +msgstr "Stavová lišta zobrazí základní informace o souboru pod ukazatelem myši." #: krusader.cpp:467 #, kde-format @@ -3412,7 +3405,7 @@ msgstr "Název složky:" #: MountMan/kmountman.cpp:203 -#, fuzzy, kde-format +#, kde-format msgid "" "<qt>Error ejecting device!\n" " You have to configure the path to the 'eject' tool. Please check the " @@ -3518,8 +3511,7 @@ #: MountMan/kmountmangui.cpp:364 #, kde-format -msgid "" -"MountMan has an internal error. Please notify the developers. Thank you." +msgid "MountMan has an internal error. Please notify the developers. Thank you." msgstr "" "Správce připojení dospěl k vnitřní chybě. Upozorněte prosím vývojáře. " "(anglicky)Děkujeme." @@ -4039,14 +4031,14 @@ msgstr "Funkční klávesy umožňují rychlé operace se soubory." #: krusaderview.cpp:307 -#, fuzzy, kde-format +#, kde-format msgid "Horizontal Mode" -msgstr "Svislé uspořádání" +msgstr "Vodorovné uspořádání" #: Dialogs/krdialogs.cpp:142 #, kde-format msgid "F2 Queue" -msgstr "" +msgstr "F2 Do fronty" #: Dialogs/krdialogs.cpp:158 #, kde-format @@ -4386,8 +4378,7 @@ #: Dialogs/krkeydialog.cpp:135 #, kde-format -msgid "" -"<qt>File <b>%1</b> already exists. Do you really want to overwrite it?</qt>" +msgid "<qt>File <b>%1</b> already exists. Do you really want to overwrite it?</qt>" msgstr "<qt>Soubor <b>%1</b> již existuje. Opravdu ho chcete přepsat?</qt>" #: Dialogs/krkeydialog.cpp:144 @@ -4935,8 +4926,7 @@ msgid "" "The <i>Workdir</i> defines in which directory the <i>Command</i> will be " "executed." -msgstr "" -"<i>Pracovní adresář</i> určí, ve kterém adresáři se <i>Příkaz</i> vykoná." +msgstr "<i>Pracovní adresář</i> určí, ve kterém adresáři se <i>Příkaz</i> vykoná." #. i18n: tag string #. i18n: file ./ActionMan/actionproperty.ui line 250 @@ -5004,14 +4994,14 @@ #: ActionMan/ui_actionproperty.h:722 rc.cpp:116 #, kde-format msgid "If not checked, the action is not shown in the menus." -msgstr "" +msgstr "Pokud není zaškrtnuto, akce se nezobrazí v nabídkách." #. i18n: tag string #. i18n: file ./ActionMan/actionproperty.ui line 401 #: ActionMan/ui_actionproperty.h:725 rc.cpp:119 -#, fuzzy, kde-format +#, kde-format msgid "Enabled" -msgstr "zapnutý" +msgstr "Zapnuto" #. i18n: tag string #. i18n: file ./ActionMan/actionproperty.ui line 420 @@ -5065,16 +5055,16 @@ #. i18n: tag string #. i18n: file ./ActionMan/actionproperty.ui line 463 #: ActionMan/ui_actionproperty.h:748 rc.cpp:146 -#, fuzzy, kde-format +#, kde-format msgid "Run the command in the embedded terminal emulator." -msgstr "Spustit příkaz v terminálu." +msgstr "Spustí příkaz v zabudovaném emulátoru terminálu." #. i18n: tag string #. i18n: file ./ActionMan/actionproperty.ui line 466 #: ActionMan/ui_actionproperty.h:751 rc.cpp:149 -#, fuzzy, kde-format +#, kde-format msgid "Run in the embedded terminal emulator" -msgstr "Poslat do za&budovaného emulátoru terminálu" +msgstr "Spustit v zabudovaném emulátoru terminálu" #. i18n: tag string #. i18n: file ./ActionMan/actionproperty.ui line 39 @@ -5269,8 +5259,7 @@ #: ActionMan/useractionpage.cpp:134 #, kde-format -msgid "" -"The current action has been modified. Do you want to apply these changes?" +msgid "The current action has been modified. Do you want to apply these changes?" msgstr "Současná akce byla změněna. Chcete použít tyto změny?" #: ActionMan/useractionpage.cpp:211 @@ -5456,7 +5445,7 @@ #: ActionMan/addplaceholderpopup.cpp:288 ActionMan/addplaceholderpopup.cpp:487 #, kde-format msgid "list-add" -msgstr "" +msgstr "Přidat zástupce" #: UserMenu/usermenu.cpp:58 #, kde-format @@ -5481,14 +5470,12 @@ #: Synchronizer/synchronizergui.cpp:1160 #, kde-format msgid "The left base directory used during the synchronisation process." -msgstr "" -"Během synchronizačního procesu se použil základní adresář levého panelu." +msgstr "Během synchronizačního procesu se použil základní adresář levého panelu." #: Synchronizer/synchronizergui.cpp:1193 #, kde-format msgid "The right base directory used during the synchronisation process." -msgstr "" -"Během synchronizačního procesu se použil základní adresář pravého panelu." +msgstr "Během synchronizačního procesu se použil základní adresář pravého panelu." #: Synchronizer/synchronizergui.cpp:1207 #, kde-format @@ -5575,8 +5562,7 @@ #: Synchronizer/synchronizergui.cpp:1257 #, kde-format msgid "Show files marked to <i>Copy from left to right</i> (CTRL+L)." -msgstr "" -"Zobrazit soubory označené pro <i>kopírování zleva doprava</i> (CTRL+L)." +msgstr "Zobrazit soubory označené pro <i>kopírování zleva doprava</i> (CTRL+L)." #: Synchronizer/synchronizergui.cpp:1267 #, kde-format @@ -5591,13 +5577,12 @@ #: Synchronizer/synchronizergui.cpp:1287 #, kde-format msgid "Show files marked to <i>Copy from right to left</i> (CTRL+R)." -msgstr "" -"Zobrazit soubory označené pro <i>kopírování zprava doleva</i> (CTRL+R)." +msgstr "Zobrazit soubory označené pro <i>kopírování zprava doleva</i> (CTRL+R)." #: Synchronizer/synchronizergui.cpp:1297 -#, fuzzy, kde-format +#, kde-format msgid "Show files marked to delete (CTRL+T)." -msgstr "Zobrazit soubory označené k vymazání. (CTRL+T)" +msgstr "Zobrazit soubory označené ke smazání (CTRL+T)." #: Synchronizer/synchronizergui.cpp:1302 #, kde-format @@ -6501,8 +6486,7 @@ #: Konfigurator/kggeneral.cpp:73 #, kde-format msgid "Mimetype magic allows better distinction of file types, but is slower." -msgstr "" -"Magická čísla poskytují lepší rozlišení typů souborů, ale jsou pomalejší." +msgstr "Magická čísla poskytují lepší rozlišení typů souborů, ale jsou pomalejší." #: Konfigurator/kggeneral.cpp:80 #, kde-format @@ -6608,8 +6592,7 @@ #: Konfigurator/kggeneral.cpp:213 #, kde-format -msgid "" -"Make sure to install new tools in your <code>$PATH</code> (e.g. /usr/bin)" +msgid "Make sure to install new tools in your <code>$PATH</code> (e.g. /usr/bin)" msgstr "" "Ujistěte se, že instalujete nové nástroje do cesty v <code>$PATH</code> " "(např. /usr/bin)" @@ -6951,12 +6934,12 @@ #: Konfigurator/kglookfeel.cpp:183 #, kde-format msgid "Load the user defined folder icons" -msgstr "" +msgstr "Načítat uživatelské ikony adresářů" #: Konfigurator/kglookfeel.cpp:183 #, kde-format msgid "Load the user defined folder icons (can cause decrease in performance)." -msgstr "" +msgstr "Načítat uživatelské ikony adresářů (může zpomalovat načítání)" #: Konfigurator/kglookfeel.cpp:184 #, kde-format @@ -7092,8 +7075,7 @@ #: Konfigurator/kglookfeel.cpp:264 #, kde-format -msgid "" -"Each directory change in the panel is also performed in the other panel." +msgid "Each directory change in the panel is also performed in the other panel." msgstr "Každá změna v jednom panelu se provede rovněž v protilehlém panelu." #: Konfigurator/kglookfeel.cpp:288 @@ -7381,8 +7363,7 @@ #: Konfigurator/kgadvanced.cpp:63 #, kde-format msgid "MountMan won't (un)mount the following mount-points:" -msgstr "" -"Správce připojení disků nebude při(/od)pojovat následující přípojné body:" +msgstr "Správce připojení disků nebude při(/od)pojovat následující přípojné body:" #: Konfigurator/kgadvanced.cpp:77 #, kde-format @@ -7837,24 +7818,24 @@ msgstr "Pozadí určených ke smazání:" #: Konfigurator/kgcolors.cpp:211 -#, fuzzy, kde-format +#, kde-format msgid "Other" -msgstr "Jiný ..." +msgstr "Ostatní" #: Konfigurator/kgcolors.cpp:219 -#, fuzzy, kde-format +#, kde-format msgid "Quicksearch, match foreground:" -msgstr "Písmo adresářů:" +msgstr "Rychlé hledání, text při shodě:" #: Konfigurator/kgcolors.cpp:220 Konfigurator/kgcolors.cpp:222 -#, fuzzy, kde-format +#, kde-format msgid "Quicksearch, non-match background:" -msgstr "Alternativní pozadí:" +msgstr "Rychlé hledání, pozadí při shodě:" #: Konfigurator/kgcolors.cpp:221 -#, fuzzy, kde-format +#, kde-format msgid "Quicksearch, non-match foreground:" -msgstr "Písmo současného:" +msgstr "Rychlé hledání, text při neshodě:" #: Konfigurator/kgcolors.cpp:255 #, kde-format @@ -7922,14 +7903,14 @@ msgstr "Stejné" #: Konfigurator/kgcolors.cpp:526 -#, fuzzy, kde-format +#, kde-format msgid "Quicksearch non-match" -msgstr "Rychlé hledání" +msgstr "Rychlé hledání neshoda" #: Konfigurator/kgcolors.cpp:527 -#, fuzzy, kde-format +#, kde-format msgid "Quicksearch match" -msgstr "Rychlé hledání" +msgstr "Rychlé hledání shoda" #: Konfigurator/kgcolors.cpp:546 #, kde-format @@ -8195,8 +8176,7 @@ #: Konfigurator/kgarchives.cpp:107 #, kde-format -msgid "" -"Some corrupted archives might cause a crash; therefore, testing is suggested." +msgid "Some corrupted archives might cause a crash; therefore, testing is suggested." msgstr "" "Některé poškozené archívy mohou způsobit spadnutí programu. Proto se " "doporučuje zapnout testování archívů." @@ -8208,8 +8188,7 @@ #: Konfigurator/kgarchives.cpp:125 #, kde-format -msgid "" -"Make sure to install new packers in your <code>$PATH</code> (e.g. /usr/bin)" +msgid "Make sure to install new packers in your <code>$PATH</code> (e.g. /usr/bin)" msgstr "" "Ujistěte se, že instalujete nové archivátory do cesty v <code>$PATH</code> " "(např. /usr/bin)" @@ -8264,9 +8243,9 @@ msgstr "Použít písmo s pevnou šířkou jako výchozí" #: krslots.cpp:100 -#, fuzzy, kde-format +#, kde-format msgid "No selected files to send!" -msgstr "Jen označené soubory" +msgstr "Nejsou označeny soubory, které se mají poslat!" #: krslots.cpp:108 #, kde-format @@ -8278,12 +8257,12 @@ "nainstalujte jej do vaší cesty. Tip: Krusader podporuje KMail." #: krslots.cpp:117 -#, fuzzy, kde-format +#, kde-format msgid "Sending file: %2" msgid_plural "Sending files: %2" -msgstr[0] "Posílám soubor: %1" -msgstr[1] "Posílám soubor: %1" -msgstr[2] "Posílám soubor: %1" +msgstr[0] "Posílám %1 soubor: %2" +msgstr[1] "Posílám %1 soubory: %2" +msgstr[2] "Posílám %1 souborů: %2" #: krslots.cpp:167 #, kde-format @@ -8528,8 +8507,7 @@ #: Splitter/combiner.cpp:154 #, kde-format -msgid "" -"Validity checking is impossible without a good CRC file. Continue combining?" +msgid "Validity checking is impossible without a good CRC file. Continue combining?" msgstr "" "Kontrola platnosti je nemožná bez platného CRC (kontrolní součet) souboru. " "Pokračovat ve slučování?" @@ -8666,48 +8644,3 @@ msgid "Writing to %1 is not supported" msgstr "Zápis do %1 není podporován" -#~ msgid "" -#~ "Don't use KDE's media protocol for media button (if it's buggy or missing)" -#~ msgstr "" -#~ "Nepoužívat protokol media z KDE pro tlačítko Media (pokud nefunguje nebo " -#~ "chybí)" - -#~ msgid "" -#~ "Select if your media protocol is buggy (in some older KDE versions), or " -#~ "not present (no kdebase package installed)." -#~ msgstr "" -#~ "Vyberte, jestli je u vás protokol media chybový (v některých starších " -#~ "verzích KDE), nebo vůbec není nainstalovaný (bývá v balíčku kdebase)" - -#~ msgid "Brief" -#~ msgstr "Stručný" - -#~ msgid "Clear location bar button" -#~ msgstr "Tlačítko vymazat řádek s umístěním" - -#~ msgid "Clears the location bar" -#~ msgstr "Vyčistí řádek s umístěním" - -#~ msgid "CD Recorder" -#~ msgstr "CD Vypalovačka" - -#~ msgid "DVD Recorder" -#~ msgstr "DVD Vypalovačka" - -#~ msgid "DVD" -#~ msgstr "DVD" - -#~ msgid "Zip Disk" -#~ msgstr "Zip disk" - -#~ msgid "add" -#~ msgstr "přidat" - -#~ msgid "<qt>Can't open <b>%1</b></qt>" -#~ msgstr "<qt>Nemohu otevřít <b>%1</b></qt>" - -#~ msgid "Can't open \"%1\"" -#~ msgstr "Nelze otevřít \"%1\"" - -#~ msgid "Clear the location bar" -#~ msgstr "Vyčistit řádek umístění" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-09-22 20:19:48
|
Revision: 6084 http://krusader.svn.sourceforge.net/krusader/?rev=6084&view=rev Author: ckarai Date: 2008-09-22 20:19:41 +0000 (Mon, 22 Sep 2008) Log Message: ----------- GUI stuff in QueueManager (not yet ready) Modified Paths: -------------- trunk/krusader_kde4/krusader/Queue/CMakeLists.txt trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp trunk/krusader_kde4/krusader/Queue/queue_mgr.h trunk/krusader_kde4/krusader/Queue/queuewidget.cpp trunk/krusader_kde4/krusader/Queue/queuewidget.h Added Paths: ----------- trunk/krusader_kde4/krusader/Queue/queuedialog.cpp trunk/krusader_kde4/krusader/Queue/queuedialog.h Modified: trunk/krusader_kde4/krusader/Queue/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Queue/CMakeLists.txt 2008-09-22 18:52:38 UTC (rev 6083) +++ trunk/krusader_kde4/krusader/Queue/CMakeLists.txt 2008-09-22 20:19:41 UTC (rev 6084) @@ -7,7 +7,8 @@ set( Queue_SRCS queue.cpp queue_mgr.cpp - queuewidget.cpp ) + queuewidget.cpp + queuedialog.cpp ) kde4_add_library(Queue STATIC ${Queue_SRCS} ) Modified: trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp 2008-09-22 18:52:38 UTC (rev 6083) +++ trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp 2008-09-22 20:19:41 UTC (rev 6084) @@ -1,15 +1,19 @@ #include "queue_mgr.h" +#include "queuedialog.h" #include <QList> const QString QueueManager::defaultName="default"; QMap<QString, Queue*> QueueManager::_queues; QString QueueManager::_current="default"; +QueueManager * QueueManager::_self = 0; QueueManager::QueueManager() { Queue *defaultQ = new Queue(defaultName); + connect( defaultQ, SIGNAL( showQueueDialog() ), this, SLOT( slotShowQueueDialog() ) ); _queues.insert(defaultQ->name(), defaultQ); _current = defaultName; + _self = this; } QueueManager::~QueueManager() @@ -42,3 +46,8 @@ if (_queues.contains(queueName)) _current = queueName; } + +void QueueManager::slotShowQueueDialog() +{ +// QueueDialog::showDialog(); +} Modified: trunk/krusader_kde4/krusader/Queue/queue_mgr.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue_mgr.h 2008-09-22 18:52:38 UTC (rev 6083) +++ trunk/krusader_kde4/krusader/Queue/queue_mgr.h 2008-09-22 20:19:41 UTC (rev 6084) @@ -10,8 +10,10 @@ * method that fetches a queue by name. calling it with * no arguments will fetch the default queue */ -class QueueManager +class QueueManager : public QObject { + Q_OBJECT + static const QString defaultName; public: QueueManager(); @@ -22,10 +24,16 @@ static Queue* currentQueue(); static void setCurrentQueue(const QString& queueName); + + QueueManager * instance() { return _self; } +protected slots: + void slotShowQueueDialog(); + protected: static QMap<QString, Queue*> _queues; static QString _current; + static QueueManager * _self; }; #endif // QUEUE_MGR_H Added: trunk/krusader_kde4/krusader/Queue/queuedialog.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queuedialog.cpp (rev 0) +++ trunk/krusader_kde4/krusader/Queue/queuedialog.cpp 2008-09-22 20:19:41 UTC (rev 6084) @@ -0,0 +1,206 @@ +/*************************************************************************** + queuedialog.cpp + ------------------- + copyright : (C) 2008+ by Csaba Karai + email : kru...@us... + web site : http://krusader.sourceforge.net + --------------------------------------------------------------------------- + Description + *************************************************************************** + + A + + db dD d8888b. db db .d8888. .d8b. d8888b. d88888b d8888b. + 88 ,8P' 88 `8D 88 88 88' YP d8' `8b 88 `8D 88' 88 `8D + 88,8P 88oobY' 88 88 `8bo. 88ooo88 88 88 88ooooo 88oobY' + 88`8b 88`8b 88 88 `Y8b. 88~~~88 88 88 88~~~~~ 88`8b + 88 `88. 88 `88. 88b d88 db 8D 88 88 88 .8D 88. 88 `88. + YP YD 88 YD ~Y8888P' `8888Y' YP YP Y8888D' Y88888P 88 YD + + S o u r c e F i l e + + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "queuedialog.h" +#include "queuewidget.h" +#include "../krusader.h" +#include <qlayout.h> +#include <qframe.h> +#include <klocale.h> +#include <qevent.h> +#include <qpainter.h> +#include <qrect.h> +#include <qstyleoption.h> +#include <qlabel.h> +#include <kglobalsettings.h> +#include <qfont.h> +#include <qtoolbutton.h> +#include <qimage.h> +#include <kiconeffect.h> + +class KrImageButton : public QToolButton +{ +public: + KrImageButton( QWidget * parent ) : QToolButton ( parent ), _onIcon( false ) + { + } + + virtual QSize sizeHint() const + { + int size = QFontMetrics( font() ).height(); + return QSize( size, size ); + } + + virtual void paintEvent( QPaintEvent* ) + { + int size = QFontMetrics( font() ).height(); + + QPixmap pm = icon().pixmap( size, size ); + + if( _onIcon ) + { + QImage img = pm.toImage(); + KIconEffect::colorize( img, Qt::white, 0.4f ); + pm = QPixmap::fromImage( img ); + } + + QPainter paint( this ); + paint.drawPixmap( QPoint(), pm ); + } + + virtual void enterEvent( QEvent * ) + { + _onIcon = true; + repaint(); + } + + virtual void leaveEvent( QEvent * ) + { + _onIcon = false; + repaint(); + } + +private: + bool _onIcon; +}; + +QueueDialog * QueueDialog::_queueDialog = 0; + +QueueDialog::QueueDialog() : QDialog( 0, Qt::FramelessWindowHint ) +{ + setWindowModality( Qt::NonModal ); + setWindowTitle( i18n("Krusader::Queue Manager") ); + setSizeGripEnabled( true ); + + QGridLayout *grid_main = new QGridLayout; + grid_main->setContentsMargins( 0, 0, 0, 12 ); + grid_main->setSpacing( 0 ); + + QFrame *titleWg = new QFrame( this ); + titleWg->setFrameShape( QFrame::Box ); + titleWg->setFrameShadow( QFrame::Raised ); + titleWg->setLineWidth( 1 ); // a nice 3D touch :-) + titleWg->setAutoFillBackground( true ); + titleWg->setContentsMargins( 2, 2, 2, 2 ); + + QPalette palette = titleWg->palette(); + palette.setColor( QPalette::WindowText, KGlobalSettings::activeTextColor() ); + palette.setColor( QPalette::Window, KGlobalSettings::activeTitleColor() ); + titleWg->setPalette( palette ); + + QHBoxLayout * hbox = new QHBoxLayout( titleWg ); + hbox->setSpacing( 0 ); + + QLabel *title = new QLabel( i18n("Queue Manager"), titleWg ); + QSizePolicy titlepolicy( QSizePolicy::Expanding, QSizePolicy::Fixed); + title->setSizePolicy( titlepolicy ); + title->setAlignment( Qt::AlignHCenter ); + QFont fnt = title->font(); + fnt.setBold( true ); + title->setFont( fnt ); + hbox->addWidget( title ); + + KrImageButton * closeBtn = new KrImageButton( titleWg ); + closeBtn->setIcon( KIcon( "window-close" ) ); + connect( closeBtn, SIGNAL( clicked() ), this, SLOT( reject() ) ); + hbox->addWidget( closeBtn ); + + grid_main->addWidget( titleWg, 0, 0 ); + + QueueWidget *wdg = new QueueWidget( this ); + grid_main->addWidget( wdg, 1, 0 ); + + setLayout( grid_main ); + + KConfigGroup group( krConfig, "QueueManager"); + _sizeX = group.readEntry( "Window Width", -1 ); + _sizeY = group.readEntry( "Window Height", -1 ); + _x = group.readEntry( "Window X", -1 ); + _y = group.readEntry( "Window Y", -1 ); + + if( _sizeX != -1 && _sizeY != -1 ) + resize( _sizeX, _sizeY ); + else + resize( 300, 400 ); + + if( group.readEntry( "Window Maximized", false ) ) + showMaximized(); + else { + if( _x != -1 && _y != -1 ) + move( _x, _y ); + else + move( 20, 20 ); + + show(); + } + + _queueDialog = this; +} + +QueueDialog::~QueueDialog() +{ + _queueDialog = 0; +} + +void QueueDialog::showDialog() +{ + if( _queueDialog == 0 ) + _queueDialog = new QueueDialog(); + else { + _queueDialog->raise(); + _queueDialog->activateWindow(); + } +} + +void QueueDialog::paintEvent ( QPaintEvent * event ) +{ + QDialog::paintEvent( event ); + QPainter p( this ); + + int lineWidth = 2; + int midLineWidth = 0; + + QRect rect = contentsRect(); + rect.adjust( -2, -2, 2, 2 ); + + QStyleOptionFrame opt; + qDrawShadeRect(&p, rect, opt.palette, true, lineWidth, midLineWidth); +} + +void QueueDialog::mousePressEvent(QMouseEvent *me) +{ + _clickPos = me->globalPos(); + _startPos = pos(); +} + +void QueueDialog::mouseMoveEvent(QMouseEvent *me) +{ + move(_startPos + me->globalPos() - _clickPos); +} Added: trunk/krusader_kde4/krusader/Queue/queuedialog.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queuedialog.h (rev 0) +++ trunk/krusader_kde4/krusader/Queue/queuedialog.h 2008-09-22 20:19:41 UTC (rev 6084) @@ -0,0 +1,65 @@ +/*************************************************************************** + queuedialog.h + ------------------- + copyright : (C) 2008+ by Csaba Karai + email : kru...@us... + web site : http://krusader.sourceforge.net + --------------------------------------------------------------------------- + Description + *************************************************************************** + + A + + db dD d8888b. db db .d8888. .d8b. d8888b. d88888b d8888b. + 88 ,8P' 88 `8D 88 88 88' YP d8' `8b 88 `8D 88' 88 `8D + 88,8P 88oobY' 88 88 `8bo. 88ooo88 88 88 88ooooo 88oobY' + 88`8b 88`8b 88 88 `Y8b. 88~~~88 88 88 88~~~~~ 88`8b + 88 `88. 88 `88. 88b d88 db 8D 88 88 88 .8D 88. 88 `88. + YP YD 88 YD ~Y8888P' `8888Y' YP YP Y8888D' Y88888P 88 YD + + H e a d e r F i l e + + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef __QUEUEDIALOG_H__ +#define __QUEUEDIALOG_H__ + +#include <qdialog.h> + +class QPaintEvent; + +class QueueDialog : public QDialog +{ + Q_OBJECT + +private: + QueueDialog(); + +public: + virtual ~QueueDialog(); + + static void showDialog(); + +protected: + virtual void paintEvent ( QPaintEvent * event ); + virtual void mousePressEvent(QMouseEvent *me); + virtual void mouseMoveEvent(QMouseEvent *me); + +private: + static QueueDialog * _queueDialog; + int _sizeX; + int _sizeY; + int _x; + int _y; + QPoint _clickPos; + QPoint _startPos; +}; + +#endif // __QUEUEDIALOG_H__ \ No newline at end of file Modified: trunk/krusader_kde4/krusader/Queue/queuewidget.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queuewidget.cpp 2008-09-22 18:52:38 UTC (rev 6083) +++ trunk/krusader_kde4/krusader/Queue/queuewidget.cpp 2008-09-22 20:19:41 UTC (rev 6084) @@ -1,6 +1,6 @@ #include "queuewidget.h" -QueueWidget::QueueWidget(): KTabWidget() +QueueWidget::QueueWidget( QWidget * parent ): KTabWidget( parent ) { } Modified: trunk/krusader_kde4/krusader/Queue/queuewidget.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queuewidget.h 2008-09-22 18:52:38 UTC (rev 6083) +++ trunk/krusader_kde4/krusader/Queue/queuewidget.h 2008-09-22 20:19:41 UTC (rev 6084) @@ -7,7 +7,7 @@ { Q_OBJECT public: - QueueWidget(); + QueueWidget( QWidget * parent = 0 ); ~QueueWidget(); }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <des...@us...> - 2008-09-22 18:54:00
|
Revision: 6083 http://krusader.svn.sourceforge.net/krusader/?rev=6083&view=rev Author: deschler Date: 2008-09-22 18:52:38 +0000 (Mon, 22 Sep 2008) Log Message: ----------- Full msgmerge Modified Paths: -------------- trunk/krusader_kde4/po/bg.po trunk/krusader_kde4/po/bs.po trunk/krusader_kde4/po/ca.po trunk/krusader_kde4/po/cs.po trunk/krusader_kde4/po/da.po trunk/krusader_kde4/po/de.po trunk/krusader_kde4/po/el.po trunk/krusader_kde4/po/es.po trunk/krusader_kde4/po/fr.po trunk/krusader_kde4/po/hu.po trunk/krusader_kde4/po/it.po trunk/krusader_kde4/po/ja.po trunk/krusader_kde4/po/krusader.pot trunk/krusader_kde4/po/lt.po trunk/krusader_kde4/po/nl.po trunk/krusader_kde4/po/pl.po trunk/krusader_kde4/po/pt.po trunk/krusader_kde4/po/pt_BR.po trunk/krusader_kde4/po/ru.po trunk/krusader_kde4/po/sk.po trunk/krusader_kde4/po/sl.po trunk/krusader_kde4/po/sr.po trunk/krusader_kde4/po/sr@Latn.po trunk/krusader_kde4/po/sv.po trunk/krusader_kde4/po/tr.po trunk/krusader_kde4/po/uk.po trunk/krusader_kde4/po/zh_CN.po Modified: trunk/krusader_kde4/po/bg.po =================================================================== --- trunk/krusader_kde4/po/bg.po 2008-09-16 20:13:25 UTC (rev 6082) +++ trunk/krusader_kde4/po/bg.po 2008-09-22 18:52:38 UTC (rev 6083) @@ -9,8 +9,8 @@ msgid "" msgstr "" "Project-Id-Version: krusader-2.0.0-beta1\n" -"Report-Msgid-Bugs-To: krusader-i18n <kru...@go...>\n" -"POT-Creation-Date: 2008-04-19 02:33+0200\n" +"Report-Msgid-Bugs-To: kru...@go...\n" +"POT-Creation-Date: 2008-09-22 20:47+0200\n" "PO-Revision-Date: 2005-12-04 10:30+0200\n" "Last-Translator: Milen Ivanov <mil...@gm...>\n" "Language-Team: Bulgarian <kru...@go...>\n" @@ -19,884 +19,720 @@ "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: Dialogs/krpleasewait.cpp:49 +#: GUI/dirhistorybutton.cpp:36 GUI/dirhistorybutton.cpp:37 #, kde-format -msgid "Krusader::Wait" -msgstr "Krusader::Изчакване" +msgid "Open the directory history list" +msgstr "Отваряне на списъка с посетени директории" -#: Dialogs/krpleasewait.cpp:65 Dialogs/newftpgui.cpp:145 -#: Splitter/splittergui.cpp:126 +#: GUI/krusaderstatus.cpp:39 #, kde-format -msgid "&Cancel" -msgstr "&Отказ" +msgid "Ready." +msgstr "Готово." -#: Dialogs/krmaskchoice.cpp:57 +#: GUI/profilemanager.cpp:48 GUI/profilemanager.cpp:68 #, kde-format -msgid "Choose Files" -msgstr "Изберете файлове" +msgid "Profiles" +msgstr "Профили" -#: Dialogs/krmaskchoice.cpp:81 +#: GUI/profilemanager.cpp:83 #, kde-format -msgid "Select the following files:" -msgstr "Избор на следните файлове:" +msgid "Remove entry" +msgstr "Премахване на запис" -#: Dialogs/krmaskchoice.cpp:86 +#: GUI/profilemanager.cpp:84 #, kde-format -msgid "Predefined Selections" -msgstr "Готови селекции" +msgid "Overwrite entry" +msgstr "Презаписване на запис" -#: Dialogs/krmaskchoice.cpp:99 +#: GUI/profilemanager.cpp:87 #, kde-format -msgid "" -"A predefined selection is a file-mask which you use often.\n" -"Some examples are: \"*.c, *.h\", \"*.c, *.o\", etc.\n" -"You can add these masks to the list by typing them and pressing the Add " -"button.\n" -"Delete removes a predefined selection and Clear removes all of them.\n" -"Notice that the line in which you edit the mask has it's own history, you " -"can scroll it, if needed." -msgstr "" -"Готовата селекция е файлова маска, която използвате\n" -"често. Например такава може да бъде *.c, *.h, *.o и т.н. \n" -"Добавете такива маски в списъка,\n" -"като ги опишете и натиснете бутона Добавяне.\n" -"Бутона Изтриване изтрива готова селекция от списъка, а Изчистване - всички. " -"Забележете, че реда, където описвате маската, има своя хроника, която можете " -"да превъртате при нужда." +msgid "Add new entry" +msgstr "Добавяне на нов запис" -#: Dialogs/krmaskchoice.cpp:107 +#: GUI/profilemanager.cpp:117 #, kde-format -msgid "Add" -msgstr "Добавяне" +msgid "Krusader::ProfileManager" +msgstr "Управление на профили в Krusader" -#: Dialogs/krmaskchoice.cpp:108 +#: GUI/profilemanager.cpp:117 #, kde-format -msgid "Adds the selection in the line-edit to the list" -msgstr "Добавяне в списъка на селекцията от реда" +msgid "Enter the profile name:" +msgstr "Въведете име на профил:" -#: Dialogs/krmaskchoice.cpp:112 Dialogs/kurllistrequester.cpp:142 -#: BookMan/krbookmarkhandler.cpp:563 Konfigurator/kgcolors.cpp:483 -#: DiskUsage/diskusage.cpp:770 Panel/krpopupmenu.cpp:158 krusader.cpp:739 +#: GUI/krremoteencodingmenu.cpp:128 #, kde-format -msgid "Delete" -msgstr "Изтриване" +msgid "Reload" +msgstr "Презареждане" -#: Dialogs/krmaskchoice.cpp:113 +#: GUI/krremoteencodingmenu.cpp:132 Filter/generalfilter.cpp:290 +#: Konfigurator/konfiguratoritems.cpp:555 #, kde-format -msgid "Delete the marked selection from the list" -msgstr "Изтриване на отбелязаната селекция от списъка" +msgid "Default" +msgstr "По подразбиране" -#: Dialogs/krmaskchoice.cpp:117 +#: GUI/mediabutton.cpp:59 GUI/mediabutton.cpp:60 #, kde-format -msgid "Clear" -msgstr "Изчистване" +msgid "Open the available media list" +msgstr "Отваряне на списъка с наличните медийни носители" -#: Dialogs/krmaskchoice.cpp:118 +#: GUI/mediabutton.cpp:138 GUI/mediabutton.cpp:566 #, kde-format -msgid "Clears the entire list of selections" -msgstr "Изчистване на целият списък от селекции" +msgid "Remote Share" +msgstr "Отдалечен споделяне" -#: Dialogs/krmaskchoice.cpp:133 +#: GUI/mediabutton.cpp:159 GUI/mediabutton.cpp:162 VFS/kiojobwrapper.cpp:189 #, kde-format -msgid "OK" -msgstr "ОК" +msgid "Unknown" +msgstr "Неизвестен" -#: Dialogs/krmaskchoice.cpp:137 Dialogs/packguibase.cpp:298 -#: DiskUsage/diskusage.cpp:162 Panel/listpanel.cpp:874 -#: Panel/panelpopup.cpp:402 +#: GUI/mediabutton.cpp:177 #, kde-format -msgid "Cancel" -msgstr "Отказ" +msgid "Floppy" +msgstr "Флопи" -#: Dialogs/krspecialwidgets.cpp:119 +#: GUI/mediabutton.cpp:179 +#, fuzzy, kde-format +msgid "CD/DVD-ROM" +msgstr "CD-ROM" + +#: GUI/mediabutton.cpp:181 #, kde-format -msgid "Capacity: " -msgstr "Капацитет: " +msgid "USB pen drive" +msgstr "" -#: Dialogs/krspecialwidgets.cpp:129 +#: GUI/mediabutton.cpp:183 #, kde-format -msgid "Used: " -msgstr "Използвано: " +msgid "USB device" +msgstr "" -#: Dialogs/krspecialwidgets.cpp:130 +#: GUI/mediabutton.cpp:185 #, kde-format -msgid "Free: " -msgstr "Свободно: " +msgid "Removable media" +msgstr "" -#: Dialogs/krspecialwidgets.cpp:157 +#: GUI/mediabutton.cpp:187 #, kde-format -msgid "Not mounted." -msgstr "Не е монтирано." +msgid "Hard Disk" +msgstr "Твърд диск" -#: Dialogs/krkeydialog.cpp:29 -msgid "" -"*.keymap|Krusader keymaps\n" -"*|all files" -msgstr "" -"*.keymap|Krusader keymaps\n" -"*|всички файлове" +#: GUI/mediabutton.cpp:189 +#, fuzzy, kde-format +msgid "Camera" +msgstr "Име" -#: Dialogs/krkeydialog.cpp:41 +#: GUI/mediabutton.cpp:191 #, kde-format -msgid "Import shortcuts" -msgstr "Внасяне на препратки" +msgid "Video CD/DVD-ROM" +msgstr "" -#: Dialogs/krkeydialog.cpp:42 +#: GUI/mediabutton.cpp:193 #, kde-format -msgid "Load a keybinding profile, e.g., total_commander.keymap" +msgid "Audio CD/DVD-ROM" msgstr "" -"Зареждане на профил за клавишните комбинации, като напр. total_commander." -"keymap" -#: Dialogs/krkeydialog.cpp:46 +#: GUI/mediabutton.cpp:195 #, kde-format -msgid "Export shortcuts" -msgstr "Изнасяне на препратки" +msgid "Recordable CD/DVD-ROM" +msgstr "" -#: Dialogs/krkeydialog.cpp:47 +#: GUI/mediabutton.cpp:325 Panel/krpopupmenu.cpp:69 +#: BookMan/krbookmarkhandler.cpp:557 #, kde-format -msgid "Save current keybindings in a keymap file." -msgstr "Запис на текущите клавишни комбинации в keymap файл." +msgid "Open" +msgstr "Отваряне" -#: Dialogs/krkeydialog.cpp:64 Dialogs/krkeydialog.cpp:129 +#: GUI/mediabutton.cpp:327 BookMan/krbookmarkhandler.cpp:559 #, kde-format -msgid "Select a keymap file" -msgstr "Изберете файл с клавишна кодировка" +msgid "Open in a new tab" +msgstr "Отваряне в нов подпрозорец" -#: Dialogs/krkeydialog.cpp:71 +#: GUI/mediabutton.cpp:332 Panel/krpopupmenu.cpp:189 +#: MountMan/kmountman.cpp:296 MountMan/kmountmangui.cpp:371 #, kde-format -msgid "" -"This file does not seem to be a valid keymap.\n" -"It may be a keymap using a legacy format. The import can't be undone!" -msgstr "" -"Този файл изглежда не е валидна клавишна кодировка.\n" -"Може да е клавишна кодировка в формат legacy. Внасянето не може да бъде " -"поправено!" +msgid "Mount" +msgstr "Монтиране" -#: Dialogs/krkeydialog.cpp:73 +#: GUI/mediabutton.cpp:335 Panel/krpopupmenu.cpp:187 +#: MountMan/kmountman.cpp:296 MountMan/kmountmangui.cpp:376 #, kde-format -msgid "Try to import legacy format?" -msgstr "Опит за внасяне от формат legacy?" +msgid "Unmount" +msgstr "Размонтиране" -#: Dialogs/krkeydialog.cpp:74 +#: GUI/mediabutton.cpp:339 Panel/krpopupmenu.cpp:191 +#: MountMan/kmountmangui.cpp:383 #, kde-format -msgid "Import anyway" -msgstr "Внасяне въпреки това" +msgid "Eject" +msgstr "Изваждане на диска" -#: Dialogs/krkeydialog.cpp:96 +#: GUI/mediabutton.cpp:423 #, kde-format -msgid "" -"The following information was attached to the keymap. Do you really want to " -"import this keymap?" +msgid "An error occurred while accessing '%1', the system responded: %2" msgstr "" -"Следната информация е прикрепена към файла с клавишни подредби. Наистина ли " -"искате да внесете този файл?" -#: Dialogs/krkeydialog.cpp:123 +#: GUI/mediabutton.cpp:426 #, kde-format -msgid "Please restart this dialog in order to see the changes" -msgstr "Моля, стартирайте отново диалога, за да видите промените" +msgid "An error occurred while accessing '%1'" +msgstr "" -#: Dialogs/krkeydialog.cpp:124 +#: GUI/syncbrowsebutton.cpp:45 GUI/syncbrowsebutton.cpp:48 #, kde-format -msgid "Legacy import completed" -msgstr "Внасянето от legacy формат завършено" - -#: Dialogs/krkeydialog.cpp:135 -#, kde-format msgid "" -"<qt>File <b>%1</b> already exists. Do you really want to overwrite it?</qt>" +"This button toggles the sync-browse mode.\n" +"When active, each directory change is performed in the\n" +"active and inactive panel - if possible." msgstr "" -"<qt>Файла <b>%1</b> вече съществува. Наистина ли искате ли да го презапишете?" -"</qt>" +"Режимът sync-browse се превключва с този бутон.\n" +"Ако е активен, всяка смяна на директория ще се \n" +"отразява в активния и неактивния панел - ако е възможно." -#: Dialogs/krkeydialog.cpp:136 Dialogs/checksumdlg.cpp:630 -#: Konfigurator/kgcolors.cpp:532 DiskUsage/diskusage.cpp:614 -#: Panel/panelfunc.cpp:666 +#. i18n: tag string +#. i18n: file ./ActionMan/actionproperty.ui line 414 +#: GUI/kcmdmodebutton.cpp:48 ActionMan/ui_actionproperty.h:726 rc.cpp:122 #, kde-format -msgid "Warning" -msgstr "Предупреждение" +msgid "Execution mode" +msgstr "Режим на изпълнение" -#: Dialogs/krkeydialog.cpp:136 Dialogs/checksumdlg.cpp:630 -#: Konfigurator/kgcolors.cpp:532 UserAction/kraction.cpp:160 +#: GUI/kcmdline.cpp:66 #, kde-format -msgid "Overwrite" -msgstr "Презапис" +msgid "Name of directory where command will be processed." +msgstr "Името на директорията, където командата ще бъде изпълнена." -#: Dialogs/krkeydialog.cpp:144 +#: GUI/kcmdline.cpp:95 #, kde-format -msgid "<qt>Can't open <b>%1</b> for writing!</qt>" -msgstr "<qt>Отварянето на <b>%1</b> за писане е невъзможно!</qt>" +msgid "" +"<qt><p>Well, it's actually quite simple: You type your command here and " +"Krusader obeys.</p><p><b>Tip</b>: Move within command line history with <" +"Up> and <Down> arrows.</p></qt>" +msgstr "" +"<qt>Всъщност е много просто: Въвеждате командата тук и Krusader се подчинява." +"<p><Съвет:>Разгърнете хрониката на командния ред с <Up> и <Down> " +"стрелките.</qt>" -#: Dialogs/krdialogs.cpp:155 +#. i18n: tag string +#. i18n: file ./ActionMan/actionproperty.ui line 303 +#: GUI/kcmdline.cpp:103 ActionMan/ui_actionproperty.h:698 rc.cpp:92 #, kde-format -msgid "Preserve attributes (only for local targets)" -msgstr "Запазване на атрибутите (само за локални обекти)" +msgid "Add <b>Placeholders</b> for the selected files in the panel." +msgstr "Добавяне на <b>шаблони</b> за избраните файлове в панела." -#: Dialogs/krdialogs.cpp:162 +#: GUI/kfnkeys.cpp:50 #, kde-format -msgid "Keep virtual directory structure" -msgstr "Запазване на виртуалната структура на директорията" +msgid "F2 Term " +msgstr "F2 Терминал " -#: Dialogs/krdialogs.cpp:168 +#: GUI/kfnkeys.cpp:51 #, kde-format -msgid "Base URL:" -msgstr "Основен URL:" +msgid "" +"<p>Open terminal in current directory.</p><p>The terminal can be defined in " +"Konfigurator, default is <b>konsole</b>.</p>" +msgstr "" +"<p>Отваряне на текущата директория в терминал.</p><p>Терминал се избира в " +"конфигуратора, по подразбиране е <b>konsole</b>.</p>" -#: Dialogs/packgui.cpp:55 +#: GUI/kfnkeys.cpp:57 #, kde-format -msgid "Pack %1" -msgstr "Архивиране на %1" +msgid "F3 View " +msgstr "F3 Преглед " -#: Dialogs/packgui.cpp:57 +#: GUI/kfnkeys.cpp:58 #, kde-format -msgid "Pack %1 file" -msgid_plural "Pack %1 files" -msgstr[0] "_n: Архивиране на %1 файл" -msgstr[1] "Архивиране на %1 файла" +msgid "Open file in viewer." +msgstr "Отваряне на файл за разглеждане." -#: Dialogs/packgui.cpp:96 +#: GUI/kfnkeys.cpp:62 #, kde-format -msgid "Please select a directory" -msgstr "Изберете директория" +msgid "F4 Edit " +msgstr "F4 Редактиране " -#: Dialogs/popularurls.cpp:64 +#: GUI/kfnkeys.cpp:63 #, kde-format -msgid "Saved 'Popular Urls' are invalid. List will be cleared" -msgstr "Съхранените 'Популярни Url-и' са невалидни. Списъкът ще бъде изчистен." +msgid "" +"<p>Edit file.</p><p>The editor can be defined in Konfigurator, default is " +"<b>internal editor</b>.</p>" +msgstr "" +"<p>Редактиране на файл.</p><p>Редакторът се настройва в конфигуратора, по " +"подразбиране е <b>вътрешен редактор</b>.</p>" -#: Dialogs/popularurls.cpp:235 +#: GUI/kfnkeys.cpp:69 #, kde-format -msgid "Popular Urls" -msgstr "Популярни Url-и" +msgid "F5 Copy " +msgstr "F5 Копиране " -#: Dialogs/popularurls.cpp:254 +#: GUI/kfnkeys.cpp:70 #, kde-format -msgid " &Search: " -msgstr " Тъ&рсене: " +msgid "Copy file from one panel to the other." +msgstr "Копиране на файл от единия панел в другият." -#: Dialogs/newftpgui.cpp:51 +#: GUI/kfnkeys.cpp:74 #, kde-format -msgid "New Network Connection" -msgstr "Нова мрежова връзка" +msgid "F6 Move" +msgstr "F6 Преместване" -#: Dialogs/newftpgui.cpp:65 +#: GUI/kfnkeys.cpp:75 #, kde-format -msgid "About to connect to..." -msgstr "Свързване с ..." +msgid "Move file from one panel to the other." +msgstr "Преместване на файл от единия панел в другият." -#: Dialogs/newftpgui.cpp:75 +#: GUI/kfnkeys.cpp:79 #, kde-format -msgid "Protocol:" -msgstr "Протокол:" +msgid "F7 Mkdir " +msgstr "F7 СъздДир " -#: Dialogs/newftpgui.cpp:76 +#: GUI/kfnkeys.cpp:80 #, kde-format -msgid "Host:" -msgstr "Хост:" +msgid "Create directory in current panel." +msgstr "Създаване на директория в текущия панел." -#: Dialogs/newftpgui.cpp:77 +#: GUI/kfnkeys.cpp:84 #, kde-format -msgid "Port:" -msgstr "Порт:" +msgid "F8 Delete" +msgstr "F8 Изтриване" -#: Dialogs/newftpgui.cpp:85 +#: GUI/kfnkeys.cpp:85 #, kde-format -msgid "ftp://" -msgstr "ftp://" +msgid "Delete file, directory, etc." +msgstr "Изтриване на файл, директория и др." -#: Dialogs/newftpgui.cpp:87 +#: GUI/kfnkeys.cpp:89 #, kde-format -msgid "smb://" -msgstr "smb://" +msgid "F9 Rename" +msgstr "F9 Преименуване" -#: Dialogs/newftpgui.cpp:89 +#: GUI/kfnkeys.cpp:90 #, kde-format -msgid "fish://" -msgstr "fish://" +msgid "Rename file, directory, etc." +msgstr "Преименуване на файл, директория и др." -#: Dialogs/newftpgui.cpp:91 +#: GUI/kfnkeys.cpp:94 #, kde-format -msgid "sftp://" -msgstr "sftp://" +msgid "F10 Quit " +msgstr "F10 Изход " -#: Dialogs/newftpgui.cpp:122 +#: GUI/kfnkeys.cpp:95 #, kde-format -msgid "Username:" -msgstr "Потребителско име:" +msgid "Quit Krusader." +msgstr "Изход от Krusader." -#: Dialogs/newftpgui.cpp:124 +#: GUI/kfnkeys.cpp:121 #, kde-format -msgid "Password:" -msgstr "Парола:" +msgid " Term" +msgstr " Терминал" -#: Dialogs/newftpgui.cpp:136 +#: GUI/kfnkeys.cpp:122 #, kde-format -msgid "&Connect" -msgstr "&Свързване" +msgid " View" +msgstr " Преглед" -#: Dialogs/checksumdlg.cpp:205 Dialogs/checksumdlg.cpp:507 +#: GUI/kfnkeys.cpp:123 #, kde-format -msgid "Create Checksum" -msgstr "Създаване на контролна сума" +msgid " Edit" +msgstr " Редактиране" -#: Dialogs/checksumdlg.cpp:211 +#: GUI/kfnkeys.cpp:124 #, kde-format -msgid "" -"<qt>Can't calculate checksum since no supported tool was found. Please check " -"the <b>Dependencies</b> page in Krusader's settings.</qt>" -msgstr "" -"<qt>Изчисляването на контролната сума е невъзможно, защото не е открит " -"подходящ инструмент. Моля, проверете настройките в <b>Зависимости</b>.</qt>" +msgid " Copy" +msgstr " Копиране" -#: Dialogs/checksumdlg.cpp:214 Dialogs/checksumdlg.cpp:333 +#: GUI/kfnkeys.cpp:125 #, kde-format -msgid "" -"<qt><b>Note</b>: you've selected directories, and probably have no recursive " -"checksum tool installed. Krusader currently supports <i>md5deep, sha1deep, " -"sha256deep, tigerdeep and cfv</i></qt>" -msgstr "" -"<qt><b>Забележка</b>: избрали сте директории и вероятно нямате инсталиран " -"инструмент за рекурсивно пресмятане на контролна сума. Krusader поддържа " -"<i>md5deep, sha1deep, sha256deep, tigerdeep и cfv</i></qt>" +msgid " Move" +msgstr " Преместване" -#: Dialogs/checksumdlg.cpp:233 +#: GUI/kfnkeys.cpp:126 #, kde-format -msgid "About to calculate checksum for the following files" -msgstr "Пресмятане контролната сума на следните файлове" +msgid " Mkdir" +msgstr " СъздДир" -#: Dialogs/checksumdlg.cpp:234 Dialogs/checksumdlg.cpp:353 +#: GUI/kfnkeys.cpp:127 #, kde-format -msgid " and folders:" -msgstr " и папки:" +msgid " Delete" +msgstr " Изтриване" -#: Dialogs/checksumdlg.cpp:248 +#: GUI/kfnkeys.cpp:128 #, kde-format -msgid "Select the checksum method:" -msgstr "Изберете метод за пресмятане:" +msgid " Rename" +msgstr " Преименуване" -#: Dialogs/checksumdlg.cpp:277 +#: GUI/kfnkeys.cpp:129 #, kde-format -msgid "Calculating checksums ..." -msgstr "Пресмятане на контролни суми..." +msgid " Quit" +msgstr " Изход" -#: Dialogs/checksumdlg.cpp:294 Dialogs/checksumdlg.cpp:428 +#: VFS/ftp_vfs.cpp:157 #, kde-format -msgid "<qt>There was an error while running <b>%1</b>.</qt>" -msgstr "<qt>Възникна грешка при изпълнение на <b>%1</b>.</qt>" - -#: Dialogs/checksumdlg.cpp:306 Dialogs/checksumdlg.cpp:437 -#, kde-format -msgid "Error reading stdout or stderr" -msgstr "Грешка при четене на stdout или stderr" - -#: Dialogs/checksumdlg.cpp:324 Dialogs/checksumdlg.cpp:462 -#, kde-format -msgid "Verify Checksum" -msgstr "Проверяване на контролна сума" - -#: Dialogs/checksumdlg.cpp:330 -#, kde-format msgid "" -"<qt>Can't verify checksum since no supported tool was found. Please check " -"the <b>Dependencies</b> page in Krusader's settings.</qt>" +"Malformed URL:\n" +"%1" msgstr "" -"<qt>Проверката на контролната сума е невъзможна поради липсата на поддържан " -"инструмент. Моля, проверете настройките в <b>Зависимости</b>.</qt>" +"Неправилен URL:\n" +"%1" -#: Dialogs/checksumdlg.cpp:352 +#: VFS/ftp_vfs.cpp:160 #, kde-format -msgid "About to verify checksum for the following files" -msgstr "Проверка контролната сума на следните файлове" - -#: Dialogs/checksumdlg.cpp:367 -#, kde-format -msgid "Checksum file:" -msgstr "Файл с контролна сума:" - -#: Dialogs/checksumdlg.cpp:382 -#, kde-format msgid "" -"<qt>Error reading checksum file <i>%1</i>.<br />Please specify a valid " -"checksum file.</qt>" +"Krusader doesn't support FTP access via HTTP.\n" +"If it is not the case, please check and change the Proxy settings in " +"kcontrol." msgstr "" -"<qt>Грешка при четене на файл с контролна сума <i>%1</i>.<br />Моля, " -"определете валиден файл с контролна сума.</qt>" +"Krusader не поддържа FTP достър през HTTP.\n" +"Ако случая не е такъв, моля проверете настройките на прокси сървъра в " +"kcontrol." -#: Dialogs/checksumdlg.cpp:395 +#: VFS/ftp_vfs.cpp:162 #, kde-format msgid "" -"<qt>Krusader can't find a checksum tool that handles %1 on your system. " -"Please check the <b>Dependencies</b> page in Krusader's settings.</qt>" +"Protocol not supported by Krusader:\n" +"%1" msgstr "" -"<qt>Krusader не може да открие инструмент за контролни суми, който да " -"обработи %1. Моля, проверете настройките в <b>Зависимости</b>.</qt>" +"Протокола не се поддържа от Krusader:\n" +"%1" -#: Dialogs/checksumdlg.cpp:413 -#, kde-format -msgid "Verifying checksums ..." -msgstr "Проверка на контролни суми ..." +#: VFS/preserveattrcopyjob.cpp:334 VFS/virtualcopyjob.cpp:389 +#, fuzzy, kde-format +msgctxt "@title job" +msgid "Moving" +msgstr "Преместване на файлове" -#: Dialogs/checksumdlg.cpp:480 -#, kde-format -msgid "Errors were detected while verifying the checksums" -msgstr "При проверката на контролните суми бяха открити грешки" +#: VFS/preserveattrcopyjob.cpp:335 VFS/preserveattrcopyjob.cpp:342 +#: VFS/preserveattrcopyjob.cpp:349 VFS/preserveattrcopyjob.cpp:373 +#: VFS/virtualcopyjob.cpp:384 VFS/virtualcopyjob.cpp:390 +#, fuzzy, kde-format +msgid "Source" +msgstr "Източник:" -#: Dialogs/checksumdlg.cpp:481 -#, kde-format -msgid "Checksums were verified successfully" -msgstr "Контролните суми бяха успешно проверени" +#: VFS/preserveattrcopyjob.cpp:336 VFS/preserveattrcopyjob.cpp:343 +#: VFS/preserveattrcopyjob.cpp:350 VFS/preserveattrcopyjob.cpp:374 +#: VFS/virtualcopyjob.cpp:385 VFS/virtualcopyjob.cpp:391 +#, fuzzy, kde-format +msgid "Destination" +msgstr "Назначение:" -#: Dialogs/checksumdlg.cpp:487 -#, kde-format -msgid "The following files have failed:" -msgstr "Проверката не успя на следните файлове:" +#: VFS/preserveattrcopyjob.cpp:341 VFS/preserveattrcopyjob.cpp:348 +#: VFS/preserveattrcopyjob.cpp:372 VFS/virtualcopyjob.cpp:383 +#, fuzzy, kde-format +msgctxt "@title job" +msgid "Copying" +msgstr "Копиране на файлове" -#: Dialogs/checksumdlg.cpp:527 -#, kde-format -msgid "Errors were detected while creating the checksums" -msgstr "При създаването на контролните суми бяха открити грешки" +#: VFS/preserveattrcopyjob.cpp:361 +#, fuzzy, kde-format +msgctxt "@title job" +msgid "Creating directory" +msgstr "Една директория нагоре" -#: Dialogs/checksumdlg.cpp:528 +#: VFS/preserveattrcopyjob.cpp:362 Panel/krinterview.cpp:205 +#: Panel/krbriefview.cpp:226 Panel/krdetailedview.cpp:317 +#: Konfigurator/kgcolors.cpp:446 #, kde-format -msgid "Checksums were created successfully" -msgstr "Контролните суми бяха успешно създадени" +msgid "Directory" +msgstr "Директория" -#: Dialogs/checksumdlg.cpp:535 -#, kde-format -msgid "Here are the calculated checksums:" -msgstr "Това са пресметнатите контролни суми:" +#: VFS/preserveattrcopyjob.cpp:793 +#, fuzzy, kde-format +msgid "Folder Already Exists" +msgstr "Файла вече съществува" -#: Dialogs/checksumdlg.cpp:543 +#: VFS/preserveattrcopyjob.cpp:1074 VFS/preserveattrcopyjob.cpp:1594 +#: Synchronizer/synchronizer.cpp:1171 Synchronizer/synchronizer.cpp:1181 #, kde-format -msgid "Hash" -msgstr "Хеш" +msgid "File Already Exists" +msgstr "Файла вече съществува" -#: Dialogs/checksumdlg.cpp:544 Konfigurator/kgcolors.cpp:427 +#: VFS/preserveattrcopyjob.cpp:1074 VFS/preserveattrcopyjob.cpp:1594 +#, fuzzy, kde-format +msgid "Already Exists as Folder" +msgstr "Файла вече съществува" + +#: VFS/normal_vfs.cpp:91 #, kde-format -msgid "File" -msgstr "Файл" +msgid "Directory %1 does not exist!" +msgstr "Директорията %1 не съществува!" -#: Dialogs/checksumdlg.cpp:547 +#: VFS/normal_vfs.cpp:91 VFS/normal_vfs.cpp:101 VFS/normal_vfs.cpp:108 +#: VFS/virt_vfs.cpp:90 VFS/virt_vfs.cpp:180 VFS/krarchandler.cpp:207 +#: VFS/krarchandler.cpp:266 VFS/krarchandler.cpp:284 VFS/krarchandler.cpp:345 +#: VFS/krarchandler.cpp:519 VFS/krarchandler.cpp:526 +#: BookMan/krbookmarkhandler.cpp:171 BookMan/krbookmarkhandler.cpp:267 +#: MountMan/kmountman.cpp:205 Synchronizer/synchronizerdirlist.cpp:121 +#: Konfigurator/kggeneral.cpp:226 Konfigurator/kgcolors.cpp:550 +#: Konfigurator/kgcolors.cpp:567 #, kde-format -msgid "File and hash" -msgstr "Файл и хеш" +msgid "Error" +msgstr "Грешка" -#: Dialogs/checksumdlg.cpp:577 +#: VFS/normal_vfs.cpp:101 Synchronizer/synchronizerdirlist.cpp:121 #, kde-format -msgid "Here are the errors received:" -msgstr "Това са получените грешки:" +msgid "Can't open the %1 directory!" +msgstr "Не може да се влезе в директория %1!" -#: Dialogs/checksumdlg.cpp:592 +#: VFS/normal_vfs.cpp:108 #, kde-format -msgid "Save checksum to file:" -msgstr "Запис на контролната сума във файл:" +msgid "Access denied to" +msgstr "Забранен достъп до" -#: Dialogs/checksumdlg.cpp:606 +#: VFS/normal_vfs.cpp:217 #, kde-format -msgid "Checksum file for each source file" -msgstr "Файл с контролна сума за всеки файл" +msgid "Can't create a directory. Check your permissions." +msgstr "Директорията не може да се създаде, проверете си привилегиите." -#: Dialogs/checksumdlg.cpp:629 +#: VFS/virt_vfs.cpp:90 #, kde-format msgid "" -"File %1 already exists.\n" -"Are you sure you want to overwrite it?" +"You can't copy files directly to the 'virt:/' directory.\n" +"You can create a sub directory and copy your files into it." msgstr "" -"Файла %1 вече съществува.\n" -"Сигурни ли сте, че искате ли да го презапишете?" +"Не можете да копирате файлове направо в директория 'virt:/'.\n" +"Създайте поддиректория и копирайте там файловете." -#: Dialogs/checksumdlg.cpp:632 +#: VFS/virt_vfs.cpp:180 #, kde-format -msgid "Select a file to save to" -msgstr "Изберете файл за запис " +msgid "Creating new directories is allowed only in the 'virt:/' directory." +msgstr "Създаването на нови директории е позволено само в директория 'virt:/'." -#: Dialogs/checksumdlg.cpp:637 +#: VFS/kiojobwrapper.cpp:179 Konfigurator/krresulttable.cpp:305 #, kde-format -msgid "Error saving file %1" -msgstr "Грешка при запис на файла %1" +msgid "Status" +msgstr "Състояние" -#: Dialogs/checksumdlg.cpp:649 -#, kde-format -msgid "Saving checksum files..." -msgstr "Запис на файлове с контролни суми..." +#: VFS/kiojobwrapper.cpp:181 +#, fuzzy, kde-format +msgid "Directory Size" +msgstr "Директории" -#: Dialogs/checksumdlg.cpp:656 -#, kde-format -msgid "Errors occured while saving multiple checksums. Stopping" -msgstr "Възникна грешка при запис на множество контролни суми. Преустановено." +#: VFS/kiojobwrapper.cpp:184 +#, fuzzy, kde-format +msgid "Copy" +msgstr " Копиране" -#: Dialogs/krprogress.cpp:65 -#, kde-format -msgid "Source:" -msgstr "Източник:" +#: VFS/kiojobwrapper.cpp:187 +#, fuzzy, kde-format +msgid "Move" +msgstr " Преместване" -#: Dialogs/krprogress.cpp:70 Dialogs/krprogress.cpp:246 +#: VFS/krquery.cpp:159 Filter/generalfilter.cpp:142 +#: Konfigurator/konfigurator.cpp:159 #, kde-format -msgid "Destination:" -msgstr "Назначение:" +msgid "Archives" +msgstr "Архиви" -#: Dialogs/krprogress.cpp:118 +#: VFS/krquery.cpp:160 Filter/generalfilter.cpp:143 +#: Filter/generalfilter.cpp:635 #, kde-format -msgid "Krusader Progress" -msgstr "Krusader Напредък" +msgid "Directories" +msgstr "Директории" -#: Dialogs/krprogress.cpp:171 +#: VFS/krquery.cpp:161 Filter/generalfilter.cpp:144 #, kde-format -msgid "%1 directory" -msgid_plural "%1 directories" -msgstr[0] "_n: %1 директория" -msgstr[1] "%1 директории" +msgid "Image Files" +msgstr "Изображения" -#: Dialogs/krprogress.cpp:172 +#: VFS/krquery.cpp:162 Filter/generalfilter.cpp:145 #, kde-format -msgid "%1 file" -msgid_plural "%1 files" -msgstr[0] "_n: %1 файл" -msgstr[1] "%1 файла" +msgid "Text Files" +msgstr "Текстови файлове" -#: Dialogs/krprogress.cpp:180 +#: VFS/krquery.cpp:163 Filter/generalfilter.cpp:146 #, kde-format -msgid " (Reading)" -msgstr " (Четене)" +msgid "Video Files" +msgstr "Видео файлове" -#: Dialogs/krprogress.cpp:197 +#: VFS/krquery.cpp:164 Filter/generalfilter.cpp:147 #, kde-format -msgid "%1 of %2 complete" -msgstr "%1 от %2 завършени" +msgid "Audio Files" +msgstr "Аудио файлове" -#: Dialogs/krprogress.cpp:207 Dialogs/krprogress.cpp:220 +#: VFS/krquery.cpp:165 #, kde-format -msgid "%2 / %1 directory" -msgid_plural "%2 / %1 directories" -msgstr[0] "%2 / %1 директории" +msgid "Custom" +msgstr "Други" -#: Dialogs/krprogress.cpp:209 Dialogs/krprogress.cpp:223 +#: VFS/krquery.cpp:455 #, kde-format -msgid "%2 / %1 file" -msgid_plural "%2 / %1 files" -msgstr[0] "%2 / %1 файла" +msgid "Searching content of '%1' (%2%)" +msgstr "Търсене на съдържание на '%1' (%2%)" -#: Dialogs/krprogress.cpp:231 +#: VFS/krarchandler.cpp:183 #, kde-format -msgid "Working" -msgstr "Изпълнение" +msgid "Counting files in archive" +msgstr "Брои файловете в архива" -#: Dialogs/krprogress.cpp:235 +#: VFS/krarchandler.cpp:206 #, kde-format -msgid "%1/s ( %2 remaining )" -msgstr "%1/s ( %2 оставащо )" +msgid "Failed to list the content of the archive (%1)!" +msgstr "Неуспешно извеждане на съдържанието на архива (%1)!" -#: Dialogs/krspwidgets.cpp:155 +#: VFS/krarchandler.cpp:224 #, kde-format -msgid "Enter a selection:" -msgstr "Въведи селекция:" +msgid "Failed to unpack" +msgstr "Неуспешно разархивиране" -#: Dialogs/krspwidgets.cpp:307 Dialogs/krspwidgets.cpp:318 +#: VFS/krarchandler.cpp:265 #, kde-format -msgid "Quick Navigation" -msgstr "Бърза навигация" +msgid "Failed to convert rpm (%1) to cpio!" +msgstr "Неуспешно преобразуване на rpm (%1) в cpio!" -#: Dialogs/krspwidgets.cpp:308 +#: VFS/krarchandler.cpp:283 #, kde-format -msgid "Already at <i>%1</i>" -msgstr "Вече е в <i>%1</i>" +msgid "Failed to convert deb (%1) to tar!" +msgstr "Неуспешно преобразуване на deb (%1) в tar!" -#: Dialogs/krspwidgets.cpp:319 +#: VFS/krarchandler.cpp:316 #, kde-format -msgid "Click to go to <i>%1</i>" -msgstr "Щракни, за да отидеш в <i>%1</i>" +msgid "Unpacking File(s)" +msgstr "Разархивира файл(ове)" -#: Dialogs/packguibase.cpp:68 Dialogs/packguibase.cpp:122 +#: VFS/krarchandler.cpp:343 #, kde-format -msgid "Pack" -msgstr "Архивиране" +msgid "Failed to unpack %1!" +msgstr "Неуспешно разархивиране на %1!" -#: Dialogs/packguibase.cpp:78 +#: VFS/krarchandler.cpp:344 VFS/krarchandler.cpp:518 #, kde-format -msgid "To archive" -msgstr "В архив" +msgid "User cancelled." +msgstr "Прекратено от потребител." -#: Dialogs/packguibase.cpp:97 +#: VFS/krarchandler.cpp:388 #, kde-format -msgid "In directory" -msgstr "В директория" +msgid "Testing Archive" +msgstr "Тестване на архив" -#: Dialogs/packguibase.cpp:147 +#: VFS/krarchandler.cpp:497 #, kde-format -msgid "Multiple volume archive" -msgstr "Многотомен архив" +msgid "Packing File(s)" +msgstr "Архивира файл(ове)" -#: Dialogs/packguibase.cpp:156 DiskUsage/diskusage.cpp:1077 +#: VFS/krarchandler.cpp:517 #, kde-format -msgid "Size:" -msgstr "Размер:" +msgid "Failed to pack %1!" +msgstr "Неуспешно архивиране на %1!" -#: Dialogs/packguibase.cpp:174 +#: VFS/krarchandler.cpp:526 #, kde-format -msgid "Set compression level" -msgstr "Установяване ниво на компресия" +msgid "Failed to pack: " +msgstr "Неуспешно архивиране: " -#: Dialogs/packguibase.cpp:195 +#: VFS/krarchandler.cpp:562 #, kde-format -msgid "MIN" -msgstr "МИН" +msgid "This archive is encrypted, please supply the password:" +msgstr "Архивът е криптиран, моля въведете паролата:" -#: Dialogs/packguibase.cpp:196 +#: KrJS/krjs.cpp:64 #, kde-format -msgid "MAX" -msgstr "МАКС" +msgid "" +"In %1:\n" +"Uncaught JavaScript exception '%2'\n" +"%3" +msgstr "" +"В %1:\n" +"Неприхванато JavaScript изключение '%2'\n" +"%3" -#: Dialogs/packguibase.cpp:220 +#: KrJS/krjs.cpp:65 #, kde-format -msgid "Password" -msgstr "Парола" +msgid "" +"In %1:\n" +"Uncaught JavaScript exception '%2' at line %3\n" +"%4" +msgstr "" +"В %1:\n" +"Неприхванато JavaScript изключение '%2' в ред %3\n" +"%4" -#: Dialogs/packguibase.cpp:230 +#: KrJS/krjs.cpp:67 #, kde-format -msgid "Again" -msgstr "Отново" +msgid "JavaScript error" +msgstr "Грешка в JavaScript" -#: Dialogs/packguibase.cpp:248 +#: Filter/filtertabs.cpp:44 #, kde-format -msgid "Encrypt headers" -msgstr "Шифриращи заглавки" +msgid "&General" +msgstr "&Основни" -#: Dialogs/packguibase.cpp:260 +#: Filter/filtertabs.cpp:49 Dialogs/packguibase.cpp:290 +#: Dialogs/packguibase.cpp:330 #, kde-format -msgid "Command line switches:" -msgstr "Ключове в командния ред:" - -#: Dialogs/packguibase.cpp:286 Dialogs/packguibase.cpp:326 -#: Filter/filtertabs.cpp:49 -#, kde-format msgid "&Advanced" msgstr "&Допълнителни" -#: Dialogs/packguibase.cpp:293 +#: Filter/filterdialog.cpp:41 #, kde-format -msgid "Ok" -msgstr "Ок" +msgid "Krusader::Choose Files" +msgstr "Krusader::Избор на файлове" -#: Dialogs/packguibase.cpp:342 -#, kde-format -msgid "No password specified" -msgstr "Не е поставена парола" +#: Filter/generalfilter.cpp:56 +msgid "Any Character" +msgstr "" -#: Dialogs/packguibase.cpp:347 -#, kde-format -msgid "The passwords are equal" -msgstr "Паролите са еднакви" +#: Filter/generalfilter.cpp:57 +#, fuzzy +msgid "Start of Line" +msgstr "Профил при стартиране:" -#: Dialogs/packguibase.cpp:351 -#, kde-format -msgid "The passwords are different" -msgstr "Паролите са различни" +#: Filter/generalfilter.cpp:58 +msgid "End of Line" +msgstr "" -#: Dialogs/packguibase.cpp:388 -#, kde-format -msgid "Cannot pack! The passwords are different!" -msgstr "Архивирането е невъзможно! Паролите са различни!" - -#: Dialogs/packguibase.cpp:413 -#, kde-format -msgid "Invalid volume size!" -msgstr "Невалиден размер на том!" - -#: Dialogs/packguibase.cpp:443 -#, kde-format -msgid "" -"Invalid command line switch!\n" -"Switch must start with '-'!" +#: Filter/generalfilter.cpp:59 +msgid "Set of Characters" msgstr "" -"Невалиден ключ в командния ред!\n" -"Ключът трябва да започва с '-'" -#: Dialogs/packguibase.cpp:455 -#, kde-format -msgid "" -"Invalid command line switch!\n" -"Backslash cannot be the last character" +#: Filter/generalfilter.cpp:60 +msgid "Repeats, Zero or More Times" msgstr "" -"Невалиден ключ в командния ред!\n" -"Обратно-наклонената черта не може да бъде последен знак" -#: Dialogs/packguibase.cpp:463 -#, kde-format -msgid "" -"Invalid command line switch!\n" -"Unclosed quotation mark!" +#: Filter/generalfilter.cpp:61 +msgid "Repeats, One or More Times" msgstr "" -"Невалиден ключ в командния ред!\n" -"Незатворени кавички!" -#: BookMan/krbookmarkbutton.cpp:15 -#, kde-format -msgid "BookMan II" -msgstr "Управление на отметки II" +#: Filter/generalfilter.cpp:62 +#, fuzzy +msgid "Optional" +msgstr "&Настройки" -#: BookMan/krbookmarkbutton.cpp:19 BookMan/krbookmarkhandler.cpp:32 -#: BookMan/kraddbookmarkdlg.cpp:80 krusader.cpp:707 -#, kde-format -msgid "Bookmarks" -msgstr "Отметки" +#: Filter/generalfilter.cpp:63 +msgid "Escape" +msgstr "" -#: BookMan/krbookmarkhandler.cpp:171 -#, kde-format -msgid "Unable to write to %1" -msgstr "Невъзможен запис в %1" +#: Filter/generalfilter.cpp:64 +msgid "TAB" +msgstr "" -#: BookMan/krbookmarkhandler.cpp:171 BookMan/krbookmarkhandler.cpp:267 -#: Synchronizer/synchronizerdirlist.cpp:120 Konfigurator/kgcolors.cpp:517 -#: Konfigurator/kgcolors.cpp:534 Konfigurator/kggeneral.cpp:223 -#: VFS/krarchandler.cpp:207 VFS/krarchandler.cpp:266 VFS/krarchandler.cpp:284 -#: VFS/krarchandler.cpp:345 VFS/krarchandler.cpp:519 VFS/krarchandler.cpp:526 -#: VFS/virt_vfs.cpp:90 VFS/virt_vfs.cpp:180 VFS/normal_vfs.cpp:91 -#: VFS/normal_vfs.cpp:101 VFS/normal_vfs.cpp:108 MountMan/kmountman.cpp:205 -#, kde-format -msgid "Error" -msgstr "Грешка" +#: Filter/generalfilter.cpp:65 +#, fuzzy +msgid "Newline" +msgstr "Нова връзка" -#: BookMan/krbookmarkhandler.cpp:179 -#, kde-format -msgid " instead of " -msgstr " вместо " +#: Filter/generalfilter.cpp:66 +msgid "Carriage Return" +msgstr "" -#: BookMan/krbookmarkhandler.cpp:184 BookMan/krbookmarkhandler.cpp:190 -#: BookMan/krbookmarkhandler.cpp:221 -#, kde-format -msgid "missing tag " -msgstr "липсващ таг " +#: Filter/generalfilter.cpp:67 +#, fuzzy +msgid "White Space" +msgstr "Бяло" -#: BookMan/krbookmarkhandler.cpp:260 -#, kde-format -msgid "%1 doesn't seem to be a valid Bookmarks file" -msgstr "%1 изглежда не е валиден файл с отметки" +#: Filter/generalfilter.cpp:68 +#, fuzzy +msgid "Digit" +msgstr "Десна" -#: BookMan/krbookmarkhandler.cpp:267 +#: Filter/generalfilter.cpp:101 #, kde-format -msgid "Error reading bookmarks file: %1" -msgstr "Грешка при четене на файл с отметки: %1" +msgid "File name" +msgstr "Име на файл" -#: BookMan/krbookmarkhandler.cpp:330 BookMan/krbookmarkhandler.cpp:489 +#: Filter/generalfilter.cpp:108 #, kde-format -msgid "Popular URLs" -msgstr "Популярни URL-и" +msgid "&Case sensitive" +msgstr "&Главни/малки букви" -#: BookMan/krbookmarkhandler.cpp:399 krusader.cpp:708 +#: Filter/generalfilter.cpp:113 #, kde-format -msgid "Bookmark Current" -msgstr "Отметване на текущата селекция" +msgid "Search &for:" +msgstr "Търсене &за:" -#: BookMan/krbookmarkhandler.cpp:402 +#: Filter/generalfilter.cpp:126 Synchronizer/synchronizergui.cpp:1177 #, kde-format -msgid "Manage Bookmarks" -msgstr "Управление на отметките" - -#: BookMan/krbookmarkhandler.cpp:485 -#, kde-format -msgid "Enable special bookmarks" -msgstr "Включване на специалните отметки" - -#: BookMan/krbookmarkhandler.cpp:493 -#, kde-format -msgid "Devices" -msgstr "Устройства" - -#: BookMan/krbookmarkhandler.cpp:497 BookMan/krbookmark.cpp:13 -#, kde-format -msgid "Local Network" -msgstr "Локална мрежа" - -#: BookMan/krbookmarkhandler.cpp:501 BookMan/krbookmark.cpp:12 -#, kde-format -msgid "Virtual Filesystem" -msgstr "Виртуална файлова система" - -#: BookMan/krbookmarkhandler.cpp:505 -#, kde-format -msgid "Jump back" -msgstr "Стъпка назад" - -#: BookMan/krbookmarkhandler.cpp:557 GUI/mediabutton.cpp:540 -#: Panel/krpopupmenu.cpp:69 -#, kde-format -msgid "Open" -msgstr "Отваряне" - -#: BookMan/krbookmarkhandler.cpp:559 GUI/mediabutton.cpp:542 -#, kde-format -msgid "Open in a new tab" -msgstr "Отваряне в нов подпрозорец" - -#: BookMan/kraddbookmarkdlg.cpp:17 -#, kde-format -msgid "Add Bookmark" -msgstr "Добавяне на отметка" - -#: BookMan/kraddbookmarkdlg.cpp:20 BookMan/kraddbookmarkdlg.cpp:118 -#, kde-format -msgid "New Folder" -msgstr "Нова папка" - -#: BookMan/kraddbookmarkdlg.cpp:34 DiskUsage/diskusage.cpp:1075 -#, kde-format -msgid "Name:" -msgstr "Име:" - -#: BookMan/kraddbookmarkdlg.cpp:41 -#, kde-format -msgid "URL:" -msgstr "URL:" - -#: BookMan/kraddbookmarkdlg.cpp:48 -#, kde-format -msgid "Create in:" -msgstr "Създаване в:" - -#: BookMan/kraddbookmarkdlg.cpp:74 -#, fuzzy, kde-format -msgid "Folders" -msgstr "Папка..." - -#: BookMan/kraddbookmarkdlg.cpp:118 -#, kde-format -msgid "Folder name:" -msgstr "Име на папка:" - -#: BookMan/krbookmark.cpp:11 krusader.cpp:713 -#, kde-format -msgid "Media" -msgstr "Медия" - -#: Synchronizer/synchronizergui.cpp:1108 Synchronizer/synchronizergui.cpp:2332 -#: Synchronizer/synchronizergui.cpp~:1108 -#: Synchronizer/synchronizergui.cpp~:2332 -#, kde-format -msgid "Krusader::Synchronize Directories" -msgstr "Синхронизиране на директории с Krusader" - -#: Synchronizer/synchronizergui.cpp:1127 -#: Synchronizer/synchronizergui.cpp~:1127 -#, kde-format -msgid "Directory Comparison" -msgstr "Сравняване на директории" - -#: Synchronizer/synchronizergui.cpp:1138 -#: Synchronizer/synchronizergui.cpp~:1138 -#, kde-format -msgid "File &Filter:" -msgstr "Файлов &филтър:" - -#: Synchronizer/synchronizergui.cpp:1160 -#: Synchronizer/synchronizergui.cpp~:1160 -#, kde-format -msgid "The left base directory used during the synchronisation process." -msgstr "Използване на директорията отляво като базова при синхронизацията." - -#: Synchronizer/synchronizergui.cpp:1177 -#: Synchronizer/synchronizergui.cpp~:1177 Filter/generalfilter.cpp:80 -#, kde-format msgid "" "<p>The filename filtering criteria is defined here.</p><p>You can make use " "of wildcards. Multiple patterns are separated by space (means logical OR) " @@ -933,4739 +769,4452 @@ "cpp</li><li>* | CVS/ .svn/</li></code></ul><b>Забележка</b>: изразът за " "търсене '<code>текст</code>' е равностоен на '<code>*текст*</code>'.</p>" -#: Synchronizer/synchronizergui.cpp:1193 -#: Synchronizer/synchronizergui.cpp~:1193 +#: Filter/generalfilter.cpp:131 #, kde-format -msgid "The right base directory used during the synchronisation process." -msgstr "Използване на директорията отдясно като базова при синхронизацията." +msgid "&Of type:" +msgstr "&От тип:" -#: Synchronizer/synchronizergui.cpp:1207 -#: Synchronizer/synchronizergui.cpp~:1207 +#: Filter/generalfilter.cpp:141 Filter/generalfilter.cpp:431 #, kde-format -msgid "Recurse subdirectories" -msgstr "Рекурсивно в поддиректориите" +msgid "All Files" +msgstr "Всички файлове" -#: Synchronizer/synchronizergui.cpp:1210 -#: Synchronizer/synchronizergui.cpp~:1210 +#: Filter/generalfilter.cpp:164 #, kde-format -msgid "Compare not only the base directories but their subdirectories as well." -msgstr "Сравнява не само базовите директории, но също и техните поддиректории." +msgid "&Profile handler" +msgstr "Обработка на &профил" -#: Synchronizer/synchronizergui.cpp:1211 -#: Synchronizer/synchronizergui.cpp~:1211 +#. i18n: tag string +#. i18n: file ./ActionMan/actionproperty.ui line 306 +#: Filter/generalfilter.cpp:173 ActionMan/ui_actionproperty.h:701 rc.cpp:95 #, kde-format -msgid "Follow symlinks" -msgstr "Следва връзките" +msgid "&Add" +msgstr "&Добавяне" -#: Synchronizer/synchronizergui.cpp:1215 -#: Synchronizer/synchronizergui.cpp~:1215 +#: Filter/generalfilter.cpp:176 #, kde-format -msgid "Follow symbolic links during the compare process." -msgstr "Проследява символните връзки при сравняването." +msgid "&Load" +msgstr "&Зареждане" -#: Synchronizer/synchronizergui.cpp:1216 -#: Synchronizer/synchronizergui.cpp~:1216 +#: Filter/generalfilter.cpp:180 Panel/panelfunc.cpp:888 #, kde-format -msgid "Compare by content" -msgstr "Сравнение по съдържание" +msgid "&Overwrite" +msgstr "&Презапис" -#: Synchronizer/synchronizergui.cpp:1219 -#: Synchronizer/synchronizergui.cpp~:1219 +#: Filter/generalfilter.cpp:184 #, kde-format -msgid "Compare duplicated files with same size by content." -msgstr "Сравнява дублиращите се файлове с еднакъв размер по съдържанието им." +msgid "&Remove" +msgstr "&Премахване" -#: Synchronizer/synchronizergui.cpp:1220 -#: Synchronizer/synchronizergui.cpp~:1220 +#: Filter/generalfilter.cpp:201 #, kde-format -msgid "Ignore Date" -msgstr "Игнориране на датата" +msgid "&Search in" +msgstr "&Търси в" -#: Synchronizer/synchronizergui.cpp:1223 -#: Synchronizer/synchronizergui.cpp~:1223 +#: Filter/generalfilter.cpp:219 #, kde-format -msgid "" -"<p>Ignore date information during the compare process.</p><p><b>Note</b>: " -"useful if the files are located on network filesystems or in archives.</p>" -msgstr "" -"<p>Игнориране на датата по време на сравняващия процес.</p><p><b>Бележка</" -"b>: полезно е, ако файловете се намират в мрежови файлови системи или в " -"архиви.</p>" +msgid "&Don't search in" +msgstr "&Не търси в" -#: Synchronizer/synchronizergui.cpp:1224 -#: Synchronizer/synchronizergui.cpp~:1224 +#: Filter/generalfilter.cpp:236 #, kde-format -msgid "Asymmetric" -msgstr "Асиметрично" +msgid "Containing text" +msgstr "Съдържащ текста" -#: Synchronizer/synchronizergui.cpp:1227 -#: Synchronizer/synchronizergui.cpp~:1227 +#: Filter/generalfilter.cpp:250 #, kde-format -msgid "" -"<p><b>Asymmetric mode</b></p><p>The left side is the destination, the right " -"is the source directory. Files existing only in the left directory will be " -"deleted, the other differing ones will be copied from right to left.</" -"p><p><b>Note</b>: useful when updating a directory from a file server.</p>" -msgstr "" -"<p><b>Асиметричен режим</b></p><p>В лявата страна е директорията назначение, " -"а в дясната - директорията източник. Файловете, които съществуват само в " -"лявата директория ще бъдат изтрити, другите ще бъдат копирани от дясната в " -"лявата страна.</p><p><b>Бележка</b>: полезно при обновяване на директория от " -"файлов сървър.</p>" +msgid "&Text:" +msgstr "Т&екст:" -#: Synchronizer/synchronizergui.cpp:1228 -#: Synchronizer/synchronizergui.cpp~:1228 +#: Filter/generalfilter.cpp:265 #, kde-format -msgid "Ignore Case" -msgstr "Игнориране главни/малки" +msgid "RegExp" +msgstr "" -#: Synchronizer/synchronizergui.cpp:1231 -#: Synchronizer/synchronizergui.cpp~:1231 +#: Filter/generalfilter.cpp:286 +#, fuzzy, kde-format +msgid "Encoding:" +msgstr "Редактиране" + +#: Filter/generalfilter.cpp:301 #, kde-format -msgid "" -"<p>Case insensitive filename compare.</p><p><b>Note</b>: useful when " -"synchronizing Windows filesystems.</p>" -msgstr "" -"<p>Сравняване на файлови имена, без да се взимат под внимание главни/малки " -"букви.</p><p><b>Бележка</b>: използва се при синхронизиране на Windows " -"файлови системи.</p>" +msgid "&Match whole word only" +msgstr "&Съвпада с цялата дума" -#: Synchronizer/synchronizergui.cpp:1238 -#: Synchronizer/synchronizergui.cpp~:1238 +#: Filter/generalfilter.cpp:309 #, kde-format -msgid "S&how options" -msgstr "Възмо&жности на обозначаване" +msgid "Cas&e sensitive" +msgstr "Г&лавни/малки букви" -#: Synchronizer/synchronizergui.cpp:1257 -#: Synchronizer/synchronizergui.cpp~:1257 +#: Filter/generalfilter.cpp:327 #, kde-format -msgid "Show files marked to <i>Copy from left to right</i> (CTRL+L)." -msgstr "" -"Обозначава файловете, маркирани за <i>копиране от ляво на дясно</i> (CTRL+L)." +msgid "&Remote content search" +msgstr "Отдале&чено търсене за съдържание" -#: Synchronizer/synchronizergui.cpp:1267 -#: Synchronizer/synchronizergui.cpp~:1267 +#: Filter/generalfilter.cpp:337 #, kde-format -msgid "Show files considered to be identical (CTRL+E)." -msgstr "Обозначава файловете, преценени като идентични (CTRL+E)." +msgid "Search in s&ubdirectories" +msgstr "Търсене в под&директории" -#: Synchronizer/synchronizergui.cpp:1277 -#: Synchronizer/synchronizergui.cpp~:1277 +#: Filter/generalfilter.cpp:342 #, kde-format -msgid "Show excluded files (CTRL+D)." -msgstr "Обозначава отхвърлените файлове (CTRL+D)." +msgid "Search in arch&ives" +msgstr "Търсене в &архиви" -#: Synchronizer/synchronizergui.cpp:1287 -#: Synchronizer/synchronizergui.cpp~:1287 +#: Filter/generalfilter.cpp:346 #, kde-format -msgid "Show files marked to <i>Copy from right to left</i> (CTRL+R)." -msgstr "" -"Обозначава файловете, маркирани за <i>копиране от дясно на ляво</i> (CTRL+R)." +msgid "Follow &links" +msgstr "След&ва връзките" -#: Synchronizer/synchronizergui.cpp:1297 -#: Synchronizer/synchronizergui.cpp~:1297 +#: Filter/generalfilter.cpp:410 #, kde-format -msgid "Show files marked to delete. (CTRL+T)" -msgstr "Обозначава файловете, маркирани за изтриване. (CTRL+T)" +msgid "No search criteria entered!" +msgstr "Не е въведен критерий за търсене!" -#: Synchronizer/synchronizergui.cpp:1302 -#: Synchronizer/synchronizergui.cpp~:1302 +#: Filter/generalfilter.cpp:451 #, kde-format -msgid "Duplicates" -msgstr "Дупликати" +msgid "Please specify a location to search in." +msgstr "Посочете място за търсене." -#: Synchronizer/synchronizergui.cpp:1307 -#: Synchronizer/synchronizergui.cpp~:1307 +#: Filter/advancedfilter.cpp:65 Panel/krdetailedview.cpp:116 +#: Panel/krdetailedview.cpp:1135 Search/krsearchdialog.cpp:73 +#: Synchronizer/synchronizergui.cpp:1337 Synchronizer/synchronizergui.cpp:1341 #, kde-format -msgid "Show files that exist on both sides." -msgstr "Обозначава файловете, които съществуват и от двете страни." +msgid "Size" +msgstr "Размер" -#: Synchronizer/synchronizergui.cpp:1311 -#: Synchronizer/synchronizergui.cpp~:1311 +#: Filter/advancedfilter.cpp:72 #, kde-format -msgid "Singles" -msgstr "Единични" +msgid "&Bigger than" +msgstr "По-&голям от" -#: Synchronizer/synchronizergui.cpp:1316 -#: Synchronizer/synchronizergui.cpp~:1316 +#: Filter/advancedfilter.cpp:83 Filter/advancedfilter.cpp:101 #, kde-format -msgid "Show files that exist on one side only." -msgstr "Обозначава файловете, които съществуват само от едната страна." +msgid "Bytes" +msgstr "Байта" -#: Synchronizer/synchronizergui.cpp:1325 -#: Synchronizer/synchronizergui.cpp~:1325 +#: Filter/advancedfilter.cpp:84 Filter/advancedfilter.cpp:102 #, kde-format -msgid "The compare results of the synchronizer (CTRL+M)." -msgstr "Резултатите от сравняването със синхронизатора (CTRL+M)." +msgid "KB" +msgstr "KB" -#: Synchronizer/synchronizergui.cpp:1334 Synchronizer/synchronizergui.cpp:1340 -#: Synchronizer/synchronizergui.cpp~:1334 -#: Synchronizer/synchronizergui.cpp~:1340 Konfigurator/krresulttable.cpp:133 -#: DiskUsage/dulistview.cpp:55 DiskUsage/dulines.cpp:197 -#: MountMan/kmountmangui.cpp:125 Panel/krdetailedview.cpp:108 -#: Panel/krbriefview.cpp:156 Search/krsearchdialog.cpp:71 -#: Search/krsearchdialog.cpp~:71 +#: Filter/advancedfilter.cpp:85 Filter/advancedfilter.cpp:103 #, kde-format -msgid "Name" -msgstr "Име" +msgid "MB" +msgstr "MB" -#: Synchronizer/synchronizergui.cpp:1335 Synchronizer/synchronizergui.cpp:1339 -#: Synchronizer/synchronizergui.cpp~:1335 -#: Synchronizer/synchronizergui.cpp~:1339 Filter/advancedfilter.cpp:63 -#: Panel/krdetailedview.cpp:111 Panel/krdetailedview.cpp:1484 -#: Search/krsearchdialog.cpp:73 Search/krsearchdialog.cpp~:73 +#: Filter/advancedfilter.cpp:90 #, kde-format -msgid "Size" -msgstr "Размер" +msgid "&Smaller than" +msgstr "По-&малък от" -#: Synchronizer/synchronizergui.cpp:1336 Synchronizer/synchronizergui.cpp:1338 -#: Synchronizer/synchronizergui.cpp~:1336 -#: Synchronizer/synchronizergui.cpp~:1338 DiskUsage/dulistview.cpp:60 -#: Filter/advancedfilter.cpp:115 Search/krsearchdialog.cpp:74 -#: Search/krsearchdialog.cpp~:74 +#: Filter/advancedfilter.cpp:121 Search/krsearchdialog.cpp:74 +#: Synchronizer/synchronizergui.cpp:1338 Synchronizer/synchronizergui.cpp:1340 +#: DiskUsage/dulistview.cpp:60 #, kde-format msgid "Date" msgstr "Дата" -#: Synchronizer/synchronizergui.cpp:1337 -#: Synchronizer/synchronizergui.cpp~:1337 +#: Filter/advancedfilter.cpp:129 #, kde-format -msgid "<=>" -msgstr "<=>" +msgid "&Modified between" +msgstr "Променян ме&жду" -#: Synchronizer/synchronizergui.cpp:1384 -#: Synchronizer/synchronizergui.cpp~:1384 +#: Filter/advancedfilter.cpp:146 #, kde-format -msgid "&Synchronizer" -msgstr "&Синхронизатор" +msgid "an&d" +msgstr "&и" -#: Synchronizer/synchronizergui.cpp:1395 -#: Synchronizer/synchronizergui.cpp~:1395 +#: Filter/advancedfilter.cpp:162 #, kde-format -msgid "&Options" -msgstr "&Настройки" +msgid "&Not modified after" +msgstr "Не е променян сле&д" -#: Synchronizer/synchronizergui.cpp:1402 -#: Synchronizer/synchronizergui.cpp~:1402 +#: Filter/advancedfilter.cpp:178 #, kde-format -msgid "Parallel threads:" -msgstr "Успоредни нишки" +msgid "Mod&ified in the last" +msgstr "Промен&ян през последните" -#: Synchronizer/synchronizergui.cpp:1412 -#: Synchronizer/synchronizergui.cpp~:1412 +#: Filter/advancedfilter.cpp:188 Filter/advancedfilter.cpp:206 #, kde-format -msgid "Equality threshold:" -msgstr "Праг на еднаквост:" +msgid "days" +msgstr "дни" -#: Synchronizer/synchronizergui.cpp:1420 Synchronizer/synchronizergui.cpp:1435 -#: Synchronizer/synchronizergui.cpp~:1420 -#: Synchronizer/synchronizergui.cpp~:1435 +#: Filter/advancedfilter.cpp:189 Filter/advancedfilter.cpp:207 #, kde-format -msgid "sec" -msgstr "сек" +msgid "weeks" +msgstr "седмици" -#: Synchronizer/synchronizergui.cpp:1421 Synchronizer/synchronizergui.cpp:1436 -#: Synchronizer/synchronizergui.cpp~:1421 -#: Synchronizer/synchronizergui.cpp~:1436 +#: Filter/advancedfilter.cpp:190 Filter/advancedfilter.cpp:208 #, kde-format -msgid "min" -msgstr "мин" +msgid "months" +msgstr "месеци" -#: Synchronizer/synchronizergui.cpp:1422 Synchronizer/synchronizergui.cpp:1437 -#: Synchronizer/synchronizergui.cpp~:1422 -#: Synchronizer/synchronizergui.cpp~:1437 +#: Filter/advancedfilter.cpp:191 Filter/advancedfilter.cpp:209 #, kde-format -msgid "hour" -msgstr "час" +msgid "years" +msgstr "години" -#: Synchronizer/synchronizergui.cpp:1423 Synchronizer/synchronizergui.cpp:1438 -#: Synchronizer/synchronizergui.cpp~:1423 -#: Synchronizer/synchronizergui.cpp~:1438 +#: Filter/advancedfilter.cpp:201 #, kde-format -msgid "day" -msgstr "ден" +msgid "No&t modified in the last" +msgstr "&Не е променян през последните" -#: Synchronizer/synchronizergui.cpp:1426 -#: Synchronizer/synchronizergui.cpp~:1426 +#: Filter/advancedfilter.cpp:218 #, kde-format -msgid "Time shift (right-left):" -msgstr "Смяна на време (ляво-дясно):" +msgid "Ownership" +msgstr "Принадлежност" -#: Synchronizer/synchronizergui.cpp:1445 -#: Synchronizer/synchronizergui.cpp~:1445 +#: Filter/advancedfilter.cpp:229 #, kde-format -msgid "Ignore hidden files" -msgstr "Игнориране на скритите файлове" +msgid "Belongs to &user" +msgstr "Принадлежи на &потребител" -#: Synchronizer/synchronizergui.cpp:1459 -#: Synchronizer/synchronizergui.cpp~:1459 +#: Filter/advancedfilter.cpp:238 #, kde-format -msgid "Profile manager (Ctrl+P)." -msgstr "Управление на профилите (Ctrl+P)." +msgid "Belongs to gr&oup" +msgstr "Принадлежи на &група" -#: Synchronizer/synchronizergui.cpp:1466 -#: Synchronizer/synchronizergui.cpp~:1466 +#: Filter/advancedfilter.cpp:249 #, kde-format -msgid "Swap sides (Ctrl+S)." -msgstr "Разменяне на страните (Ctrl+S)." +msgid "P&ermissions" +msgstr "П&рава" -#: Synchronizer/synchronizergui.cpp:1477 -#: Synchronizer/synchronizergui.cpp~:1477 +#: Filter/advancedfilter.cpp:254 #, kde-format -msgid "Compare" -msgstr "Сравняване" +msgid "O&wner" +msgstr "Со&бственик" -#: Synchronizer/synchronizergui.cpp:1486 Synchronizer/synchronizergui.cpp:2443 -#: Synchronizer/synchronizergui.cpp~:1486 -#: Synchronizer/synchronizergui.cpp~:2443 +#: Filter/advancedfilter.cpp:258 Filter/advancedfilter.cpp:266 +#: Filter/advancedfilter.cpp:274 Filter/advancedfilter.cpp:288 +#: Filter/advancedfilter.cpp:296 Filter/advancedfilter.cpp:304 +#: Filter/advancedfilter.cpp:318 Filter/advancedfilter.cpp:326 +#: Filter/advancedfilter.cpp:334 #, kde-format -msgid "Quiet" -msgstr "Тих" +msgid "?" +msgstr "?" -#: Synchronizer/synchronizergui.cpp:1488 Synchronizer/synchronizergui.cpp:2445 -#: Synchronizer/synchronizergui.cpp~:1488 -#: Synchronizer/synchronizergui.cpp~:2445 +#: Filter/advancedfilter.cpp:259 Filter/advancedfilter.cpp:289 +#: Filter/advancedfilter.cpp:319 #, kde-format -msgid "Scroll Results" -msgstr "Преглед на резултатите" +msgid "r" +msgstr "r" -#: Synchronizer/synchronizergui.cpp:1492 -#: Synchronizer/synchronizergui.cpp~:1492 Locate/locate.cpp:121 -#: Locate/locate.cpp:284 Locate/locate.cpp~:121 Locate/locate.cpp~:284 -#: Search/krsearchdialog.cpp:232 Search/krsearchdialog.cpp~:233 +#: Filter/advancedfilter.cpp:260 Filter/advancedfilter.cpp:268 +#: Filter/advancedfilter.cpp:276 Filter/advancedfilter.cpp:290 +#: Filter/advancedfilter.cpp:298 Filter/advancedfilter.cpp:306 +#: Filter/advancedfilter.cpp:320 Filter/advancedfilter.cpp:328 +#: Filter/advancedfilter.cpp:336 #, kde-format -msgid "Stop" -msgstr "Стоп" +msgid "-" +msgstr "-" -#: Synchronizer/synchronizergui.cpp:1497 -#: Synchronizer/synchronizergui.cpp~:1497 Locate/locate.cpp:332 -#: Locate/locate.cpp~:332 Search/krsearchdialog.cpp:221 -#: Search/krsearchdialog.cpp~:222 +#: Filter/advancedfilter.cpp:267 Filter/advancedfilter.cpp:297 +#: Filter/advancedfilter.cpp:327 #, kde-format -msgid "Feed to listbox" -msgstr "Извеждане в списък" +msgid "w" +msgstr "w" -#: Synchronizer/synchronizergui.cpp:1503 -#: Synchronizer/synchronizergui.cpp~:1503 +#: Filter/advancedfilter.cpp:275 Filter/advancedfilter.cpp:305 +#: Filter/advancedfilter.cpp:335 #, kde-format -msgid "Synchronize" -msgstr "Синхронизация" +msgid "x" +msgstr "x" -#: Synchronizer/synchronizergui.cpp:1508 -#: Synchronizer/synchronizergui.cpp~:1508 Konfigurator/konfigurator.cpp:73 -#: UserAction/kraction.cpp:59 Search/krsearchdialog.cpp:236 -#: Search/krsearchdialog.cpp~:237 +#: Filter/advancedfilter.cpp:285 #, kde-format -msgid "Close" -msgstr "Затваряне" +msgid "Grou&p" +msgstr "Гр&упа" -#: Synchronizer/synchronizergui.cpp:1623 -#: Synchronizer/synchronizergui.cpp~:1623 +#: Filter/advancedfilter.cpp:315 #, kde-format -msgid "Selected files from targ&et directory:" -msgstr "Избрани файлове от директория &цел:" +msgid "A&ll" +msgstr "Вси&чки" -#: Synchronizer/synchronizergui.cpp:1624 -#: Synchronizer/synchronizergui.cpp~:1624 +#: Filter/advancedfilter.cpp:348 #, kde-format -msgid "Selected files from sou&rce directory:" -msgstr "Избрани файлове от директория и&зточник:" +msgid "Note: a '?' is a wildcard" +msgstr "Бележка: '?' е глобален символ" -#: Synchronizer/synchronizergui.cpp:1628 -#: Synchronizer/synchronizergui.cpp~:1628 +#: Filter/advancedfilter.cpp:492 #, kde-format -msgid "Selected files from &left directory:" -msgstr "Избрани файлове от &лявата директория:" +msgid "Invalid date entered." +msgstr "Въведена е неправилна дата." -#: Synchronizer/synchronizergui.cpp:1629 -#: Synchronizer/synchronizergui.cpp~:1629 +#: Filter/advancedfilter.cpp:493 #, kde-format -msgid "Selected files from &right directory:" -msgstr "Избрани файлове от &дясната директория:" +msgid "" +"The date %1 is not valid according to your locale. Please re-enter a valid " +"date (use the date button for easy access)." +msgstr "" +"Датата %1 е грешна спрямо локалната дата. Моля, въведете вярна дата " +"(използването на бутона 'дата' улеснява работата)." -#: Synchronizer/synchronizergui.cpp:1633 -#: Synchronizer/synchronizergui.cpp~:1633 +#: Filter/advancedfilter.cpp:531 #, kde-format -msgid "Targ&et directory:" -msgstr "Директория &цел:" +msgid "Specified sizes are inconsistent!" +msgstr "Посочените размери са нелогични!" -#: Synchronizer/synchronizergui.cpp:1634 -#: Synchronizer/synchronizergui.cpp~:1634 +#: Filter/advancedfilter.cpp:532 #, kde-format -msgid "Sou&rce directory:" -msgstr "Директория и&зточник:" +msgid "" +"Please re-enter the values, so that the left side size will be smaller than " +"(or equal to) the right side size." +msgstr "" +"Въведете отново стойностите, така че лявостоящият размер да е по-малък от " +"(или еднакъв с) десния." -#: Synchronizer/synchronizergui.cpp:1638 -#: Synchronizer/synchronizergui.cpp~:1638 +#: Filter/advancedfilter.cpp:552 Filter/advancedfilter.cpp:622 #, kde-format -msgid "&Left directory:" -msgstr "&Лява директория:" +msgid "Dates are inconsistent!" +msgstr "Датите са нелогични!" -#: Synchronizer/synchronizergui.cpp:1639 -#: Synchronizer/synchronizergui.cpp~:1639 +#: Filter/advancedfilter.cpp:553 #, kde-format -msgid "&Right directory:" -msgstr "&Дясна директория:" +msgid "" +"The date on the left is later than the date on the right. Please re-enter " +"the dates, so that the left side date will be earlier than the right side " +"date." +msgstr "" +"Датата от лявата страна е по-късна от тази в дясната страна. Моля, въведете " +"отново датите, така че лявостоящата да е по-ранна от дясната." -#: Synchronizer/synchronizergui.cpp:1674 -#: Synchronizer/synchronizergui.cpp~:1674 +#: Filter/advancedfilter.cpp:623 #, kde-format -msgid "URL must be the descendant of either the left or the right base URL!" -msgstr "URL-а трябва да произлиза от левият или десният базов URL!" +msgid "" +"The date on top is later than the date on the bottom. Please re-enter the " +"dates, so that the top date will be earlier than the bottom date." +msgstr "" +"Датата най-отгоре е е по-късна от тази най-отдолу. Моля, въведете отново " +"датите, така че най-горната дата да е по-ранна от най-долната." -#: Synchronizer/synchronizergui.cpp:1739 -#: Synchronizer/synchronizergui.cpp~:1739 +#: UserAction/expander.cpp:58 #, kde-format -msgid "Synchronize Directories" -msgstr "Синхронизация на директории" +msgid "Needed panel specification missing in expander %1" +msgstr "Необходимите уточнения за панела липсват в експандер %1" -#: Synchronizer/synchronizergui.cpp:1741 -#: Synchronizer/synchronizergui.cpp~:1741 +#: UserAction/expander.cpp:73 #, kde-format -msgid "E&xclude" -msgstr "Изкл&ючване" +msgid "Expander: Bad argument to %1: %2 is not valid item specifier" +msgstr "" +"Експандер: Неправилен аргумент за %1: %2 е невалиден елементен определител" -#: Synchronizer/synchronizergui.cpp:1743 -#: Synchronizer/synchronizergui.cpp~:1743 +#: UserAction/expander.cpp:360 #, kde-format -msgid "Restore ori&ginal operation" -msgstr "Възстановяване първона&чалното действие" +msgid "Panel's Path..." +msgstr "Път в панела..." -#: Synchronizer/synchronizergui.cpp:1745 -#: Synchronizer/synchronizergui.cpp~:1745 +#: UserAction/expander.cpp:363 UserAction/expande... [truncated message content] |
From: <ck...@us...> - 2008-09-16 20:13:16
|
Revision: 6082 http://krusader.svn.sourceforge.net/krusader/?rev=6082&view=rev Author: ckarai Date: 2008-09-16 20:13:25 +0000 (Tue, 16 Sep 2008) Log Message: ----------- ADDED: enqueue operation for copy / move (alpha without gui) Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/Dialogs/krdialogs.cpp trunk/krusader_kde4/krusader/Dialogs/krdialogs.h trunk/krusader_kde4/krusader/Panel/panelfunc.cpp trunk/krusader_kde4/krusader/Queue/queue.cpp trunk/krusader_kde4/krusader/Queue/queue.h trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp trunk/krusader_kde4/krusader/Queue/queue_mgr.h trunk/krusader_kde4/krusader/VFS/kiojobwrapper.cpp trunk/krusader_kde4/krusader/VFS/kiojobwrapper.h trunk/krusader_kde4/krusader/VFS/virtualcopyjob.cpp trunk/krusader_kde4/krusader/VFS/virtualcopyjob.h Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/ChangeLog 2008-09-16 20:13:25 UTC (rev 6082) @@ -1,3 +1,4 @@ + ADDED: enqueue operation for copy / move (alpha without gui) ADDED: Konfigurator mouse selection mode: Possibility to select a predefined mode and change a detail. ADDED: [ 1704953 ] highlight quick search match Modified: trunk/krusader_kde4/krusader/Dialogs/krdialogs.cpp =================================================================== --- trunk/krusader_kde4/krusader/Dialogs/krdialogs.cpp 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/Dialogs/krdialogs.cpp 2008-09-16 20:13:25 UTC (rev 6082) @@ -79,7 +79,7 @@ return u; } -KUrl KChooseDir::getDir(QString text,const KUrl& url, const KUrl& cwd, bool &preserveAttrs ) { +KUrl KChooseDir::getDir(QString text,const KUrl& url, const KUrl& cwd, bool &queue, bool &preserveAttrs ) { KUrlRequesterDlgForCopy *dlg = new KUrlRequesterDlgForCopy( vfs::pathOrUrl( url, KUrl::AddTrailingSlash ),text, preserveAttrs, krApp ); dlg->urlRequester()->completionObject()->setDir(cwd.url()); KUrl u; @@ -98,11 +98,12 @@ } } preserveAttrs = dlg->preserveAttrs(); + queue = dlg->enqueue(); delete dlg; return u; } -KUrl KChooseDir::getDir(QString text,const KUrl& url, const KUrl& cwd, bool &preserveAttrs, KUrl &baseURL ) { +KUrl KChooseDir::getDir(QString text,const KUrl& url, const KUrl& cwd, bool &queue, bool &preserveAttrs, KUrl &baseURL ) { KUrlRequesterDlgForCopy *dlg = new KUrlRequesterDlgForCopy( vfs::pathOrUrl( url, KUrl::AddTrailingSlash ),text, preserveAttrs, krApp, true, baseURL ); dlg->urlRequester()->completionObject()->setDir(cwd.url()); KUrl u; @@ -127,17 +128,19 @@ } } preserveAttrs = dlg->preserveAttrs(); + queue = dlg->enqueue(); delete dlg; return u; } KUrlRequesterDlgForCopy::KUrlRequesterDlgForCopy( const QString& urlName, const QString& _text, bool presAttrs, QWidget *parent, bool modal, KUrl baseURL ) - : KDialog( parent ), baseUrlCombo( 0 ), copyDirStructureCB( 0 ) { + : KDialog( parent ), baseUrlCombo( 0 ), copyDirStructureCB( 0 ), queue( false ) { - setButtons( KDialog::Ok | KDialog::User1 | KDialog::Cancel ); + setButtons( KDialog::Ok | KDialog::User1 | KDialog::User2 | KDialog::Cancel ); setDefaultButton( KDialog::Ok ); - setButtonGuiItem( KDialog::User1, KStandardGuiItem::clear() ); + setButtonGuiItem( KDialog::User1, KGuiItem( i18n("F2 Queue") ) ); + setButtonGuiItem( KDialog::User2, KStandardGuiItem::clear() ); setWindowModality( modal ? Qt::WindowModal : Qt::NonModal ); showButtonSeparator( true ); @@ -192,13 +195,26 @@ SLOT(slotTextChanged(const QString&)) ); bool state = !urlName.isEmpty(); enableButtonOk( state ); - enableButton( KDialog::User1, state ); - connect( this, SIGNAL( user1Clicked() ), SLOT( slotClear() ) ); + enableButton( KDialog::User2, state ); + connect( this, SIGNAL( user2Clicked() ), SLOT( slotClear() ) ); + connect( this, SIGNAL( user1Clicked() ), SLOT( slotQueue() ) ); } KUrlRequesterDlgForCopy::KUrlRequesterDlgForCopy() { } +void KUrlRequesterDlgForCopy::keyPressEvent( QKeyEvent *e ) +{ + switch ( e->key() ) + { + case Qt::Key_F2: + slotQueue(); + return; + default: + QDialog::keyPressEvent( e ); + } +} + bool KUrlRequesterDlgForCopy::preserveAttrs() { return preserveAttrsCB->isChecked(); } @@ -212,9 +228,14 @@ void KUrlRequesterDlgForCopy::slotTextChanged(const QString & text) { bool state = !text.trimmed().isEmpty(); enableButtonOk( state ); - enableButton( KDialog::User1, state ); + enableButton( KDialog::User2, state ); } +void KUrlRequesterDlgForCopy::slotQueue() { + queue = true; + accept(); +} + void KUrlRequesterDlgForCopy::slotClear() { urlRequester_->clear(); } Modified: trunk/krusader_kde4/krusader/Dialogs/krdialogs.h =================================================================== --- trunk/krusader_kde4/krusader/Dialogs/krdialogs.h 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/Dialogs/krdialogs.h 2008-09-16 20:13:25 UTC (rev 6082) @@ -68,8 +68,8 @@ * this is used for completion of partial urls */ static KUrl getDir(QString text,const KUrl& url, const KUrl& cwd); - static KUrl getDir(QString text,const KUrl& url, const KUrl& cwd, bool & preserveAttrs ); - static KUrl getDir(QString text,const KUrl& url, const KUrl& cwd, bool & preserveAttrs, KUrl &baseURL ); + static KUrl getDir(QString text,const KUrl& url, const KUrl& cwd, bool & queue, bool & preserveAttrs ); + static KUrl getDir(QString text,const KUrl& url, const KUrl& cwd, bool & queue, bool & preserveAttrs, KUrl &baseURL ); }; class KUrlRequesterDlgForCopy : public KDialog { @@ -82,11 +82,17 @@ KUrl selectedURL() const; KUrl baseURL() const; bool preserveAttrs(); + bool enqueue() { return queue; } bool copyDirStructure(); KUrlRequester *urlRequester(); + +protected: + virtual void keyPressEvent( QKeyEvent *e ); + private slots: void slotClear(); + void slotQueue(); void slotTextChanged(const QString &); void slotDirStructCBChanged(); private: @@ -94,6 +100,7 @@ QComboBox *baseUrlCombo; QCheckBox *preserveAttrsCB; QCheckBox *copyDirStructureCB; + bool queue; }; class KRGetDate : public KDialog { Modified: trunk/krusader_kde4/krusader/Panel/panelfunc.cpp =================================================================== --- trunk/krusader_kde4/krusader/Panel/panelfunc.cpp 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/Panel/panelfunc.cpp 2008-09-16 20:13:25 UTC (rev 6082) @@ -391,6 +391,7 @@ void ListPanelFunc::moveFiles() { PreserveMode pmode = PM_DEFAULT; + bool queue = false; QStringList fileNames; panel->getSelectedNames( &fileNames ); @@ -418,7 +419,7 @@ // ask the user for the copy dest virtualBaseURL = getVirtualBaseURL(); - dest = KChooseDir::getDir(s, dest, panel->virtualPath(), preserveAttrs, virtualBaseURL); + dest = KChooseDir::getDir(s, dest, panel->virtualPath(), queue, preserveAttrs, virtualBaseURL); if ( dest.isEmpty() ) return ; // the user canceled if( preserveAttrs ) pmode = PM_PRESERVE_ATTR; @@ -435,7 +436,29 @@ // file above the current item; panel->prepareToDelete(); - if( !virtualBaseURL.isEmpty() ) { + if( queue ) { + KIOJobWrapper *job = 0; + if( !virtualBaseURL.isEmpty() ) { + job = KIOJobWrapper::virtualMove( &fileNames, files(), dest, virtualBaseURL, pmode, true ); + job->connectTo( SIGNAL( result( KJob* ) ), this, SLOT( refresh() ) ); + if ( dest.equals( panel->otherPanel->virtualPath(), KUrl::CompareWithoutTrailingSlash ) ) + job->connectTo( SIGNAL( result( KJob* ) ), panel->otherPanel->func, SLOT( refresh() ) ); + } else { + // you can rename only *one* file not a batch, + // so a batch dest must alwayes be a directory + if ( fileNames.count() > 1 ) dest.adjustPath(KUrl::AddTrailingSlash); + job = KIOJobWrapper::move( pmode, *fileUrls, dest, true ); + job->setAutoErrorHandlingEnabled( true ); + // refresh our panel when done + job->connectTo( SIGNAL( result( KJob* ) ), this, SLOT( refresh() ) ); + if ( dest.equals( panel->virtualPath(), KUrl::CompareWithoutTrailingSlash ) || + dest.upUrl().equals( panel->virtualPath(), KUrl::CompareWithoutTrailingSlash ) ) + // refresh our panel when done + job->connectTo( SIGNAL( result( KJob* ) ), this, SLOT( refresh() ) ); + } + QueueManager::currentQueue()->enqueue( job ); + } + else if( !virtualBaseURL.isEmpty() ) { // keep the directory structure for virtual paths VirtualCopyJob *vjob = new VirtualCopyJob( &fileNames, files(), dest, virtualBaseURL, pmode, KIO::CopyJob::Move, true ); connect( vjob, SIGNAL( result( KJob* ) ), this, SLOT( refresh() ) ); @@ -557,6 +580,7 @@ void ListPanelFunc::copyFiles() { PreserveMode pmode = PM_DEFAULT; + bool queue = false; QStringList fileNames; panel->getSelectedNames( &fileNames ); @@ -579,7 +603,7 @@ // ask the user for the copy dest virtualBaseURL = getVirtualBaseURL(); - dest = KChooseDir::getDir(s, dest, panel->virtualPath(), preserveAttrs, virtualBaseURL ); + dest = KChooseDir::getDir(s, dest, panel->virtualPath(), queue, preserveAttrs, virtualBaseURL ); if ( dest.isEmpty() ) return ; // the user canceled if( preserveAttrs ) pmode = PM_PRESERVE_ATTR; @@ -589,7 +613,27 @@ KUrl::List* fileUrls = files() ->vfs_getFiles( &fileNames ); - if( !virtualBaseURL.isEmpty() ) { + if( queue ) { + KIOJobWrapper *job = 0; + if( !virtualBaseURL.isEmpty() ) { + job = KIOJobWrapper::virtualCopy( &fileNames, files(), dest, virtualBaseURL, pmode, true ); + job->connectTo( SIGNAL( result( KJob* ) ), this, SLOT( refresh() ) ); + if ( dest.equals( panel->otherPanel->virtualPath(), KUrl::CompareWithoutTrailingSlash ) ) + job->connectTo( SIGNAL( result( KJob* ) ), panel->otherPanel->func, SLOT( refresh() ) ); + } else { + // you can rename only *one* file not a batch, + // so a batch dest must alwayes be a directory + if ( fileNames.count() > 1 ) dest.adjustPath(KUrl::AddTrailingSlash); + job = KIOJobWrapper::copy( pmode, *fileUrls, dest, true ); + job->setAutoErrorHandlingEnabled( true ); + if ( dest.equals( panel->virtualPath(), KUrl::CompareWithoutTrailingSlash ) || + dest.upUrl().equals( panel->virtualPath(), KUrl::CompareWithoutTrailingSlash ) ) + // refresh our panel when done + job->connectTo( SIGNAL( result( KJob* ) ), this, SLOT( refresh() ) ); + } + QueueManager::currentQueue()->enqueue( job ); + } + else if( !virtualBaseURL.isEmpty() ) { // keep the directory structure for virtual paths VirtualCopyJob *vjob = new VirtualCopyJob( &fileNames, files(), dest, virtualBaseURL, pmode, KIO::CopyJob::Copy, true ); connect( vjob, SIGNAL( result( KJob* ) ), this, SLOT( refresh() ) ); Modified: trunk/krusader_kde4/krusader/Queue/queue.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue.cpp 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/Queue/queue.cpp 2008-09-16 20:13:25 UTC (rev 6082) @@ -1,5 +1,8 @@ #include "queue.h" +#include "../krusader.h" #include <kdebug.h> +#include <klocale.h> +#include <kmessagebox.h> Queue::Queue(const QString& name): _name(name) { @@ -10,10 +13,17 @@ // TODO: save queue on delete? or just delete jobs } -void Queue::enqueue(KIO::Job *job) +void Queue::enqueue(KIOJobWrapper *job) { + bool isRunning = _jobs.count(); _jobs.append(job); + connect( job, SIGNAL( destroyed( QObject * ) ), this, SLOT( slotJobDestroyed( QObject * ) ) ); + job->connectTo( SIGNAL( result( KJob* ) ), this, SLOT( slotResult( KJob* ) ) ); + if( !isRunning ) + job->start(); + + emit showQueueDialog(); dumpQueue(); } @@ -21,3 +31,49 @@ { kDebug() << "Queue: " << name().toLatin1(); } + +void Queue::slotJobDestroyed( QObject * obj ) +{ + KIOJobWrapper * jw = (KIOJobWrapper*) obj; + bool current = false; + if( _jobs.count() > 0 && _jobs[ 0 ] == jw ) + current = true; + _jobs.removeAll( jw ); + if( current && _jobs.count() > 0 ) + _jobs[ 0 ]->start(); +} + +void Queue::slotResult( KJob * job ) +{ + if( _jobs.count() > 0 ) { + KIOJobWrapper * jw = _jobs[ 0 ]; + KIO::Job * kjob = jw->job(); + if( kjob && kjob == job ) { + _jobs.removeAll( jw ); + if( job->error() && _jobs.count() > 0 ) { + // what to do with the other elements in the queue + QString message = i18n( "An error occurred during processing the queue.\n" ); + if( job->error() == KIO::ERR_USER_CANCELED ) + message = i18n( "The last processed element in the queue was aborted.\n" ); + message += i18n( "Do you wish to continue with the next element, delete the queue or suspend the queue?" ); + int res = KMessageBox::questionYesNoCancel(krApp, message, + i18n( "Krusader::Queue" ), KStandardGuiItem::cont(), + KStandardGuiItem::del(), KGuiItem( i18n( "Suspend" ) ) ); + switch( res ) + { + case KMessageBox::Yes: // continue + break; + case KMessageBox::No: // delete the queue + _jobs.clear(); + return; + default: // suspend + /* TODO */ + return; + } + } + + if( _jobs.count() > 0 ) + _jobs[ 0 ]->start(); + } + } +} Modified: trunk/krusader_kde4/krusader/Queue/queue.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue.h 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/Queue/queue.h 2008-09-16 20:13:25 UTC (rev 6082) @@ -2,9 +2,11 @@ #define QUEUE_H #include <qobject.h> -#include <kio/jobclasses.h> +#include "../VFS/kiojobwrapper.h" #include <QList> +class KJob; + /** * Queue can hold anything which inherits KIO::Job, and schedule it, start it, stop etc... * the main reason to hold the Job itself (at least for phase 1) is to keep the code @@ -20,13 +22,20 @@ virtual ~Queue(); inline const QString& name() const { return _name; } - void enqueue(KIO::Job *job); + void enqueue(KIOJobWrapper *job); +protected slots: + void slotJobDestroyed( QObject * ); + void slotResult( KJob * ); + protected: void dumpQueue(); QString _name; - QList<KIO::Job *> _jobs; + QList<KIOJobWrapper *> _jobs; + +signals: + void showQueueDialog(); }; #endif // QUEUE_H Modified: trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/Queue/queue_mgr.cpp 2008-09-16 20:13:25 UTC (rev 6082) @@ -3,11 +3,13 @@ const QString QueueManager::defaultName="default"; QMap<QString, Queue*> QueueManager::_queues; +QString QueueManager::_current="default"; QueueManager::QueueManager() { Queue *defaultQ = new Queue(defaultName); _queues.insert(defaultQ->name(), defaultQ); + _current = defaultName; } QueueManager::~QueueManager() @@ -30,3 +32,13 @@ return _queues.keys(); } +Queue* QueueManager::currentQueue() +{ + return queue( _current ); +} + +void QueueManager::setCurrentQueue(const QString& queueName) +{ + if (_queues.contains(queueName)) + _current = queueName; +} Modified: trunk/krusader_kde4/krusader/Queue/queue_mgr.h =================================================================== --- trunk/krusader_kde4/krusader/Queue/queue_mgr.h 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/Queue/queue_mgr.h 2008-09-16 20:13:25 UTC (rev 6082) @@ -19,9 +19,13 @@ static Queue* queue(const QString& queueName=defaultName); QList<QString> queues() const; + + static Queue* currentQueue(); + static void setCurrentQueue(const QString& queueName); protected: static QMap<QString, Queue*> _queues; + static QString _current; }; #endif // QUEUE_MGR_H Modified: trunk/krusader_kde4/krusader/VFS/kiojobwrapper.cpp =================================================================== --- trunk/krusader_kde4/krusader/VFS/kiojobwrapper.cpp 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/VFS/kiojobwrapper.cpp 2008-09-16 20:13:25 UTC (rev 6082) @@ -34,15 +34,18 @@ #include <kio/global.h> #include <kio/jobclasses.h> #include <kio/directorysizejob.h> +#include <kio/jobuidelegate.h> #include <kio/job.h> #include <qapplication.h> #include <iostream> +#include <klocale.h> +#include "virtualcopyjob.h" class JobStartEvent : public QEvent { public: JobStartEvent( KIOJobWrapper * wrapperIn ) : QEvent( QEvent::User ), m_wrapper( wrapperIn ) {} - virtual ~JobStartEvent() { delete m_wrapper; } + virtual ~JobStartEvent() { if( m_wrapper->m_delete ) delete m_wrapper; } KIOJobWrapper * wrapper() { return m_wrapper; } private: @@ -60,8 +63,37 @@ return QObject::event( e ); } +KIOJobWrapper::KIOJobWrapper( KIOJobWrapperType type, KUrl &url ) : QObject( 0 ), + m_autoErrorHandling( false ), m_delete( true ), m_started( false ) { + moveToThread(QApplication::instance()->thread()); + m_type = type; + m_url = url; +} + +KIOJobWrapper::KIOJobWrapper( KIOJobWrapperType type, KUrl &url, void * userData ) : QObject( 0 ), + m_autoErrorHandling( false ), m_delete( true ), m_started( false ) { + moveToThread(QApplication::instance()->thread()); + m_type = type; + m_url = url; + m_userData = userData; +} + +KIOJobWrapper::KIOJobWrapper( KIOJobWrapperType type, KUrl &url, KUrl::List &list, + int pmode, bool showp ) : QObject( 0 ), + m_autoErrorHandling( false ), m_delete( true ), m_started( false ) { + moveToThread(QApplication::instance()->thread()); + m_type = type; + m_url = url; + m_urlList = list; + m_pmode = pmode; + m_showProgress = showp; +} + +KIOJobWrapper::~KIOJobWrapper() { +} + void KIOJobWrapper::createJob() { - KIO::Job *job = 0; + KIO::Job * job = 0; switch( m_type ) { case Stat: job = KIO::stat( m_url ); @@ -69,14 +101,34 @@ case DirectorySize: job = KIO::directorySize( m_url ); break; + case VirtualMove: + case VirtualCopy: + { + VirtualCopyJob * vcj = (VirtualCopyJob *)m_userData; + vcj->slotStart(); + job = vcj; + } + break; + case Copy: + job = PreservingCopyJob::createCopyJob( (PreserveMode)m_pmode, m_urlList, m_url, KIO::CopyJob::Copy, false, m_showProgress ); + break; + case Move: + job = PreservingCopyJob::createCopyJob( (PreserveMode)m_pmode, m_urlList, m_url, KIO::CopyJob::Move, false, m_showProgress ); + break; default: fprintf( stderr, "Internal error: invalid job!\n" ); break; } if( job ) { + m_job = job; + m_delete = false; + connect( job, SIGNAL( destroyed() ), this, SLOT( deleteLater() ) ); for( int i=0; i != m_signals.count(); i++ ) if( !m_receivers[ i ].isNull() ) connect( job, m_signals[ i ], m_receivers[ i ], m_methods[ i ] ); + + if( m_autoErrorHandling && job->ui() ) + job->ui()->setAutoErrorHandlingEnabled( true ); } } @@ -88,7 +140,28 @@ return new KIOJobWrapper( DirectorySize, url ); } +KIOJobWrapper * KIOJobWrapper::copy( int pmode, KUrl::List &list, KUrl &url, bool showProgress ) { + return new KIOJobWrapper( Copy, url, list, pmode, showProgress ); +} + +KIOJobWrapper * KIOJobWrapper::move( int pmode, KUrl::List &list, KUrl &url, bool showProgress ) { + return new KIOJobWrapper( Move, url, list, pmode, showProgress ); +} + +KIOJobWrapper * KIOJobWrapper::virtualCopy( const QStringList *names, vfs * vfs, KUrl& dest, + const KUrl& baseURL, int pmode, bool showProgressInfo ) { + return new KIOJobWrapper( VirtualCopy, dest, + new VirtualCopyJob( names, vfs, dest, baseURL, (PreserveMode)pmode, KIO::CopyJob::Copy, showProgressInfo, false ) ); +} + +KIOJobWrapper * KIOJobWrapper::virtualMove( const QStringList *names, vfs * vfs, KUrl& dest, + const KUrl& baseURL, int pmode, bool showProgressInfo ) { + return new KIOJobWrapper( VirtualMove, dest, + new VirtualCopyJob( names, vfs, dest, baseURL, (PreserveMode)pmode, KIO::CopyJob::Move, showProgressInfo, false ) ); +} + void KIOJobWrapper::start() { + m_started = true; KrJobStarter *self = KrJobStarter::self(); QApplication::postEvent( self, new JobStartEvent( this ) ); } @@ -98,3 +171,21 @@ m_receivers.append( (QObject *)receiver ); m_methods.append( method ); } + +QString KIOJobWrapper::typeStr() { + switch( m_type ) + { + case Stat: + return i18n( "Status" ); + case DirectorySize: + return i18n( "Directory Size" ); + case Copy: + case VirtualCopy: + return i18n( "Copy" ); + case Move: + case VirtualMove: + return i18n( "Move" ); + default: + return i18n( "Unknown" ); + } +} Modified: trunk/krusader_kde4/krusader/VFS/kiojobwrapper.h =================================================================== --- trunk/krusader_kde4/krusader/VFS/kiojobwrapper.h 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/VFS/kiojobwrapper.h 2008-09-16 20:13:25 UTC (rev 6082) @@ -34,38 +34,67 @@ #include <qobject.h> #include <kurl.h> #include <qpointer.h> +#include <kio/jobclasses.h> class QEvent; -class KJob; +class vfs; enum KIOJobWrapperType { Stat = 1, DirectorySize = 2, + Copy = 3, + Move = 4, + VirtualCopy = 5, + VirtualMove = 6, }; class KIOJobWrapper : public QObject { friend class KrJobStarter; + friend class JobStartEvent; private: KIOJobWrapperType m_type; KUrl m_url; + KUrl::List m_urlList; + bool m_showProgress; + int m_pmode; + void * m_userData; + bool m_autoErrorHandling; QList<const char *> m_signals; QList<QPointer<QObject> > m_receivers; QList<const char *> m_methods; - KIOJobWrapper( KIOJobWrapperType type, KUrl &url ) { - m_type = type; - m_url = url; - } + QPointer<KIO::Job> m_job; + bool m_delete; + bool m_started; + + KIOJobWrapper( KIOJobWrapperType type, KUrl &url ); + KIOJobWrapper( KIOJobWrapperType type, KUrl &url, void * userData ); + KIOJobWrapper( KIOJobWrapperType type, KUrl &url, KUrl::List &list, int pmode, bool showp ); void createJob(); public: + virtual ~KIOJobWrapper(); + void start(); void connectTo( const char * signal, const QObject * receiver, const char * method ); + void setAutoErrorHandlingEnabled( bool err ) { m_autoErrorHandling = err; } + bool isStarted() { return m_started; } + KIO::Job * job() { return m_job; } + KIOJobWrapperType type() { return m_type; } + QString typeStr(); + KUrl url() { return m_url; } + static KIOJobWrapper * stat( KUrl &url ); static KIOJobWrapper * directorySize( KUrl &url ); + static KIOJobWrapper * copy( int pmode, KUrl::List &list, KUrl &url, bool showProgress ); + static KIOJobWrapper * move( int pmode, KUrl::List &list, KUrl &url, bool showProgress ); + static KIOJobWrapper * virtualCopy( const QStringList *names, vfs * vfs, KUrl& dest, + const KUrl& baseURL, int pmode, bool showProgressInfo ); + static KIOJobWrapper * virtualMove( const QStringList *names, vfs * vfs, KUrl& dest, + const KUrl& baseURL, int pmode, bool showProgressInfo ); }; class KrJobStarter : public QObject { Modified: trunk/krusader_kde4/krusader/VFS/virtualcopyjob.cpp =================================================================== --- trunk/krusader_kde4/krusader/VFS/virtualcopyjob.cpp 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/VFS/virtualcopyjob.cpp 2008-09-16 20:13:25 UTC (rev 6082) @@ -119,7 +119,7 @@ }; VirtualCopyJob::VirtualCopyJob( const QStringList *names, vfs * vfs, const KUrl& dest, const KUrl& baseURL, - PreserveMode pmode, KIO::CopyJob::CopyMode mode, bool showProgressInfo ) : KIO::Job(), m_overwriteAll( false ), + PreserveMode pmode, KIO::CopyJob::CopyMode mode, bool showProgressInfo, bool autoStart ) : KIO::Job(), m_overwriteAll( false ), m_skipAll( false ), m_multi( false ), m_totalSize( 0 ), m_totalFiles( 0 ), m_totalSubdirs( 0 ), m_processedSize( 0 ), m_processedFiles( 0 ), m_processedSubdirs( 0 ), m_tempSize( 0 ), m_tempFiles( 0 ), m_dirsToGetSize(), m_filesToCopy(), m_size(), m_filenum(), m_subdirs(), m_baseURL( baseURL ), @@ -164,7 +164,8 @@ KIO::getJobTracker()->registerJob(this); } - QTimer::singleShot( 0, this, SLOT( slotStart() ) ); + if( autoStart ) + QTimer::singleShot( 0, this, SLOT( slotStart() ) ); } VirtualCopyJob::~VirtualCopyJob() { Modified: trunk/krusader_kde4/krusader/VFS/virtualcopyjob.h =================================================================== --- trunk/krusader_kde4/krusader/VFS/virtualcopyjob.h 2008-09-15 20:06:39 UTC (rev 6081) +++ trunk/krusader_kde4/krusader/VFS/virtualcopyjob.h 2008-09-16 20:13:25 UTC (rev 6082) @@ -53,7 +53,8 @@ public: VirtualCopyJob( const QStringList *names, vfs * vfs, const KUrl& dest, const KUrl& baseURL, - PreserveMode pmode, KIO::CopyJob::CopyMode mode, bool showProgressInfo ); + PreserveMode pmode, KIO::CopyJob::CopyMode mode, bool showProgressInfo, + bool autoStart = true ); virtual ~VirtualCopyJob(); inline bool isSkipAll() { return m_skipAll; } @@ -68,8 +69,10 @@ void copyCurrentDir(); void directoryFinished( const QString & ); +public slots: + void slotStart(); + protected slots: - void slotStart(); void slotReport(); void slotKdsResult( KJob * ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <des...@us...> - 2008-09-15 20:06:34
|
Revision: 6081 http://krusader.svn.sourceforge.net/krusader/?rev=6081&view=rev Author: deschler Date: 2008-09-15 20:06:39 +0000 (Mon, 15 Sep 2008) Log Message: ----------- Update by Andrius ?\197?\160tikonas Modified Paths: -------------- trunk/krusader_kde4/po/lt.po Modified: trunk/krusader_kde4/po/lt.po =================================================================== --- trunk/krusader_kde4/po/lt.po 2008-09-15 20:05:47 UTC (rev 6080) +++ trunk/krusader_kde4/po/lt.po 2008-09-15 20:06:39 UTC (rev 6081) @@ -5,38 +5,39 @@ # This file is distributed under the same license as the Krusader package # # Dovydas Sankauskas <la...@gm...>, 2005, 2006, 2007. +# Andrius Štikonas <sti...@gm...>, 2008. # msgid "" msgstr "" "Project-Id-Version: krusader-2.0.0-beta1\n" "Report-Msgid-Bugs-To: krusader-i18n <kru...@go...>\n" "POT-Creation-Date: 2008-04-16 22:49+0200\n" -"PO-Revision-Date: 2007-04-20 23:10+0100\n" -"Last-Translator: Dovydas Sankauskas <la...@gm...>\n" +"PO-Revision-Date: 2008-09-09 14:14+0300\n" +"Last-Translator: Andrius Štikonas <sti...@gm...>\n" "Language-Team: krusader-i18n <kru...@go...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n% " -"100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n% 100<10 || n%100>=20) ? 1 : 2);\n" #: Dialogs/krpleasewait.cpp:49 msgid "Krusader::Wait" msgstr "Krusader::Laukiama" -#: Dialogs/krpleasewait.cpp:65 Dialogs/newftpgui.cpp:145 +#: Dialogs/krpleasewait.cpp:65 +#: Dialogs/newftpgui.cpp:145 #: Splitter/splittergui.cpp:126 msgid "&Cancel" msgstr "&Atšaukti" #: Dialogs/krmaskchoice.cpp:57 msgid "Choose Files" -msgstr "Nurodykite bylas" +msgstr "Nurodykite failus" #: Dialogs/krmaskchoice.cpp:81 msgid "Select the following files:" -msgstr "Pažymėti šias bylas:" +msgstr "Pažymėti šiuos failus:" #: Dialogs/krmaskchoice.cpp:86 msgid "Predefined Selections" @@ -46,20 +47,16 @@ msgid "" "A predefined selection is a file-mask which you use often.\n" "Some examples are: \"*.c, *.h\", \"*.c, *.o\", etc.\n" -"You can add these masks to the list by typing them and pressing the Add " -"button.\n" +"You can add these masks to the list by typing them and pressing the Add button.\n" "Delete removes a predefined selection and Clear removes all of them.\n" -"Notice that the line in which you edit the mask has it's own history, you " -"can scroll it, if needed." +"Notice that the line in which you edit the mask has it's own history, you can scroll it, if needed." msgstr "" -"Žymėjimų šablonai yra bylų žymėjimo šablonai, kuriuos dažnai naudojate.\n" +"Žymėjimų šablonai yra failų žymėjimo šablonai, kuriuos dažnai naudojate.\n" "Pavyzdžiui: „*.c, *.h“, „*.c, *.o“ ir pan.\n" -"Norėdami įtraukti šablonus į sąrašą parašykite juos ir spauskite mygtuką " -"Įdėti.\n" +"Norėdami įtraukti šablonus į sąrašą parašykite juos ir spauskite mygtuką Įdėti.\n" "Mygtukas Pašalinti skirtas parinkto šablono pašalinimui iš sąrašo. Mygtukas\n" "Išvalyti pašalins visus šablonus iš sąrašo.\n" -"Laukelis, kuriame rašote šablonus, turi savo žurnalą, jį taipogi galite " -"naudoti." +"Laukelis, kuriame rašote šablonus, turi savo žurnalą, jį taipogi galite naudoti." #: Dialogs/krmaskchoice.cpp:107 msgid "Add" @@ -69,9 +66,13 @@ msgid "Adds the selection in the line-edit to the list" msgstr "Įdėti įrašytą šabloną į šablonų sąrašą" -#: Dialogs/krmaskchoice.cpp:112 Dialogs/kurllistrequester.cpp:142 -#: BookMan/krbookmarkhandler.cpp:563 Konfigurator/kgcolors.cpp:483 -#: DiskUsage/diskusage.cpp:770 Panel/krpopupmenu.cpp:158 krusader.cpp:739 +#: Dialogs/krmaskchoice.cpp:112 +#: Dialogs/kurllistrequester.cpp:142 +#: BookMan/krbookmarkhandler.cpp:563 +#: Konfigurator/kgcolors.cpp:483 +#: DiskUsage/diskusage.cpp:770 +#: Panel/krpopupmenu.cpp:158 +#: krusader.cpp:739 msgid "Delete" msgstr "Pašalinti" @@ -91,9 +92,12 @@ msgid "OK" msgstr "Gerai" -#: Dialogs/krmaskchoice.cpp:137 Dialogs/packguibase.cpp:298 -#: DiskUsage/diskusage.cpp:162 Panel/listpanel.cpp:874 -#: Panel/panelpopup.cpp:402 Panel/listpanel.cpp~:874 +#: Dialogs/krmaskchoice.cpp:137 +#: Dialogs/packguibase.cpp:298 +#: DiskUsage/diskusage.cpp:162 +#: Panel/listpanel.cpp:874 +#: Panel/panelpopup.cpp:402 +#: Panel/listpanel.cpp~:874 msgid "Cancel" msgstr "Atšaukti" @@ -118,8 +122,8 @@ "*.keymap|Krusader keymaps\n" "*|all files" msgstr "" -"*.keymap|Krusader keymap bylos\n" -"*|visos bylos" +"*.keymap|Krusader keymap failai\n" +"*|visi failai" #: Dialogs/krkeydialog.cpp:41 msgid "Import shortcuts" @@ -135,20 +139,20 @@ #: Dialogs/krkeydialog.cpp:47 msgid "Save current keybindings in a keymap file." -msgstr "Įrašyti dabartines sparčiųjų klavišų parinktis į keymap bylą." +msgstr "Įrašyti dabartines sparčiųjų klavišų parinktis į keymap failą." -#: Dialogs/krkeydialog.cpp:64 Dialogs/krkeydialog.cpp:129 +#: Dialogs/krkeydialog.cpp:64 +#: Dialogs/krkeydialog.cpp:129 msgid "Select a keymap file" -msgstr "Nurodykite keymap bylą" +msgstr "Nurodykite keymap failą" #: Dialogs/krkeydialog.cpp:71 msgid "" "This file does not seem to be a valid keymap.\n" "It may be a keymap using a legacy format. The import can't be undone!" msgstr "" -"Ši byla nėra keymap byla.\n" -"Arba galbūt šios bylos formatas nebenaudojamas. Importavimo nebegalima " -"atšaukti!" +"Šis failas nėra keymap failas.\n" +"Galbūt keymap naudoja pasenusį failo formatą. Importavimo nebegalima atšaukti!" #: Dialogs/krkeydialog.cpp:73 msgid "Try to import legacy format?" @@ -159,12 +163,8 @@ msgstr "Vistiek importuoti" #: Dialogs/krkeydialog.cpp:96 -msgid "" -"The following information was attached to the keymap. Do you really want to " -"import this keymap?" -msgstr "" -"Ši informacija buvo keymap byloje. Ar tikrai norite importuoti šią keymap " -"bylą?" +msgid "The following information was attached to the keymap. Do you really want to import this keymap?" +msgstr "Ši informacija buvo keymap faile. Ar tikrai norite importuoti šią keymap failą?" #: Dialogs/krkeydialog.cpp:123 msgid "Please restart this dialog in order to see the changes" @@ -176,18 +176,22 @@ #: Dialogs/krkeydialog.cpp:135 #, qt-format -msgid "" -"<qt>File <b>%1</b> already exists. Do you really want to overwrite it?</qt>" -msgstr "<qt>Byla <b>%1</b> jau egzistuoja. Ar tikrai norite ją perrašyti?</qt>" +msgid "<qt>File <b>%1</b> already exists. Do you really want to overwrite it?</qt>" +msgstr "<qt>Failas <b>%1</b> jau egzistuoja. Ar tikrai norite jį perrašyti?</qt>" -#: Dialogs/krkeydialog.cpp:136 Dialogs/checksumdlg.cpp:630 -#: Konfigurator/kgcolors.cpp:532 DiskUsage/diskusage.cpp:614 -#: Panel/panelfunc.cpp:666 Panel/panelfunc.cpp~:667 +#: Dialogs/krkeydialog.cpp:136 +#: Dialogs/checksumdlg.cpp:630 +#: Konfigurator/kgcolors.cpp:532 +#: DiskUsage/diskusage.cpp:614 +#: Panel/panelfunc.cpp:666 +#: Panel/panelfunc.cpp~:667 msgid "Warning" msgstr "Perspėjimas" -#: Dialogs/krkeydialog.cpp:136 Dialogs/checksumdlg.cpp:630 -#: Konfigurator/kgcolors.cpp:532 UserAction/kraction.cpp:160 +#: Dialogs/krkeydialog.cpp:136 +#: Dialogs/checksumdlg.cpp:630 +#: Konfigurator/kgcolors.cpp:532 +#: UserAction/kraction.cpp:160 msgid "Overwrite" msgstr "Perrašyti" @@ -217,9 +221,9 @@ #, qt-format msgid "Pack %1 file" msgid_plural "Pack %1 files" -msgstr[0] "Supakuoti %1 bylą" -msgstr[1] "Supakuoti %1 bylas" -msgstr[2] "Supakuoti %1 bylų" +msgstr[0] "Supakuoti %1 failą" +msgstr[1] "Supakuoti %1 failus" +msgstr[2] "Supakuoti %1 failų" #: Dialogs/packgui.cpp:96 msgid "Please select a directory" @@ -285,33 +289,26 @@ msgid "&Connect" msgstr "&Prisijungti" -#: Dialogs/checksumdlg.cpp:205 Dialogs/checksumdlg.cpp:507 +#: Dialogs/checksumdlg.cpp:205 +#: Dialogs/checksumdlg.cpp:507 msgid "Create Checksum" msgstr "Kurti kontrolinę sumą" #: Dialogs/checksumdlg.cpp:211 -msgid "" -"<qt>Can't calculate checksum since no supported tool was found. Please check " -"the <b>Dependencies</b> page in Krusader's settings.</qt>" -msgstr "" -"<qt>Kontrolinės sumos apskaičiuoti nepavyko, nes nerasta jokių įrankių. " -"Patikrinkite programų kelius Krusader derinimo skyriuje <b>Keliai</b>.</qt>" +msgid "<qt>Can't calculate checksum since no supported tool was found. Please check the <b>Dependencies</b> page in Krusader's settings.</qt>" +msgstr "<qt>Kontrolinės sumos apskaičiuoti nepavyko, nes nerasta jokių įrankių. Patikrinkite <b>Priklausomybių</b> puslapį Krusader nustatymuose.</qt>" -#: Dialogs/checksumdlg.cpp:214 Dialogs/checksumdlg.cpp:333 -msgid "" -"<qt><b>Note</b>: you've selected directories, and probably have no recursive " -"checksum tool installed. Krusader currently supports <i>md5deep, sha1deep, " -"sha256deep, tigerdeep and cfv</i></qt>" -msgstr "" -"<qt><b>Dėmesio</b>: pažymėjote aplankus, bet tikriausiai neįdiegėte jokių " -"rekursyvių kontrolinių sumų skaičiavimo įrankių. Krusader dirba su šiais " -"įrankiais <i>md5deep, sha1deep, sha256deep, tigerdeep ir cfv</i>.</qt>" +#: Dialogs/checksumdlg.cpp:214 +#: Dialogs/checksumdlg.cpp:333 +msgid "<qt><b>Note</b>: you've selected directories, and probably have no recursive checksum tool installed. Krusader currently supports <i>md5deep, sha1deep, sha256deep, tigerdeep and cfv</i></qt>" +msgstr "<qt><b>Dėmesio</b>: pažymėjote aplankus, bet tikriausiai neįdiegėte jokių rekursyvių kontrolinių sumų skaičiavimo įrankių. Krusader dirba su šiais įrankiais <i>md5deep, sha1deep, sha256deep, tigerdeep ir cfv</i>.</qt>" #: Dialogs/checksumdlg.cpp:233 msgid "About to calculate checksum for the following files" -msgstr "Ruošiamasi skaičiuoti šių bylų kontrolines sumas" +msgstr "Ruošiamasi skaičiuoti šių failų kontrolines sumas" -#: Dialogs/checksumdlg.cpp:234 Dialogs/checksumdlg.cpp:353 +#: Dialogs/checksumdlg.cpp:234 +#: Dialogs/checksumdlg.cpp:353 msgid " and folders:" msgstr "ir aplankų:" @@ -323,54 +320,43 @@ msgid "Calculating checksums ..." msgstr "Skaičiuojamos kontrolinės sumos..." -#: Dialogs/checksumdlg.cpp:294 Dialogs/checksumdlg.cpp:428 +#: Dialogs/checksumdlg.cpp:294 +#: Dialogs/checksumdlg.cpp:428 #, qt-format msgid "<qt>There was an error while running <b>%1</b>.</qt>" msgstr "<qt>Vykdant <b>%1</b> įvyko klaida.</qt>" -#: Dialogs/checksumdlg.cpp:306 Dialogs/checksumdlg.cpp:437 +#: Dialogs/checksumdlg.cpp:306 +#: Dialogs/checksumdlg.cpp:437 msgid "Error reading stdout or stderr" -msgstr "" -"Nepavyko perskaityti arba standartinės išvesties arba standartinės klaidų " -"išvesties" +msgstr "Nepavyko perskaityti arba standartinės išvesties arba standartinės klaidų išvesties" -#: Dialogs/checksumdlg.cpp:324 Dialogs/checksumdlg.cpp:462 +#: Dialogs/checksumdlg.cpp:324 +#: Dialogs/checksumdlg.cpp:462 msgid "Verify Checksum" msgstr "Tikrinti kontrolinę sumą" #: Dialogs/checksumdlg.cpp:330 -msgid "" -"<qt>Can't verify checksum since no supported tool was found. Please check " -"the <b>Dependencies</b> page in Krusader's settings.</qt>" -msgstr "" -"<qt>Kontrolinės sumos patinkrinti nepavyko, nes nerasta jokių įrankių. " -"Patikrinkite programų kelius Krusader derinimo skyriuje <b>Keliai</b>.</qt>" +msgid "<qt>Can't verify checksum since no supported tool was found. Please check the <b>Dependencies</b> page in Krusader's settings.</qt>" +msgstr "<qt>Kontrolinės sumos patinkrinti nepavyko, nes nerasta jokių įrankių. Patikrinkite <b>Priklausomybių</b> puslapį Krusader nustatymuose.</qt>" #: Dialogs/checksumdlg.cpp:352 msgid "About to verify checksum for the following files" -msgstr "Ruošiamasi patikrinti šių bylų kontrolines sumas" +msgstr "Ruošiamasi patikrinti šių failų kontrolines sumas" #: Dialogs/checksumdlg.cpp:367 msgid "Checksum file:" -msgstr "Kontrolinės sumos byla:" +msgstr "Kontrolinės sumos failas:" #: Dialogs/checksumdlg.cpp:382 #, qt-format -msgid "" -"<qt>Error reading checksum file <i>%1</i>.<br />Please specify a valid " -"checksum file.</qt>" -msgstr "" -"<qt>Skaitant kontrolinės sumos bylą <i>%1</i> įvyko klaida.<br> Nurodykite " -"teisingą kontrolinės sumos bylą.</qt>" +msgid "<qt>Error reading checksum file <i>%1</i>.<br />Please specify a valid checksum file.</qt>" +msgstr "<qt>Skaitant kontrolinės sumos failą <i>%1</i> įvyko klaida.<br> Nurodykite teisingą kontrolinės sumos failą.</qt>" #: Dialogs/checksumdlg.cpp:395 #, qt-format -msgid "" -"<qt>Krusader can't find a checksum tool that handles %1 on your system. " -"Please check the <b>Dependencies</b> page in Krusader's settings.</qt>" -msgstr "" -"<qt>Nepavyko rasti įrankio, skirto darbui su %1.Patikrinkite programų kelius " -"Krusader derinimo skyriuje <b>Keliai</b>.</qt>" +msgid "<qt>Krusader can't find a checksum tool that handles %1 on your system. Please check the <b>Dependencies</b> page in Krusader's settings.</qt>" +msgstr "<qt>Jūsų sistemoje nepavyko rasti įrankio, skirto darbui su %1. Patikrinkite <b>Priklausomybių</b> puslapį Krusader nustatymuose.</qt>" #: Dialogs/checksumdlg.cpp:413 msgid "Verifying checksums ..." @@ -386,7 +372,7 @@ #: Dialogs/checksumdlg.cpp:487 msgid "The following files have failed:" -msgstr "Šios bylos klaidingos:" +msgstr "Šie failai klaidingi:" #: Dialogs/checksumdlg.cpp:527 msgid "Errors were detected while creating the checksums" @@ -404,13 +390,14 @@ msgid "Hash" msgstr "Maiša (hash)" -#: Dialogs/checksumdlg.cpp:544 Konfigurator/kgcolors.cpp:427 +#: Dialogs/checksumdlg.cpp:544 +#: Konfigurator/kgcolors.cpp:427 msgid "File" -msgstr "Byla" +msgstr "Failas" #: Dialogs/checksumdlg.cpp:547 msgid "File and hash" -msgstr "Byla ir maiša" +msgstr "Failas ir maiša" #: Dialogs/checksumdlg.cpp:577 msgid "Here are the errors received:" @@ -418,11 +405,11 @@ #: Dialogs/checksumdlg.cpp:592 msgid "Save checksum to file:" -msgstr "Įrašyti kontrolines sumas į bylą:" +msgstr "Įrašyti kontrolines sumas į failą:" #: Dialogs/checksumdlg.cpp:606 msgid "Checksum file for each source file" -msgstr "Kontrolinė byla kiekvienai pradinei bylai" +msgstr "Kontrolinis failas kiekvienam pradiniam failui" #: Dialogs/checksumdlg.cpp:629 #, qt-format @@ -430,21 +417,21 @@ "File %1 already exists.\n" "Are you sure you want to overwrite it?" msgstr "" -"Byla %1 jau egzistuoja.\n" -"Ar tikrai norite ją perrašyti?" +"Failas %1 jau egzistuoja.\n" +"Ar tikrai norite jį perrašyti?" #: Dialogs/checksumdlg.cpp:632 msgid "Select a file to save to" -msgstr "Nurodykite bylą, į kurią įrašyti" +msgstr "Nurodykite failą, į kurį įrašyti" #: Dialogs/checksumdlg.cpp:637 #, qt-format msgid "Error saving file %1" -msgstr "Įrašant bylą %1 įvyko klaida" +msgstr "Įrašant failą %1 įvyko klaida" #: Dialogs/checksumdlg.cpp:649 msgid "Saving checksum files..." -msgstr "Įrašomos kontrolinių sumų bylos..." +msgstr "Įrašomi kontrolinių sumų failai..." #: Dialogs/checksumdlg.cpp:656 msgid "Errors occured while saving multiple checksums. Stopping" @@ -454,13 +441,14 @@ msgid "Source:" msgstr "Iš kur:" -#: Dialogs/krprogress.cpp:70 Dialogs/krprogress.cpp:246 +#: Dialogs/krprogress.cpp:70 +#: Dialogs/krprogress.cpp:246 msgid "Destination:" msgstr "Į kur:" #: Dialogs/krprogress.cpp:118 msgid "Krusader Progress" -msgstr "Krusader Progreso langas" +msgstr "Krusader pažanga" #: Dialogs/krprogress.cpp:171 #, qt-format @@ -474,9 +462,9 @@ #, qt-format msgid "%1 file" msgid_plural "%1 files" -msgstr[0] "%1 byla" -msgstr[1] "%1 bylos" -msgstr[2] "%1 bylų" +msgstr[0] "%1 failas" +msgstr[1] "%1 failai" +msgstr[2] "%1 failų" #: Dialogs/krprogress.cpp:180 msgid " (Reading)" @@ -487,21 +475,23 @@ msgid "%1 of %2 complete" msgstr "%1 iš %2 baigta" -#: Dialogs/krprogress.cpp:207 Dialogs/krprogress.cpp:220 +#: Dialogs/krprogress.cpp:207 +#: Dialogs/krprogress.cpp:220 #, qt-format msgid "%2 / %1 directory" msgid_plural "%2 / %1 directories" -msgstr[0] "%2 iš %1 aplanko" -msgstr[1] "%2 iš %1 aplankų" -msgstr[2] "%2 iš %1 aplankų" +msgstr[0] "%2 / %1 aplankas" +msgstr[1] "%2 / %1 aplankai" +msgstr[2] "%2 / %1 aplankų" -#: Dialogs/krprogress.cpp:209 Dialogs/krprogress.cpp:223 +#: Dialogs/krprogress.cpp:209 +#: Dialogs/krprogress.cpp:223 #, qt-format msgid "%2 / %1 file" msgid_plural "%2 / %1 files" -msgstr[0] "%2 iš %1 bylos" -msgstr[1] "%2 iš %1 bylų" -msgstr[2] "%2 iš %1 bylų" +msgstr[0] "%2 / %1 failas" +msgstr[1] "%2 / %1 failai" +msgstr[2] "%2 / %1 failų" #: Dialogs/krprogress.cpp:231 msgid "Working" @@ -516,7 +506,8 @@ msgid "Enter a selection:" msgstr "Įrašykite žymėjimą:" -#: Dialogs/krspwidgets.cpp:307 Dialogs/krspwidgets.cpp:318 +#: Dialogs/krspwidgets.cpp:307 +#: Dialogs/krspwidgets.cpp:318 msgid "Quick Navigation" msgstr "Greitas naršymas" @@ -530,13 +521,14 @@ msgid "Click to go to <i>%1</i>" msgstr "Spragtelėkite norėdami patekti į <i>%1</i>" -#: Dialogs/packguibase.cpp:68 Dialogs/packguibase.cpp:122 +#: Dialogs/packguibase.cpp:68 +#: Dialogs/packguibase.cpp:122 msgid "Pack" msgstr "Pakuoti" #: Dialogs/packguibase.cpp:78 msgid "To archive" -msgstr "į bylą" +msgstr "Į archyvą" #: Dialogs/packguibase.cpp:97 msgid "In directory" @@ -544,11 +536,12 @@ #: Dialogs/packguibase.cpp:147 msgid "Multiple volume archive" -msgstr "Daugiatomė supakuota byla" +msgstr "Daugiatomis supakuotas archyvas" -#: Dialogs/packguibase.cpp:156 DiskUsage/diskusage.cpp:1077 +#: Dialogs/packguibase.cpp:156 +#: DiskUsage/diskusage.cpp:1077 msgid "Size:" -msgstr "Talpa:" +msgstr "Dydis:" #: Dialogs/packguibase.cpp:174 msgid "Set compression level" @@ -556,11 +549,11 @@ #: Dialogs/packguibase.cpp:195 msgid "MIN" -msgstr "min" +msgstr "MIN" #: Dialogs/packguibase.cpp:196 msgid "MAX" -msgstr "max" +msgstr "MAX" #: Dialogs/packguibase.cpp:220 msgid "Password" @@ -572,13 +565,14 @@ #: Dialogs/packguibase.cpp:248 msgid "Encrypt headers" -msgstr "Koduoti bylos antraštes" +msgstr "Šifruoti failo antraštes" #: Dialogs/packguibase.cpp:260 msgid "Command line switches:" msgstr "Komandinės eilutės raktai:" -#: Dialogs/packguibase.cpp:286 Dialogs/packguibase.cpp:326 +#: Dialogs/packguibase.cpp:286 +#: Dialogs/packguibase.cpp:326 #: Filter/filtertabs.cpp:49 msgid "&Advanced" msgstr "&Sudėtingiau" @@ -635,8 +629,10 @@ msgid "BookMan II" msgstr "Žymelės II" -#: BookMan/krbookmarkbutton.cpp:19 BookMan/krbookmarkhandler.cpp:32 -#: BookMan/kraddbookmarkdlg.cpp:80 krusader.cpp:707 +#: BookMan/krbookmarkbutton.cpp:19 +#: BookMan/krbookmarkhandler.cpp:32 +#: BookMan/kraddbookmarkdlg.cpp:80 +#: krusader.cpp:707 msgid "Bookmarks" msgstr "Žymelės" @@ -645,13 +641,24 @@ msgid "Unable to write to %1" msgstr "Nepavyko įrašyti į %1" -#: BookMan/krbookmarkhandler.cpp:171 BookMan/krbookmarkhandler.cpp:267 -#: Synchronizer/synchronizerdirlist.cpp:120 Konfigurator/kgcolors.cpp:517 -#: Konfigurator/kgcolors.cpp:534 Konfigurator/kggeneral.cpp:223 -#: VFS/krarchandler.cpp:207 VFS/krarchandler.cpp:266 VFS/krarchandler.cpp:284 -#: VFS/krarchandler.cpp:345 VFS/krarchandler.cpp:519 VFS/krarchandler.cpp:526 -#: VFS/virt_vfs.cpp:90 VFS/virt_vfs.cpp:180 VFS/normal_vfs.cpp:91 -#: VFS/normal_vfs.cpp:101 VFS/normal_vfs.cpp:108 MountMan/kmountman.cpp:205 +#: BookMan/krbookmarkhandler.cpp:171 +#: BookMan/krbookmarkhandler.cpp:267 +#: Synchronizer/synchronizerdirlist.cpp:120 +#: Konfigurator/kgcolors.cpp:517 +#: Konfigurator/kgcolors.cpp:534 +#: Konfigurator/kggeneral.cpp:223 +#: VFS/krarchandler.cpp:207 +#: VFS/krarchandler.cpp:266 +#: VFS/krarchandler.cpp:284 +#: VFS/krarchandler.cpp:345 +#: VFS/krarchandler.cpp:519 +#: VFS/krarchandler.cpp:526 +#: VFS/virt_vfs.cpp:90 +#: VFS/virt_vfs.cpp:180 +#: VFS/normal_vfs.cpp:91 +#: VFS/normal_vfs.cpp:101 +#: VFS/normal_vfs.cpp:108 +#: MountMan/kmountman.cpp:205 msgid "Error" msgstr "Klaida" @@ -659,7 +666,8 @@ msgid " instead of " msgstr "vietoje" -#: BookMan/krbookmarkhandler.cpp:184 BookMan/krbookmarkhandler.cpp:190 +#: BookMan/krbookmarkhandler.cpp:184 +#: BookMan/krbookmarkhandler.cpp:190 #: BookMan/krbookmarkhandler.cpp:221 msgid "missing tag " msgstr "trūkstama žymė" @@ -667,18 +675,20 @@ #: BookMan/krbookmarkhandler.cpp:260 #, qt-format msgid "%1 doesn't seem to be a valid Bookmarks file" -msgstr "%1 nėra žymelių byla" +msgstr "%1 nėra tinkamas žymelių failas" #: BookMan/krbookmarkhandler.cpp:267 #, qt-format msgid "Error reading bookmarks file: %1" -msgstr "Nepavyko perskaityti žymelių bylos: %1" +msgstr "Nepavyko perskaityti žymelių failo: %1" -#: BookMan/krbookmarkhandler.cpp:330 BookMan/krbookmarkhandler.cpp:489 +#: BookMan/krbookmarkhandler.cpp:330 +#: BookMan/krbookmarkhandler.cpp:489 msgid "Popular URLs" msgstr "Dažniausi URL" -#: BookMan/krbookmarkhandler.cpp:399 krusader.cpp:708 +#: BookMan/krbookmarkhandler.cpp:399 +#: krusader.cpp:708 msgid "Bookmark Current" msgstr "Įtraukti į žymeles" @@ -694,24 +704,28 @@ msgid "Devices" msgstr "Įrenginiai" -#: BookMan/krbookmarkhandler.cpp:497 BookMan/krbookmark.cpp:13 +#: BookMan/krbookmarkhandler.cpp:497 +#: BookMan/krbookmark.cpp:13 msgid "Local Network" msgstr "Vietinis tinklas" -#: BookMan/krbookmarkhandler.cpp:501 BookMan/krbookmark.cpp:12 +#: BookMan/krbookmarkhandler.cpp:501 +#: BookMan/krbookmark.cpp:12 msgid "Virtual Filesystem" -msgstr "Virtuali bylų sistema" +msgstr "Virtuali failų sistema" #: BookMan/krbookmarkhandler.cpp:505 msgid "Jump back" msgstr "Grįžti" -#: BookMan/krbookmarkhandler.cpp:557 GUI/mediabutton.cpp:540 +#: BookMan/krbookmarkhandler.cpp:557 +#: GUI/mediabutton.cpp:540 #: Panel/krpopupmenu.cpp:69 msgid "Open" msgstr "Atverti" -#: BookMan/krbookmarkhandler.cpp:559 GUI/mediabutton.cpp:542 +#: BookMan/krbookmarkhandler.cpp:559 +#: GUI/mediabutton.cpp:542 msgid "Open in a new tab" msgstr "Atverti naujoje kortelėje" @@ -719,11 +733,13 @@ msgid "Add Bookmark" msgstr "Įdėti žymelę" -#: BookMan/kraddbookmarkdlg.cpp:20 BookMan/kraddbookmarkdlg.cpp:118 +#: BookMan/kraddbookmarkdlg.cpp:20 +#: BookMan/kraddbookmarkdlg.cpp:118 msgid "New Folder" msgstr "Naujas aplankas" -#: BookMan/kraddbookmarkdlg.cpp:34 DiskUsage/diskusage.cpp:1075 +#: BookMan/kraddbookmarkdlg.cpp:34 +#: DiskUsage/diskusage.cpp:1075 msgid "Name:" msgstr "Pavadinimas:" @@ -736,19 +752,20 @@ msgstr "Kur sukurti:" #: BookMan/kraddbookmarkdlg.cpp:74 -#, fuzzy msgid "Folders" -msgstr "Aplankas..." +msgstr "Aplankai" #: BookMan/kraddbookmarkdlg.cpp:118 msgid "Folder name:" msgstr "Aplanko pavadinimas:" -#: BookMan/krbookmark.cpp:11 krusader.cpp:713 +#: BookMan/krbookmark.cpp:11 +#: krusader.cpp:713 msgid "Media" msgstr "Laikmenos" -#: Synchronizer/synchronizergui.cpp:1108 Synchronizer/synchronizergui.cpp:2332 +#: Synchronizer/synchronizergui.cpp:1108 +#: Synchronizer/synchronizergui.cpp:2332 #: Synchronizer/synchronizergui.cpp~:1108 #: Synchronizer/synchronizergui.cpp~:2332 msgid "Krusader::Synchronize Directories" @@ -762,7 +779,7 @@ #: Synchronizer/synchronizergui.cpp:1138 #: Synchronizer/synchronizergui.cpp~:1138 msgid "File &Filter:" -msgstr "Bylų &filtras:" +msgstr "Failų &filtras:" #: Synchronizer/synchronizergui.cpp:1160 #: Synchronizer/synchronizergui.cpp~:1160 @@ -770,42 +787,10 @@ msgstr "Bazinis kairysis aplankas, naudojamas sinchronizavimo metu." #: Synchronizer/synchronizergui.cpp:1177 -#: Synchronizer/synchronizergui.cpp~:1177 Filter/generalfilter.cpp:80 -msgid "" -"<p>The filename filtering criteria is defined here.</p><p>You can make use " -"of wildcards. Multiple patterns are separated by space (means logical OR) " -"and patterns are excluded from the search using the pipe symbol.</p><p>If " -"the pattern is ended with a slash (<code>*pattern*/</code>), that means that " -"pattern relates to recursive search of directories.<ul><li><code>pattern</" -"code> - means to search those files/directories that name is <code>pattern</" -"code>, recursive search goes through all subdirectories independently of the " -"value of <code>pattern</code></li><li><code>pattern/</code> - means to " -"search all files/directories, but recursive search goes through/excludes the " -"directories that name is <code>pattern</code></li></ul><p></p><p>It's " -"allowed to use quotation marks for names that contain space. Filter <code>" -"\"Program Files\"</code> searches out those files/directories that name " -"is <code>Program Files</code>.</p><p>Examples:<ul><code><li>*.o</" -"li><li>*.h *.c??</li><li>*.cpp *.h | *.moc.cpp</li><li>* | CVS/ .svn/</li></" -"code></ul><b>Note</b>: the search term '<code>text</code>' is equivalent to " -"'<code>*text*</code>'.</p>" -msgstr "" -"<p>Bylų filtravimo šablonai.</p><p>Galite naudoti pakaitos simbolius. Jei " -"norite naudoti kelis šablonus, atskirkite juos tapais (loginis ARBA), o " -"norėdami į rezultatą neįtraukti šabloną atitikusių bylų naudokite vertikalų " -"brūkšnį.</p><p>Atgal pasvirusiu brūkšniu užsibaigiantis šablonas " -"(<code>*šablonas*/</code>) reiškia, kad šabloną reikia taikyti aplankams " -"rekursyviai. <ul><li><code>šablonas</code> – reiškia ieškoti tose bylose ir " -"aplankuose, kurių pavadinimas yra <code>šablonas</code>, jei ieškoma " -"rekursyviai, bus peržiūrėti visi aplankai neatsižvelgiant į patį šabloną.</" -"li><li><code>šablonas/</code> – reiškia ieškoti visose bylose ir aplankuose, " -"bet rekursyvi paieška nebus atliekama bylose ir aplankuose, kurių " -"pavadinimas yra <code>šablonas</code></li></ul><p></p> <p>Pavadinimams, " -"kuriuose yra tarpo simbolių, naudokite kabutes. Šabloną <code>\"Program " -"Files\"</code> atitiks tokios bylos ir aplankai, kurių pavadinimai yra " -"<code>Program Files</code>.</p> <p>Pavyzdžiai:<ul><code><li>*.o</" -"li><li>*.h *.c??</li><li>*.cpp *.h | *.moc.cpp</li> <li>* | CVS/ .svn/</li></" -"code></ul> <b>Dėmesio</b>:šablonas '<code>tekstas</code>' yra toks pat, kaip " -"ir '<code>*tekstas*</code>'.</p>" +#: Synchronizer/synchronizergui.cpp~:1177 +#: Filter/generalfilter.cpp:80 +msgid "<p>The filename filtering criteria is defined here.</p><p>You can make use of wildcards. Multiple patterns are separated by space (means logical OR) and patterns are excluded from the search using the pipe symbol.</p><p>If the pattern is ended with a slash (<code>*pattern*/</code>), that means that pattern relates to recursive search of directories.<ul><li><code>pattern</code> - means to search those files/directories that name is <code>pattern</code>, recursive search goes through all subdirectories independently of the value of <code>pattern</code></li><li><code>pattern/</code> - means to search all files/directories, but recursive search goes through/excludes the directories that name is <code>pattern</code></li></ul><p></p><p>It's allowed to use quotation marks for names that contain space. Filter <code>\"Program Files\"</code> searches out those files/directories that name is <code>Program Files</code>.</p><p>Examples:<ul><code><li>*.o</li><li>*.h *.c??</li><li>*.cpp *.h | *.moc.cpp</li><li>* | CVS/ .svn/</li></code></ul><b>Note</b>: the search term '<code>text</code>' is equivalent to '<code>*text*</code>'.</p>" +msgstr "<p>Failų filtravimo šablonai.</p><p>Galite naudoti pakaitos simbolius. Jei norite naudoti kelis šablonus, atskirkite juos tapais (loginis ARBA), o norėdami į rezultatą neįtraukti šabloną atitikusių failų naudokite vertikalų brūkšnį.</p><p>Atgal pasvirusiu brūkšniu užsibaigiantis šablonas (<code>*šablonas*/</code>) reiškia, kad šabloną reikia taikyti aplankams rekursyviai. <ul><li><code>šablonas</code> – reiškia ieškoti tose failuose ir aplankuose, kurių pavadinimas yra <code>šablonas</code>, jei ieškoma rekursyviai, bus peržiūrėti visi aplankai neatsižvelgiant į patį šabloną.</li><li><code>šablonas/</code> – reiškia ieškoti visose failuose ir aplankuose, bet rekursyvi paieška nebus atliekama failuose ir aplankuose, kurių pavadinimas yra <code>šablonas</code></li></ul><p></p> <p>Pavadinimams, kuriuose yra tarpo simbolių, naudokite kabutes. Šabloną <code>\"Program Files\"</code> atitiks tokie failai ir aplankai, kurių pavadinimai yra <code>Program Files</code>.</p> <p>Pavyzdžiai:<ul><code><li>*.o</li><li>*.h *.c??</li><li>*.cpp *.h | *.moc.cpp</li> <li>* | CVS/ .svn/</li></code></ul> <b>Dėmesio</b>:šablonas '<code>tekstas</code>' yra toks pat, kaip ir '<code>*tekstas*</code>'.</p>" #: Synchronizer/synchronizergui.cpp:1193 #: Synchronizer/synchronizergui.cpp~:1193 @@ -840,7 +825,7 @@ #: Synchronizer/synchronizergui.cpp:1219 #: Synchronizer/synchronizergui.cpp~:1219 msgid "Compare duplicated files with same size by content." -msgstr "Tokio pačio dydžio bylas tuo pačiu vardu palyginti pagal turinį." +msgstr "Tokio pačio dydžio failus tuo pačiu vardu lyginti pagal turinį." #: Synchronizer/synchronizergui.cpp:1220 #: Synchronizer/synchronizergui.cpp~:1220 @@ -849,12 +834,8 @@ #: Synchronizer/synchronizergui.cpp:1223 #: Synchronizer/synchronizergui.cpp~:1223 -msgid "" -"<p>Ignore date information during the compare process.</p><p><b>Note</b>: " -"useful if the files are located on network filesystems or in archives.</p>" -msgstr "" -"<p>Palyginimo metu ignoruoti bylų datas.</p><p> <b>Dėmesio</b>: naudinga tik " -"tuomet, jei bylos yra nutolusiame tinkle arba supakuotose bylose.</p>" +msgid "<p>Ignore date information during the compare process.</p><p><b>Note</b>: useful if the files are located on network filesystems or in archives.</p>" +msgstr "<p>Palyginimo metu ignoruoti failų datas.</p><p> <b>Dėmesio</b>: naudinga tik tuomet, jei failai yra tinklo failų sistemose arba archyvuose.</p>" #: Synchronizer/synchronizergui.cpp:1224 #: Synchronizer/synchronizergui.cpp~:1224 @@ -863,16 +844,8 @@ #: Synchronizer/synchronizergui.cpp:1227 #: Synchronizer/synchronizergui.cpp~:1227 -msgid "" -"<p><b>Asymmetric mode</b></p><p>The left side is the destination, the right " -"is the source directory. Files existing only in the left directory will be " -"deleted, the other differing ones will be copied from right to left.</" -"p><p><b>Note</b>: useful when updating a directory from a file server.</p>" -msgstr "" -"<p><b>Asimetriška veiksena</b></p><p>Kairė pusė yra paskirties pusė, dešinė " -"– pradinė pusė. Bylos, easančios tik kairėje pusėje bus pašalintos, " -"besiskiriančios bylos bus pakeistos bylomis iš dešinės pusės.</p><p> " -"<b>Dėmesio</b>: naudinga atnaujinant bylas iš bylų serverio.</p>" +msgid "<p><b>Asymmetric mode</b></p><p>The left side is the destination, the right is the source directory. Files existing only in the left directory will be deleted, the other differing ones will be copied from right to left.</p><p><b>Note</b>: useful when updating a directory from a file server.</p>" +msgstr "<p><b>Asimetriška veiksena</b></p><p>Kairė pusė yra paskirties pusė, dešinė – pradinė pusė. Failai, esantys tik kairėje pusėje bus pašalinti, kiti besiskiriantys failai bus pakeisti failais iš dešinės pusės.</p><p> <b>Dėmesio</b>: naudinga atnaujinant failus iš failų serverio.</p>" #: Synchronizer/synchronizergui.cpp:1228 #: Synchronizer/synchronizergui.cpp~:1228 @@ -881,12 +854,8 @@ #: Synchronizer/synchronizergui.cpp:1231 #: Synchronizer/synchronizergui.cpp~:1231 -msgid "" -"<p>Case insensitive filename compare.</p><p><b>Note</b>: useful when " -"synchronizing Windows filesystems.</p>" -msgstr "" -"<p>Lyginant bylas nekreipti dėmesio į bylos pavadinimo raidžių dydį.</p><p> " -"<b>Dėmesio</b>: naudinga sinchronizuojant bylas su Windows kompiuteriais.</p>" +msgid "<p>Case insensitive filename compare.</p><p><b>Note</b>: useful when synchronizing Windows filesystems.</p>" +msgstr "<p>Lyginant failus nekreipti dėmesio į failo pavadinimo raidžių dydį.</p><p> <b>Dėmesio</b>: naudinga sinchronizuojant failus su Windows kompiuteriais.</p>" #: Synchronizer/synchronizergui.cpp:1238 #: Synchronizer/synchronizergui.cpp~:1238 @@ -896,27 +865,27 @@ #: Synchronizer/synchronizergui.cpp:1257 #: Synchronizer/synchronizergui.cpp~:1257 msgid "Show files marked to <i>Copy from left to right</i> (CTRL+L)." -msgstr "Rodyti bylas, pažymėtas <i>Kopijuoti iš kairės į dešinę</i> (Ctrl+L)." +msgstr "Rodyti failus, pažymėtus <i>Kopijuoti iš kairės į dešinę</i> (Ctrl+L)." #: Synchronizer/synchronizergui.cpp:1267 #: Synchronizer/synchronizergui.cpp~:1267 msgid "Show files considered to be identical (CTRL+E)." -msgstr "Rodytas vienodas bylas (Ctrl+E)." +msgstr "Rodytas vienodus failus (Ctrl+E)." #: Synchronizer/synchronizergui.cpp:1277 #: Synchronizer/synchronizergui.cpp~:1277 msgid "Show excluded files (CTRL+D)." -msgstr "Rodyti išskirtas bylas (Ctrl+D)." +msgstr "Rodyti išskirtus failus (Ctrl+D)." #: Synchronizer/synchronizergui.cpp:1287 #: Synchronizer/synchronizergui.cpp~:1287 msgid "Show files marked to <i>Copy from right to left</i> (CTRL+R)." -msgstr "Rodyti bylas, pažymėtas <i>Kopijuoti iš dešinės į kairę</i> (Ctrl+R)." +msgstr "Rodyti failus, pažymėtus <i>Kopijuoti iš dešinės į kairę</i> (Ctrl+R)." #: Synchronizer/synchronizergui.cpp:1297 #: Synchronizer/synchronizergui.cpp~:1297 msgid "Show files marked to delete. (CTRL+T)" -msgstr "Rodyti bylas, pažymėtas pašalinimui (Ctrl+T)." +msgstr "Rodyti failus, pažymėtus pašalinimui (Ctrl+T)." #: Synchronizer/synchronizergui.cpp:1302 #: Synchronizer/synchronizergui.cpp~:1302 @@ -926,45 +895,57 @@ #: Synchronizer/synchronizergui.cpp:1307 #: Synchronizer/synchronizergui.cpp~:1307 msgid "Show files that exist on both sides." -msgstr "Rodyti bylas, egzistuojančias abiejose pusėse." +msgstr "Rodyti failus, egzistuojančius abiejose pusėse." #: Synchronizer/synchronizergui.cpp:1311 #: Synchronizer/synchronizergui.cpp~:1311 msgid "Singles" -msgstr "Vienos bylos" +msgstr "Vieniši failai" #: Synchronizer/synchronizergui.cpp:1316 #: Synchronizer/synchronizergui.cpp~:1316 msgid "Show files that exist on one side only." -msgstr "Rodyti bylas, kurios yra tik vienoje pusėje." +msgstr "Rodyti failus, kurie yra tik vienoje pusėje." #: Synchronizer/synchronizergui.cpp:1325 #: Synchronizer/synchronizergui.cpp~:1325 msgid "The compare results of the synchronizer (CTRL+M)." msgstr "Palyginti sinchronizavimo rezultatus (Ctrl+M)." -#: Synchronizer/synchronizergui.cpp:1334 Synchronizer/synchronizergui.cpp:1340 +#: Synchronizer/synchronizergui.cpp:1334 +#: Synchronizer/synchronizergui.cpp:1340 #: Synchronizer/synchronizergui.cpp~:1334 -#: Synchronizer/synchronizergui.cpp~:1340 Konfigurator/krresulttable.cpp:133 -#: DiskUsage/dulistview.cpp:55 DiskUsage/dulines.cpp:197 -#: MountMan/kmountmangui.cpp:125 Panel/krdetailedview.cpp:108 -#: Panel/krbriefview.cpp:156 Search/krsearchdialog.cpp:71 +#: Synchronizer/synchronizergui.cpp~:1340 +#: Konfigurator/krresulttable.cpp:133 +#: DiskUsage/dulistview.cpp:55 +#: DiskUsage/dulines.cpp:197 +#: MountMan/kmountmangui.cpp:125 +#: Panel/krdetailedview.cpp:108 +#: Panel/krbriefview.cpp:156 +#: Search/krsearchdialog.cpp:71 #: Search/krsearchdialog.cpp~:71 msgid "Name" msgstr "Pavadinimas" -#: Synchronizer/synchronizergui.cpp:1335 Synchronizer/synchronizergui.cpp:1339 +#: Synchronizer/synchronizergui.cpp:1335 +#: Synchronizer/synchronizergui.cpp:1339 #: Synchronizer/synchronizergui.cpp~:1335 -#: Synchronizer/synchronizergui.cpp~:1339 Filter/advancedfilter.cpp:63 -#: Panel/krdetailedview.cpp:111 Panel/krdetailedview.cpp:1484 -#: Search/krsearchdialog.cpp:73 Search/krsearchdialog.cpp~:73 +#: Synchronizer/synchronizergui.cpp~:1339 +#: Filter/advancedfilter.cpp:63 +#: Panel/krdetailedview.cpp:111 +#: Panel/krdetailedview.cpp:1484 +#: Search/krsearchdialog.cpp:73 +#: Search/krsearchdialog.cpp~:73 msgid "Size" msgstr "Dydis" -#: Synchronizer/synchronizergui.cpp:1336 Synchronizer/synchronizergui.cpp:1338 +#: Synchronizer/synchronizergui.cpp:1336 +#: Synchronizer/synchronizergui.cpp:1338 #: Synchronizer/synchronizergui.cpp~:1336 -#: Synchronizer/synchronizergui.cpp~:1338 DiskUsage/dulistview.cpp:60 -#: Filter/advancedfilter.cpp:115 Search/krsearchdialog.cpp:74 +#: Synchronizer/synchronizergui.cpp~:1338 +#: DiskUsage/dulistview.cpp:60 +#: Filter/advancedfilter.cpp:115 +#: Search/krsearchdialog.cpp:74 #: Search/krsearchdialog.cpp~:74 msgid "Date" msgstr "Data" @@ -994,25 +975,29 @@ msgid "Equality threshold:" msgstr "Vienodumo slenkstis:" -#: Synchronizer/synchronizergui.cpp:1420 Synchronizer/synchronizergui.cpp:1435 +#: Synchronizer/synchronizergui.cpp:1420 +#: Synchronizer/synchronizergui.cpp:1435 #: Synchronizer/synchronizergui.cpp~:1420 #: Synchronizer/synchronizergui.cpp~:1435 msgid "sec" msgstr "sek." -#: Synchronizer/synchronizergui.cpp:1421 Synchronizer/synchronizergui.cpp:1436 +#: Synchronizer/synchronizergui.cpp:1421 +#: Synchronizer/synchronizergui.cpp:1436 #: Synchronizer/synchronizergui.cpp~:1421 #: Synchronizer/synchronizergui.cpp~:1436 msgid "min" msgstr "min." -#: Synchronizer/synchronizergui.cpp:1422 Synchronizer/synchronizergui.cpp:1437 +#: Synchronizer/synchronizergui.cpp:1422 +#: Synchronizer/synchronizergui.cpp:1437 #: Synchronizer/synchronizergui.cpp~:1422 #: Synchronizer/synchronizergui.cpp~:1437 msgid "hour" msgstr "val." -#: Synchronizer/synchronizergui.cpp:1423 Synchronizer/synchronizergui.cpp:1438 +#: Synchronizer/synchronizergui.cpp:1423 +#: Synchronizer/synchronizergui.cpp:1438 #: Synchronizer/synchronizergui.cpp~:1423 #: Synchronizer/synchronizergui.cpp~:1438 msgid "day" @@ -1026,7 +1011,7 @@ #: Synchronizer/synchronizergui.cpp:1445 #: Synchronizer/synchronizergui.cpp~:1445 msgid "Ignore hidden files" -msgstr "Ignoruoti slepiamas bylas" +msgstr "Ignoruoti slepiamus failus" #: Synchronizer/synchronizergui.cpp:1459 #: Synchronizer/synchronizergui.cpp~:1459 @@ -1043,28 +1028,36 @@ msgid "Compare" msgstr "Palyginti" -#: Synchronizer/synchronizergui.cpp:1486 Synchronizer/synchronizergui.cpp:2443 +#: Synchronizer/synchronizergui.cpp:1486 +#: Synchronizer/synchronizergui.cpp:2443 #: Synchronizer/synchronizergui.cpp~:1486 #: Synchronizer/synchronizergui.cpp~:2443 msgid "Quiet" msgstr "Tyliai" -#: Synchronizer/synchronizergui.cpp:1488 Synchronizer/synchronizergui.cpp:2445 +#: Synchronizer/synchronizergui.cpp:1488 +#: Synchronizer/synchronizergui.cpp:2445 #: Synchronizer/synchronizergui.cpp~:1488 #: Synchronizer/synchronizergui.cpp~:2445 msgid "Scroll Results" msgstr "Peržiūrėti rezultatus" #: Synchronizer/synchronizergui.cpp:1492 -#: Synchronizer/synchronizergui.cpp~:1492 Locate/locate.cpp:121 -#: Locate/locate.cpp:284 Locate/locate.cpp~:121 Locate/locate.cpp~:284 -#: Search/krsearchdialog.cpp:232 Search/krsearchdialog.cpp~:233 +#: Synchronizer/synchronizergui.cpp~:1492 +#: Locate/locate.cpp:121 +#: Locate/locate.cpp:284 +#: Locate/locate.cpp~:121 +#: Locate/locate.cpp~:284 +#: Search/krsearchdialog.cpp:232 +#: Search/krsearchdialog.cpp~:233 msgid "Stop" msgstr "Stop" #: Synchronizer/synchronizergui.cpp:1497 -#: Synchronizer/synchronizergui.cpp~:1497 Locate/locate.cpp:332 -#: Locate/locate.cpp~:332 Search/krsearchdialog.cpp:221 +#: Synchronizer/synchronizergui.cpp~:1497 +#: Locate/locate.cpp:332 +#: Locate/locate.cpp~:332 +#: Search/krsearchdialog.cpp:221 #: Search/krsearchdialog.cpp~:222 msgid "Feed to listbox" msgstr "Rezultatus į atskirą langą" @@ -1075,8 +1068,10 @@ msgstr "Sinchronizuoti" #: Synchronizer/synchronizergui.cpp:1508 -#: Synchronizer/synchronizergui.cpp~:1508 Konfigurator/konfigurator.cpp:73 -#: UserAction/kraction.cpp:59 Search/krsearchdialog.cpp:236 +#: Synchronizer/synchronizergui.cpp~:1508 +#: Konfigurator/konfigurator.cpp:73 +#: UserAction/kraction.cpp:59 +#: Search/krsearchdialog.cpp:236 #: Search/krsearchdialog.cpp~:237 msgid "Close" msgstr "Uždaryti" @@ -1084,22 +1079,22 @@ #: Synchronizer/synchronizergui.cpp:1623 #: Synchronizer/synchronizergui.cpp~:1623 msgid "Selected files from targ&et directory:" -msgstr "&Paskirties aplanke pažymėtos bylos:" +msgstr "&Paskirties aplanke pažymėti failai:" #: Synchronizer/synchronizergui.cpp:1624 #: Synchronizer/synchronizergui.cpp~:1624 msgid "Selected files from sou&rce directory:" -msgstr "P&radiniame aplanke pažymėtos bylos:" +msgstr "&Pradiniame aplanke pažymėti failai:" #: Synchronizer/synchronizergui.cpp:1628 #: Synchronizer/synchronizergui.cpp~:1628 msgid "Selected files from &left directory:" -msgstr "&Kairiajame aplanke pažymėtos bylos:" +msgstr "&Kairiajame aplanke pažymėti failai:" #: Synchronizer/synchronizergui.cpp:1629 #: Synchronizer/synchronizergui.cpp~:1629 msgid "Selected files from &right directory:" -msgstr "&Dešiniajame aplanke pažymėtos bylos:" +msgstr "&Dešiniajame aplanke pažymėti failai:" #: Synchronizer/synchronizergui.cpp:1633 #: Synchronizer/synchronizergui.cpp~:1633 @@ -1164,37 +1159,37 @@ #: Synchronizer/synchronizergui.cpp:1756 #: Synchronizer/synchronizergui.cpp~:1756 msgid "V&iew left file" -msgstr "Per&žiūrėti bylą kairėje" +msgstr "Per&žiūrėti failą kairėje" #: Synchronizer/synchronizergui.cpp:1759 #: Synchronizer/synchronizergui.cpp~:1759 msgid "Vi&ew right file" -msgstr "Perži&ūrėti bylą dešinėje" +msgstr "Perži&ūrėti failą dešinėje" #: Synchronizer/synchronizergui.cpp:1762 #: Synchronizer/synchronizergui.cpp~:1762 msgid "&Compare Files" -msgstr "Pa&lyginti bylas" +msgstr "Pa&lyginti failus" #: Synchronizer/synchronizergui.cpp:1768 #: Synchronizer/synchronizergui.cpp~:1768 msgid "C&opy selected to clipboard (left)" -msgstr "Kopijuoti &kairėje pažymėtas bylas į talpyklę" +msgstr "Kopijuoti &kairėje pažymėtus objektus į talpyklę" #: Synchronizer/synchronizergui.cpp:1770 #: Synchronizer/synchronizergui.cpp~:1770 msgid "Co&py selected to clipboard (right)" -msgstr "Kopijuoti &dešinėje pažymėtas bylas į talpyklę" +msgstr "Kopijuoti &dešinėje pažymėtus objektus į talpyklę" #: Synchronizer/synchronizergui.cpp:1775 #: Synchronizer/synchronizergui.cpp~:1775 msgid "&Select items" -msgstr "&Pažymėti bylas" +msgstr "&Pažymėti objektus" #: Synchronizer/synchronizergui.cpp:1777 #: Synchronizer/synchronizergui.cpp~:1777 msgid "Deselec&t items" -msgstr "&Atžymėti bylas" +msgstr "&Atžymėti objektus" #: Synchronizer/synchronizergui.cpp:1779 #: Synchronizer/synchronizergui.cpp~:1779 @@ -1209,19 +1204,22 @@ #: Synchronizer/synchronizergui.cpp:1858 #: Synchronizer/synchronizergui.cpp~:1858 msgid "Select items" -msgstr "Pažymėti bylas" +msgstr "Pažymėti objektus" #: Synchronizer/synchronizergui.cpp:1859 #: Synchronizer/synchronizergui.cpp~:1859 msgid "Deselect items" -msgstr "Atžymėti bylas" +msgstr "Atžymėti objektus" -#: Synchronizer/synchronizergui.cpp:2049 Synchronizer/synchronizergui.cpp:2056 -#: Synchronizer/synchronizergui.cpp:2108 Synchronizer/synchronizergui.cpp:2115 +#: Synchronizer/synchronizergui.cpp:2049 +#: Synchronizer/synchronizergui.cpp:2056 +#: Synchronizer/synchronizergui.cpp:2108 +#: Synchronizer/synchronizergui.cpp:2115 #: Synchronizer/synchronizergui.cpp~:2049 #: Synchronizer/synchronizergui.cpp~:2056 #: Synchronizer/synchronizergui.cpp~:2108 -#: Synchronizer/synchronizergui.cpp~:2115 Panel/krdetailedviewitem.cpp:79 +#: Synchronizer/synchronizergui.cpp~:2115 +#: Panel/krdetailedviewitem.cpp:79 #: Panel/krdetailedviewitem.cpp:113 msgid "<DIR>" msgstr "<Aplankas>" @@ -1233,14 +1231,11 @@ #: Synchronizer/synchronizergui.cpp:2331 #: Synchronizer/synchronizergui.cpp~:2331 -msgid "" -"The synchronizer window contains data from a previous compare. If you exit, " -"this data will be lost. Do you really want to exit?" -msgstr "" -"Sinchronizavimo lange yra anksčiau vykdyto palyginimo duomenys. Jei " -"užversite langą, duomenys dings. Ar tikrai norite užverti?" +msgid "The synchronizer window contains data from a previous compare. If you exit, this data will be lost. Do you really want to exit?" +msgstr "Sinchronizavimo lange yra anksčiau vykdyto palyginimo duomenys. Jei užversite langą, duomenys dings. Ar tikrai norite užverti?" -#: Synchronizer/synchronizertask.cpp:134 Synchronizer/synchronizertask.cpp:141 +#: Synchronizer/synchronizertask.cpp:134 +#: Synchronizer/synchronizertask.cpp:141 #, qt-format msgid "Error at opening %1!" msgstr "Atveriant %1 įvyko klaida!" @@ -1248,14 +1243,15 @@ #: Synchronizer/synchronizertask.cpp:302 #, qt-format msgid "IO error at comparing file %1 with %2!" -msgstr "Palyginant bylą %1 su byla %2 įvyko skaitymo/rašymo klaida!" +msgstr "Palyginant failą %1 su failu %2 įvyko Į/I klaida!" #: Synchronizer/synchronizertask.cpp:338 #, qt-format msgid "Comparing file %1 (%2)..." -msgstr "Lyginama byla %1 (%2)..." +msgstr "Lyginamas failas %1 (%2)..." -#: Synchronizer/synchronizerdirlist.cpp:120 VFS/normal_vfs.cpp:101 +#: Synchronizer/synchronizerdirlist.cpp:120 +#: VFS/normal_vfs.cpp:101 #, qt-format msgid "Can't open the %1 directory!" msgstr "Nepavyko atverti aplanko %1!" @@ -1268,11 +1264,12 @@ #, qt-format msgid "Right to left: Copy 1 file" msgid_plural "Right to left: Copy %1 files" -msgstr[0] "Iš dešinės į kairę: kopijuoti %1 bylą" -msgstr[1] "Iš dešinės į kairę: kopijuoti %1 bylas" -msgstr[2] "Iš dešinės į kairę: kopijuoti %1 bylų" +msgstr[0] "Iš dešinės į kairę: kopijuoti %1 failą" +msgstr[1] "Iš dešinės į kairę: kopijuoti %1 failus" +msgstr[2] "Iš dešinės į kairę: kopijuoti %1 failų" -#: Synchronizer/synchronizedialog.cpp:58 Synchronizer/synchronizedialog.cpp:71 +#: Synchronizer/synchronizedialog.cpp:58 +#: Synchronizer/synchronizedialog.cpp:71 #: Synchronizer/synchronizedialog.cpp:84 #, qt-format msgid "(1 byte)" @@ -1281,30 +1278,31 @@ msgstr[1] "(%1 baitai)" msgstr[2] "(%1 baitų)" -#: Synchronizer/synchronizedialog.cpp:64 Synchronizer/synchronizedialog.cpp:77 +#: Synchronizer/synchronizedialog.cpp:64 +#: Synchronizer/synchronizedialog.cpp:77 #: Synchronizer/synchronizedialog.cpp:90 -#, fuzzy, qt-format +#, qt-format msgid "Ready: %2/1 file, %3/%4" msgid_plural "Ready: %2/%1 files, %3/%4" -msgstr[0] "Baigta: %2/%1 bylos, %4/%5" -msgstr[1] "Baigta: %2/%1 bylų, %4/%5" -msgstr[2] "Baigta: %2/%1 bylų, %4/%5" +msgstr[0] "Paruošta: %2/%1 failo, %4/%5" +msgstr[1] "Paruošta: %2/%1 failų, %4/%5" +msgstr[2] "Paruošta: %2/%1 failų, %4/%5" #: Synchronizer/synchronizedialog.cpp:70 #, qt-format msgid "Left to right: Copy 1 file" msgid_plural "Left to right: Copy %1 files" -msgstr[0] "Iš kairės į dešinę: kopijuoti %1 bylą" -msgstr[1] "Iš kairės į dešinę: kopijuoti %1 bylas" -msgstr[2] "Iš kairės į dešinę: kopijuoti %1 bylų" +msgstr[0] "Iš kairės į dešinę: kopijuoti %1 failą" +msgstr[1] "Iš kairės į dešinę: kopijuoti %1 failus" +msgstr[2] "Iš kairės į dešinę: kopijuoti %1 faių" #: Synchronizer/synchronizedialog.cpp:83 #, qt-format msgid "Left: Delete 1 file" msgid_plural "Left: Delete %1 files" -msgstr[0] "Kairė: pašalinti %1 bylą" -msgstr[1] "Kairė: pašalinti %1 bylas" -msgstr[2] "Kairė: pašalinti %1 bylų" +msgstr[0] "Kairė: pašalinti %1 failą" +msgstr[1] "Kairė: pašalinti %1 failus" +msgstr[2] "Kairė: pašalinti %1 failų" #: Synchronizer/synchronizedialog.cpp:108 msgid "Confirm overwrites" @@ -1318,7 +1316,8 @@ msgid "&Pause" msgstr "&Pristabdyti" -#: Synchronizer/synchronizedialog.cpp:126 MountMan/kmountmangui.cpp:72 +#: Synchronizer/synchronizedialog.cpp:126 +#: MountMan/kmountmangui.cpp:72 msgid "&Close" msgstr "&Uždaryti" @@ -1327,14 +1326,16 @@ #: Synchronizer/synchronizedialog.cpp:175 #, qt-format msgid "\tReady: %1/%2 files, %3/%4" -msgstr "\tParuošta: %1/%2 bylos, %3/%4" +msgstr "\tParuošta: %1/%2 failų, %3/%4" -#: Synchronizer/synchronizedialog.cpp:197 Synchronizer/synchronizer.cpp:1365 +#: Synchronizer/synchronizedialog.cpp:197 +#: Synchronizer/synchronizer.cpp:1365 #: Synchronizer/synchronizer.cpp:1378 msgid "Pause" msgstr "Pristabdyti" -#: Synchronizer/synchronizedialog.cpp:205 Synchronizer/synchronizer.cpp:1380 +#: Synchronizer/synchronizedialog.cpp:205 +#: Synchronizer/synchronizer.cpp:1380 msgid "Resume" msgstr "Pratęsti" @@ -1350,11 +1351,13 @@ msgid "Synchronize results" msgstr "Sinchronizuoti rezultatus" -#: Synchronizer/feedtolistboxdialog.cpp:121 Locate/locate.cpp:633 -#: Locate/locate.cpp~:632 Search/krsearchdialog.cpp:632 +#: Synchronizer/feedtolistboxdialog.cpp:121 +#: Locate/locate.cpp:633 +#: Locate/locate.cpp~:632 +#: Search/krsearchdialog.cpp:632 #: Search/krsearchdialog.cpp~:633 msgid "Here you can name the file collection" -msgstr "Šiam bylų sąrašui galite suteikti pavadinimą" +msgstr "Čia galite pavadinti failų rinkinį" #: Synchronizer/feedtolistboxdialog.cpp:132 msgid "Side to feed:" @@ -1374,36 +1377,39 @@ #: Synchronizer/feedtolistboxdialog.cpp:157 msgid "Selected files only" -msgstr "Tik pažymėtas bylas" +msgstr "Tik pažymėtus failus" #: Synchronizer/feedtolistboxdialog.cpp:208 #, qt-format msgid "Cannot open %1!" msgstr "Nepavyko atverti %1!" -#: Synchronizer/synchronizer.cpp:175 Synchronizer/synchronizer.cpp:670 +#: Synchronizer/synchronizer.cpp:175 +#: Synchronizer/synchronizer.cpp:670 #, qt-format msgid "Number of files: %1" -msgstr "Bylų skaičius: %1" +msgstr "Failų skaičius: %1" #: Synchronizer/synchronizer.cpp:206 #, qt-format msgid "Number of compared directories: %1" msgstr "Palygintų aplankų skaičius: %1" -#: Synchronizer/synchronizer.cpp:1172 Synchronizer/synchronizer.cpp:1185 +#: Synchronizer/synchronizer.cpp:1172 +#: Synchronizer/synchronizer.cpp:1185 msgid "File Already Exists" -msgstr "Byla jau yra" +msgstr "Failas jau yra" -#: Synchronizer/synchronizer.cpp:1230 Synchronizer/synchronizer.cpp:1234 +#: Synchronizer/synchronizer.cpp:1230 +#: Synchronizer/synchronizer.cpp:1234 #, qt-format msgid "Error at copying file %1 to %2!" -msgstr "Kopijuojant bylą %1 į %2 įvyko klaida!" +msgstr "Kopijuojant failą %1 į %2 įvyko klaida!" #: Synchronizer/synchronizer.cpp:1238 #, qt-format msgid "Error at deleting file %1!" -msgstr "Šalinant bylą %1 įvyko klaida!" +msgstr "Šalinant failą %1 įvyko klaida!" #: Synchronizer/synchronizer.cpp:1416 msgid "Krusader::Synchronizer" @@ -1413,20 +1419,24 @@ msgid "Feeding the URLs to Kget" msgstr "URL pateikiami KGet" -#: Synchronizer/synchronizer.cpp:1466 krslots.cpp:117 krslots.cpp:188 -#: krslots.cpp:443 krslots.cpp:481 krslots.cpp:499 -#, fuzzy, qt-format +#: Synchronizer/synchronizer.cpp:1466 +#: krslots.cpp:117 +#: krslots.cpp:188 +#: krslots.cpp:443 +#: krslots.cpp:481 +#: krslots.cpp:499 +#, qt-format msgid "Error executing %1!" -msgstr "Klaida vykdant" +msgstr "Klaida vykdant %1!" #: Splitter/combiner.cpp:63 msgid "Krusader::Combining..." -msgstr "Krusader::Byla sujungiama..." +msgstr "Krusader::Sujungiama..." #: Splitter/combiner.cpp:64 #, qt-format msgid "Combining the file %1..." -msgstr "Sujungiama byla %1..." +msgstr "Sujungiamas failas %1..." #: Splitter/combiner.cpp:74 #, qt-format @@ -1434,51 +1444,49 @@ "The CRC information file (%1) is missing!\n" "Validity checking is impossible without it. Continue combining?" msgstr "" -"Trūksta bylos %1 CRC informacijos!\n" -"Nepavyks patikrinti sujungtos bylos kokybės. Ar vistiek sujungti?" +"Trūksta CRC informacijos failo (%1)!\n" +"Be jos sujungto failo patikrinimas neįmanomas. Tęsti sujungimą?" #: Splitter/combiner.cpp:112 #, qt-format msgid "Error at reading the CRC file (%1)!" -msgstr "Įvyko klaida skaitant bylos %1 CRC!" +msgstr "Įvyko klaida skaitant CRC failą (%1)!" #: Splitter/combiner.cpp:146 msgid "Not a valid CRC file!" -msgstr "Tai ne CRC byla!" +msgstr "Tai ne CRC failas!" #: Splitter/combiner.cpp:154 -msgid "" -"Validity checking is impossible without a good CRC file. Continue combining?" -msgstr "" -"Nepavyks patikrinti sujungtos bylos kokybės, nes trūksta CRC bylos. Ar " -"vistiek sujungti?" +msgid "Validity checking is impossible without a good CRC file. Continue combining?" +msgstr "Vientisumo patikrinimas neįmanomas be gero CRC failo. Tęsti sujungimą?" #: Splitter/combiner.cpp:258 #, qt-format msgid "Can't open the first split file of %1!" -msgstr "Nepavyko atverti pirmos suskaidytos bylos %1!" +msgstr "Nepavyko atverti pirmos suskaidyto failo %1 dalies!" #: Splitter/combiner.cpp:270 msgid "Incorrect filesize! The file might have been corrupted!" -msgstr "Neteisingas bylos dydis! Byla tikriausiai sugadinta!" +msgstr "Neteisingas failo dydis! Failas tikriausiai sugadintas!" #: Splitter/combiner.cpp:272 msgid "Incorrect CRC checksum! The file might have been corrupted!" -msgstr "Neteisinga CRC suma! Byla tikriausiai sugadinta!" +msgstr "Neteisinga CRC kontrolinė suma! Failas tikriausiai sugadinta!" -#: Splitter/combiner.cpp:298 Splitter/splitter.cpp:203 +#: Splitter/combiner.cpp:298 +#: Splitter/splitter.cpp:203 #, qt-format msgid "Error writing file %1!" -msgstr "Klaida įrašant bylą %1!" +msgstr "Klaida rašant į failą %1!" #: Splitter/splitter.cpp:71 msgid "Krusader::Splitting..." -msgstr "Krusader::Byla skaidoma..." +msgstr "Krusader::Skaidoma..." #: Splitter/splitter.cpp:72 #, qt-format msgid "Splitting the file %1..." -msgstr "Skaidoma byla %1..." +msgstr "Skaidomas failas %1..." #: Splitter/splitter.cpp:76 msgid "Can't split a directory!" @@ -1487,12 +1495,12 @@ #: Splitter/splitter.cpp:127 #, qt-format msgid "Error reading file %1!" -msgstr "Klaida skaitant bylą %1!" +msgstr "Klaida skaitant failą %1!" #: Splitter/splitter.cpp:246 #, qt-format msgid "Error at writing file %1!" -msgstr "Klaida įrašant bylą %1!" +msgstr "Klaida rašant į failą %1!" #: Splitter/splittergui.cpp:44 msgid "1.44 MB (3.5\")" @@ -1529,7 +1537,7 @@ #: Splitter/splittergui.cpp:66 #, qt-format msgid "Split the file %1 to directory:" -msgstr "Byla %1 suskaidoma į aplanką:" +msgstr "Suskaidyti failą %1 į aplanką:" #: Splitter/splittergui.cpp:82 msgid "User Defined" @@ -1537,7 +1545,7 @@ #: Splitter/splittergui.cpp:91 msgid "Max file size:" -msgstr "Byla ne didesnė už:" +msgstr "Maks. failo dydis:" #: Splitter/splittergui.cpp:100 msgid "Byte" @@ -1561,7 +1569,7 @@ #: Splitter/splittergui.cpp:131 msgid "Krusader::Splitter" -msgstr "Krusader::Bylos skaidymas" +msgstr "Krusader::Skaidytojas" #: Splitter/splittergui.cpp:207 msgid "The directory path URL is malformed!" @@ -1571,7 +1579,8 @@ msgid "Custom color" msgstr "Parinkta spalva" -#: Konfigurator/konfiguratoritems.cpp:546 GUI/krremoteencodingmenu.cpp:132 +#: Konfigurator/konfiguratoritems.cpp:546 +#: GUI/krremoteencodingmenu.cpp:132 msgid "Default" msgstr "Numatyta" @@ -1645,14 +1654,14 @@ #: Konfigurator/krresulttable.cpp:125 msgid "unarj not found, but arj found, which will be used for unpacking" -msgstr "" -"nepavyko rasti unarj, bet surasta arj, todėl arj bus naudojama išpakavimui" +msgstr "nepavyko rasti unarj, bet surasta arj, todėl arj bus naudojama išpakavimui" #: Konfigurator/krresulttable.cpp:131 msgid "rpm found, but cpio not found which is required for unpacking" msgstr "rasta rpm, bet nepavyko rasti cpio, kuris yra būtinas išpakavimui" -#: Konfigurator/krresulttable.cpp:134 Konfigurator/krresulttable.cpp:287 +#: Konfigurator/krresulttable.cpp:134 +#: Konfigurator/krresulttable.cpp:287 msgid "Found" msgstr "Rasta" @@ -1668,12 +1677,14 @@ msgid "Note" msgstr "Dėmesio" -#: Konfigurator/krresulttable.cpp:200 Konfigurator/krresulttable.cpp:214 +#: Konfigurator/krresulttable.cpp:200 +#: Konfigurator/krresulttable.cpp:214 #: Konfigurator/krresulttable.cpp:367 msgid "enabled" msgstr "įjungta" -#: Konfigurator/krresulttable.cpp:203 Konfigurator/krresulttable.cpp:217 +#: Konfigurator/krresulttable.cpp:203 +#: Konfigurator/krresulttable.cpp:217 #: Konfigurator/krresulttable.cpp:370 msgid "disabled" msgstr "išjungta" @@ -1688,14 +1699,16 @@ #: Konfigurator/krresulttable.cpp:282 msgid "batch renamer" -msgstr "daugelio bylų pervadinimas" +msgstr "daugelio failų pervadinimas" #: Konfigurator/krresulttable.cpp:283 msgid "checksum utility" msgstr "kontrolinių sumų įrankiai" -#: Konfigurator/krresulttable.cpp:285 DiskUsage/dulistview.cpp:63 -#: Panel/krdetailedview.cpp:116 Panel/krdetailedview.cpp:1509 +#: Konfigurator/krresulttable.cpp:285 +#: DiskUsage/dulistview.cpp:63 +#: Panel/krdetailedview.cpp:116 +#: Panel/krdetailedview.cpp:1509 msgid "Group" msgstr "Grupė" @@ -1707,10 +1720,14 @@ msgid "Status" msgstr "Būsena" -#: Konfigurator/kgcolors.cpp:53 Konfigurator/kgstartup.cpp:48 -#: Konfigurator/kgadvanced.cpp:48 Konfigurator/kgdependencies.cpp:58 -#: Konfigurator/konfigurator.cpp:107 Konfigurator/kglookfeel.cpp:264 -#: Konfigurator/kgarchives.cpp:51 Konfigurator/kggeneral.cpp:56 +#: Konfigurator/kgcolors.cpp:53 +#: Konfigurator/kgstartup.cpp:48 +#: Konfigurator/kgadvanced.cpp:48 +#: Konfigurator/kgdependencies.cpp:58 +#: Konfigurator/konfigurator.cpp:107 +#: Konfigurator/kglookfeel.cpp:264 +#: Konfigurator/kgarchives.cpp:51 +#: Konfigurator/kggeneral.cpp:56 msgid "General" msgstr "Bendra" @@ -1719,53 +1736,35 @@ msgstr "Naudoti numatytas KDE spalvas" #: Konfigurator/kgcolors.cpp:61 -msgid "" -"<p>Use KDE's global color configuration.</p><p><i>KDE Control Center -> " -"Appearance & Themes -> Colors</i></p>" -msgstr "" -"<p>Naudoti numatytas KDE parinktis.</p><p> <i>KDE valdymo centras –> " -"Išvaizda ir temos –> Spalvos</i></p>" +msgid "<p>Use KDE's global color configuration.</p><p><i>KDE Control Center -> Appearance & Themes -> Colors</i></p>" +msgstr "<p>Naudoti numatytas KDE parinktis.</p><p> <i>KDE valdymo centras –> Išvaizda ir temos –> Spalvos</i></p>" #: Konfigurator/kgcolors.cpp:62 msgid "Use alternate background color" msgstr "Naudoti besikaitaliojančią fono spalvą" #: Konfigurator/kgcolors.cpp:62 -msgid "" -"<p>The <b>background color</b> and the <b>alternate background</b> color " -"alternates line by line.</p><p>When you don't use the <i>KDE default colors</" -"i>, you can configure the alternate colors in the <i>colors</i> box.</p>" -msgstr "" -"<p><b>Fono spalva</b> ir <b>Kita fono spalva</b> bylų sąraše keičiasi viena " -"po kitos.</p><p> Jei nenaudojate <i>numatytų KDE spalvų</i>, galite parinkti " -"besikaitaliojančias spalvas <i>spalvų derinimo lange</i>.</p>" +msgid "<p>The <b>background color</b> and the <b>alternate background</b> color alternates line by line.</p><p>When you don't use the <i>KDE default colors</i>, you can configure the alternate colors in the <i>colors</i> box.</p>" +msgstr "<p><b>Fono spalva</b> ir <b>kita fono spalva</b> keičiasi kas eilutę.</p><p> Jei nenaudojate <i>numatytų KDE spalvų</i>, galite parinkti besikaitaliojančias spalvas <i>spalvų derinimo lange</i>.</p>" #: Konfigurator/kgcolors.cpp:63 msgid "Show current item even if not focused" msgstr "Rodyti dabartinį objektą net jei aktyvus kitas langas" #: Konfigurator/kgcolors.cpp:63 -msgid "" -"<p>Shows the last cursor position in the non active list panel.</p><p>This " -"option is only available when you don't use the <i>KDE default colors</i>.</" -"p>" -msgstr "" -"<p>Rodyti žymeklio vietą neaktyviame lange.</p> <p> Ši parinktis galima tik " -"nenaudojant <i>KDE numatytų spalvų</i>.</p>" +msgid "<p>Shows the last cursor position in the non active list panel.</p><p>This option is only available when you don't use the <i>KDE default colors</i>.</p>" +msgstr "<p>Rodyti žymeklio vietą neaktyviame lange.</p> <p> Ši parinktis galima tik nenaudojant <i>KDE numatytų spalvų</i>.</p>" #: Konfigurator/kgcolors.cpp:64 msgid "Dim the colors of the inactive panel" msgstr "Pritemdyti neaktyvaus lango spalvas" #: Konfigurator/kgcolors.cpp:64 -msgid "" -"<p>The colors of the inactive panel are calculated by a dim color and a dim " -"factor.</p>" -msgstr "" -"<p>Neaktyvaus lango spalvos bus apskaičiuotos pagal pritemdymo spalvą ir " -"pritemdymo rodiklį.</p>" +msgid "<p>The colors of the inactive panel are calculated by a dim color and a dim factor.</p>" +msgstr "<p>Neaktyvaus lango spalvos bus apskaičiuotos pagal pritemdymo spalvą ir pritemdymo rodiklį.</p>" -#: Konfigurator/kgcolors.cpp:82 Konfigurator/kgcolors.cpp:224 +#: Konfigurator/kgcolors.cpp:82 +#: Konfigurator/kgcolors.cpp:224 #: Konfigurator/konfigurator.cpp:105 msgid "Colors" msgstr "Spalvos" @@ -1778,82 +1777,102 @@ msgid "Transparent" msgstr "Permatomas" -#: Konfigurator/kgcolors.cpp:100 Konfigurator/kgcolors.cpp:135 +#: Konfigurator/kgcolors.cpp:100 +#: Konfigurator/kgcolors.cpp:135 msgid "Foreground:" msgstr "Spalva:" -#: Konfigurator/kgcolors.cpp:101 Konfigurator/kgcolors.cpp:137 +#: Konfigurator/kgcolors.cpp:101 +#: Konfigurator/kgcolors.cpp:137 msgid "Directory foreground:" msgstr "Aplankas:" -#: Konfigurator/kgcolors.cpp:101 Konfigurator/kgcolors.cpp:102 -#: Konfigurator/kgcolors.cpp:103 Konfigurator/kgcolors.cpp:104 +#: Konfigurator/kgcolors.cpp:101 +#: Konfigurator/kgcolors.cpp:102 +#: Konfigurator/kgcolors.cpp:103 +#: Konfigurator/kgcolors.cpp:104 #: Konfigurator/kgcolors.cpp:136 msg... [truncated message content] |
From: <des...@us...> - 2008-09-15 20:05:45
|
Revision: 6080 http://krusader.svn.sourceforge.net/krusader/?rev=6080&view=rev Author: deschler Date: 2008-09-15 20:05:47 +0000 (Mon, 15 Sep 2008) Log Message: ----------- i18n string fixes (patch by Andrius ?\197?\160tikonas) Modified Paths: -------------- trunk/krusader_kde4/krusader/MountMan/kmountman.cpp trunk/krusader_kde4/krusader/Synchronizer/synchronizergui.cpp Modified: trunk/krusader_kde4/krusader/MountMan/kmountman.cpp =================================================================== --- trunk/krusader_kde4/krusader/MountMan/kmountman.cpp 2008-09-14 20:57:43 UTC (rev 6079) +++ trunk/krusader_kde4/krusader/MountMan/kmountman.cpp 2008-09-15 20:05:47 UTC (rev 6080) @@ -200,7 +200,7 @@ proc.waitForFinished(-1); // -1 msec blocks without timeout if ( proc.exitStatus() != QProcess::NormalExit || proc.exitStatus() != 0 ) // if we failed with eject KMessageBox::information( 0, //parent - i18n( "<qt>Error ejecting device!\n You have to configure the path to the 'eject' tool." + i18n( "<qt>Error ejecting device!\n You have to configure the path to the 'eject' tool. " "Please check the <b>Dependencies</b> page in Krusader's settings.</qt>"), i18n( "Error" ), // caption "CantExecuteEjectWarning" ); // don't-show-again config-key Modified: trunk/krusader_kde4/krusader/Synchronizer/synchronizergui.cpp =================================================================== --- trunk/krusader_kde4/krusader/Synchronizer/synchronizergui.cpp 2008-09-14 20:57:43 UTC (rev 6079) +++ trunk/krusader_kde4/krusader/Synchronizer/synchronizergui.cpp 2008-09-15 20:05:47 UTC (rev 6080) @@ -1294,7 +1294,7 @@ btnDeletable->setCheckable( true ); btnDeletable->setChecked( group.readEntry( "Deletable Button", _BtnDeletable ) ); btnDeletable->setShortcut( Qt::CTRL + Qt::Key_T ); - btnDeletable->setWhatsThis( i18n( "Show files marked to delete. (CTRL+T)" ) ); + btnDeletable->setWhatsThis( i18n( "Show files marked to delete (CTRL+T)." ) ); btnDeletable->setFixedSize( showDeletable.width() + 15, showDeletable.height() + 15 ); showOptionsLayout->addWidget( btnDeletable, 0, 4); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-09-14 20:57:34
|
Revision: 6079 http://krusader.svn.sourceforge.net/krusader/?rev=6079&view=rev Author: ckarai Date: 2008-09-14 20:57:43 +0000 (Sun, 14 Sep 2008) Log Message: ----------- bugfixes Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/Search/krsearchdialog.cpp trunk/krusader_kde4/krusader/VFS/CMakeLists.txt trunk/krusader_kde4/krusader/VFS/vfs.cpp trunk/krusader_kde4/krusader/krusader.h Added Paths: ----------- trunk/krusader_kde4/krusader/VFS/kiojobwrapper.cpp trunk/krusader_kde4/krusader/VFS/kiojobwrapper.h Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-09-04 23:21:55 UTC (rev 6078) +++ trunk/krusader_kde4/ChangeLog 2008-09-14 20:57:43 UTC (rev 6079) @@ -9,6 +9,8 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: calc space doesn't work on remote file systems + FIXED: searcher doesn't start because of corrupt config files FIXED: Konfigurator doesn't detect every mimetype for "zip" files FIXED: Konfigurator keeps its original size FIXED: Konfigurator has scrollbars if necessary. Modified: trunk/krusader_kde4/krusader/Search/krsearchdialog.cpp =================================================================== --- trunk/krusader_kde4/krusader/Search/krsearchdialog.cpp 2008-09-04 23:21:55 UTC (rev 6078) +++ trunk/krusader_kde4/krusader/Search/krsearchdialog.cpp 2008-09-14 20:57:43 UTC (rev 6079) @@ -331,11 +331,11 @@ setTabOrder( searcherTabs, resultsList ); KConfigGroup group( krConfig, "Search" ); - int sx = group.readEntry( "Window Width", -1 ); - int sy = group.readEntry( "Window Height", -1 ); + sizeX = group.readEntry( "Window Width", -1 ); + sizeY = group.readEntry( "Window Height", -1 ); - if( sx != -1 && sy != -1 ) - resize( sx, sy ); + if( sizeX != -1 && sizeY != -1 ) + resize( sizeX, sizeY ); if( group.readEntry( "Window Maximized", false ) ) showMaximized(); Modified: trunk/krusader_kde4/krusader/VFS/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/VFS/CMakeLists.txt 2008-09-04 23:21:55 UTC (rev 6078) +++ trunk/krusader_kde4/krusader/VFS/CMakeLists.txt 2008-09-14 20:57:43 UTC (rev 6079) @@ -16,6 +16,7 @@ virtualcopyjob.cpp ftp_vfs.cpp krquery.cpp + kiojobwrapper.cpp preserveattrcopyjob.cpp ) kde4_add_library(VFS STATIC ${VFS_SRCS} ) Added: trunk/krusader_kde4/krusader/VFS/kiojobwrapper.cpp =================================================================== --- trunk/krusader_kde4/krusader/VFS/kiojobwrapper.cpp (rev 0) +++ trunk/krusader_kde4/krusader/VFS/kiojobwrapper.cpp 2008-09-14 20:57:43 UTC (rev 6079) @@ -0,0 +1,100 @@ +/*************************************************************************** + kiojobwrapper.cpp + ------------------- + copyright : (C) 2008+ by Csaba Karai + email : kru...@us... + web site : http://krusader.sourceforge.net + --------------------------------------------------------------------------- + Description + *************************************************************************** + + A + + db dD d8888b. db db .d8888. .d8b. d8888b. d88888b d8888b. + 88 ,8P' 88 `8D 88 88 88' YP d8' `8b 88 `8D 88' 88 `8D + 88,8P 88oobY' 88 88 `8bo. 88ooo88 88 88 88ooooo 88oobY' + 88`8b 88`8b 88 88 `Y8b. 88~~~88 88 88 88~~~~~ 88`8b + 88 `88. 88 `88. 88b d88 db 8D 88 88 88 .8D 88. 88 `88. + YP YD 88 YD ~Y8888P' `8888Y' YP YP Y8888D' Y88888P 88 YD + + S o u r c e F i l e + + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "kiojobwrapper.h" +#include <qevent.h> +#include <kurl.h> +#include <kio/global.h> +#include <kio/jobclasses.h> +#include <kio/directorysizejob.h> +#include <kio/job.h> +#include <qapplication.h> +#include <iostream> + +class JobStartEvent : public QEvent { +public: + JobStartEvent( KIOJobWrapper * wrapperIn ) : QEvent( QEvent::User ), + m_wrapper( wrapperIn ) {} + virtual ~JobStartEvent() { delete m_wrapper; } + + KIOJobWrapper * wrapper() { return m_wrapper; } +private: + KIOJobWrapper * m_wrapper; +}; + +KrJobStarter * KrJobStarter::m_self = 0; + +bool KrJobStarter::event( QEvent * e ) { + if( e->type() == QEvent::User ) { + JobStartEvent *je = (JobStartEvent *)e; + je->wrapper()->createJob(); + return true; + } + return QObject::event( e ); +} + +void KIOJobWrapper::createJob() { + KIO::Job *job = 0; + switch( m_type ) { + case Stat: + job = KIO::stat( m_url ); + break; + case DirectorySize: + job = KIO::directorySize( m_url ); + break; + default: + fprintf( stderr, "Internal error: invalid job!\n" ); + break; + } + if( job ) { + for( int i=0; i != m_signals.count(); i++ ) + if( !m_receivers[ i ].isNull() ) + connect( job, m_signals[ i ], m_receivers[ i ], m_methods[ i ] ); + } +} + +KIOJobWrapper * KIOJobWrapper::stat( KUrl &url ) { + return new KIOJobWrapper( Stat, url ); +} + +KIOJobWrapper * KIOJobWrapper::directorySize( KUrl &url ) { + return new KIOJobWrapper( DirectorySize, url ); +} + +void KIOJobWrapper::start() { + KrJobStarter *self = KrJobStarter::self(); + QApplication::postEvent( self, new JobStartEvent( this ) ); +} + +void KIOJobWrapper::connectTo( const char * signal, const QObject * receiver, const char * method ) { + m_signals.append( signal ); + m_receivers.append( (QObject *)receiver ); + m_methods.append( method ); +} Added: trunk/krusader_kde4/krusader/VFS/kiojobwrapper.h =================================================================== --- trunk/krusader_kde4/krusader/VFS/kiojobwrapper.h (rev 0) +++ trunk/krusader_kde4/krusader/VFS/kiojobwrapper.h 2008-09-14 20:57:43 UTC (rev 6079) @@ -0,0 +1,82 @@ +/*************************************************************************** + kiojobwrapper.h + ------------------- + copyright : (C) 2008+ by Csaba Karai + email : kru...@us... + web site : http://krusader.sourceforge.net + --------------------------------------------------------------------------- + Description + *************************************************************************** + + A + + db dD d8888b. db db .d8888. .d8b. d8888b. d88888b d8888b. + 88 ,8P' 88 `8D 88 88 88' YP d8' `8b 88 `8D 88' 88 `8D + 88,8P 88oobY' 88 88 `8bo. 88ooo88 88 88 88ooooo 88oobY' + 88`8b 88`8b 88 88 `Y8b. 88~~~88 88 88 88~~~~~ 88`8b + 88 `88. 88 `88. 88b d88 db 8D 88 88 88 .8D 88. 88 `88. + YP YD 88 YD ~Y8888P' `8888Y' YP YP Y8888D' Y88888P 88 YD + + H e a d e r F i l e + + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef __KIO_JOB_WRAPPER__ +#define __KIO_JOB_WRAPPER__ + +#include <qobject.h> +#include <kurl.h> +#include <qpointer.h> + +class QEvent; +class KJob; + +enum KIOJobWrapperType { + Stat = 1, + DirectorySize = 2, +}; + +class KIOJobWrapper : public QObject { + friend class KrJobStarter; +private: + KIOJobWrapperType m_type; + KUrl m_url; + + QList<const char *> m_signals; + QList<QPointer<QObject> > m_receivers; + QList<const char *> m_methods; + + KIOJobWrapper( KIOJobWrapperType type, KUrl &url ) { + m_type = type; + m_url = url; + } + + void createJob(); + +public: + void start(); + void connectTo( const char * signal, const QObject * receiver, const char * method ); + + static KIOJobWrapper * stat( KUrl &url ); + static KIOJobWrapper * directorySize( KUrl &url ); +}; + +class KrJobStarter : public QObject { + friend class KIOJobWrapper; +public: + KrJobStarter() { m_self = this;} +protected: + bool event( QEvent * e ); + + static KrJobStarter * self() { return m_self; } + static KrJobStarter * m_self; +}; + +#endif // __KIO_JOB_WRAPPER__ Modified: trunk/krusader_kde4/krusader/VFS/vfs.cpp =================================================================== --- trunk/krusader_kde4/krusader/VFS/vfs.cpp 2008-09-04 23:21:55 UTC (rev 6078) +++ trunk/krusader_kde4/krusader/VFS/vfs.cpp 2008-09-14 20:57:43 UTC (rev 6079) @@ -43,6 +43,7 @@ #include "vfs.h" #include "../krusader.h" #include "../defaults.h" +#include "kiojobwrapper.h" vfs::vfs(QObject* panel, bool quiet): vfs_busy(false), quietMode(quiet),disableRefresh(false),postponedRefreshURL(), invalidated(true),panelConnected(false),vfs_tempFilesP(0),vfileIterator(0),deletePossible( true ), @@ -290,9 +291,11 @@ return; } else { stat_busy = true; - KIO::StatJob* statJob = KIO::stat( url, false ); - connect( statJob, SIGNAL( result( KJob* ) ), this, SLOT( slotStatResultArrived( KJob* ) ) ); + KIOJobWrapper * statJob = KIOJobWrapper::stat( url ); + statJob->connectTo( SIGNAL( result( KJob* ) ), this, SLOT( slotStatResultArrived( KJob* ) ) ); + statJob->start(); while ( !(*stop) && stat_busy ) {usleep(1000);} + if( entry.count() == 0 ) return; // statJob failed KFileItem kfi(entry, url, true ); if( kfi.isFile() || kfi.isLink() ) { @@ -302,8 +305,9 @@ } } - KIO::DirectorySizeJob* kds = KIO::directorySize( url ); - connect( kds, SIGNAL( result( KJob* ) ), this, SLOT( slotKdsResult( KJob* ) ) ); + KIOJobWrapper* kds = KIOJobWrapper::directorySize( url ); + kds->connectTo( SIGNAL( result( KJob* ) ), this, SLOT( slotKdsResult( KJob* ) ) ); + kds->start(); while ( !(*stop) ){ // we are in a sepetate thread - so sleeping is OK usleep(1000); Modified: trunk/krusader_kde4/krusader/krusader.h =================================================================== --- trunk/krusader_kde4/krusader/krusader.h 2008-09-04 23:21:55 UTC (rev 6078) +++ trunk/krusader_kde4/krusader/krusader.h 2008-09-14 20:57:43 UTC (rev 6079) @@ -49,6 +49,7 @@ #include <QResizeEvent> #include <QHideEvent> #include <kdebug.h> +#include "VFS/kiojobwrapper.h" #ifdef __KJSEMBED__ class KrJS; @@ -187,6 +188,7 @@ bool isStarting; bool isExiting; bool directExit; + KrJobStarter jobStarter; }; // main modules This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-09-04 23:21:45
|
Revision: 6078 http://krusader.svn.sourceforge.net/krusader/?rev=6078&view=rev Author: ckarai Date: 2008-09-04 23:21:55 +0000 (Thu, 04 Sep 2008) Log Message: ----------- FIXED: various konfigurator bugs Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/Konfigurator/kgprotocols.cpp trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp trunk/krusader_kde4/krusader/Konfigurator/konfigurator.h trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.cpp Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-09-02 22:02:41 UTC (rev 6077) +++ trunk/krusader_kde4/ChangeLog 2008-09-04 23:21:55 UTC (rev 6078) @@ -9,6 +9,8 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: Konfigurator doesn't detect every mimetype for "zip" files + FIXED: Konfigurator keeps its original size FIXED: Konfigurator has scrollbars if necessary. FIXED: [ 2027518 ] Does not build with -DBUILD_SHARED_LIBS:BOOL=ON (thanks to Funda Wang) Modified: trunk/krusader_kde4/krusader/Konfigurator/kgprotocols.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kgprotocols.cpp 2008-09-02 22:02:41 UTC (rev 6077) +++ trunk/krusader_kde4/krusader/Konfigurator/kgprotocols.cpp 2008-09-04 23:21:55 UTC (rev 6078) @@ -51,7 +51,7 @@ "application/x-gzip,application/x-jar," "application/x-lha,application/x-lha-compressed," "application/x-rar,application/x-rar-compressed," - "application/x-rpm,application/zip" + "application/x-rpm,application/zip," "application/x-zip,application/x-zip-compressed"; QString KgProtocols::defaultTarMimes = "application/x-tar,application/x-tarz," "application/x-compressed-tar," Modified: trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp 2008-09-02 22:02:41 UTC (rev 6077) +++ trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp 2008-09-04 23:21:55 UTC (rev 6078) @@ -57,12 +57,13 @@ #include "kgcolors.h" #include "kguseractions.h" #include "kgprotocols.h" +#include <qevent.h> Konfigurator::Konfigurator( bool f, int startPage ) : KPageDialog( (QWidget *)0 ), firstTime(f), internalCall( false ), - restartGUI( false ) + restartGUI( false ), sizeX( -1 ), sizeY( -1 ) { setButtons( KDialog::Help | KDialog::User1 | KDialog::Apply | KDialog::Cancel ); - setDefaultButton( KDialog::User1 ); + setDefaultButton( KDialog::Apply ); setWindowTitle( i18n( "Konfigurator" ) ); setButtonGuiItem( KDialog::User1, KGuiItem( i18n("Defaults") ) ); setWindowModality( Qt::WindowModal ); @@ -81,10 +82,56 @@ connect( this, SIGNAL( user1Clicked() ), this, SLOT( slotUser1() ) ); createLayout( startPage ); - resize( 900, 900 ); + + KConfigGroup group( krConfig, "Konfigurator"); + int sx = group.readEntry( "Window Width", -1 ); + int sy = group.readEntry( "Window Height", -1 ); + + if( sx != -1 && sy != -1 ) + resize( sx, sy ); + else + resize( 900, 900 ); + + if( group.readEntry( "Window Maximized", false ) ) + showMaximized(); + else + show(); + exec(); } +void Konfigurator::resizeEvent( QResizeEvent *e ) +{ + if( !isMaximized() ) + { + sizeX = e->size().width(); + sizeY = e->size().height(); + } + + KDialog::resizeEvent( e ); +} + +void Konfigurator::closeDialog() +{ + KConfigGroup group( krConfig, "Konfigurator"); + + group.writeEntry("Window Width", sizeX ); + group.writeEntry("Window Height", sizeY ); + group.writeEntry("Window Maximized", isMaximized() ); +} + +void Konfigurator::reject() +{ + closeDialog(); + KDialog::reject(); +} + +void Konfigurator::accept() +{ + closeDialog(); + KDialog::accept(); +} + void Konfigurator::newPage(KonfiguratorPage *page, const QString &name, const QString &desc, const KIcon &kicon ) { KPageWidgetItem *item = new KPageWidgetItem( page, name ); @@ -177,6 +224,7 @@ { case KMessageBox::No: currentPg->loadInitialValues(); + currentPg->apply(); break; case KMessageBox::Yes: if( currentPg->apply() ) Modified: trunk/krusader_kde4/krusader/Konfigurator/konfigurator.h =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfigurator.h 2008-09-02 22:02:41 UTC (rev 6077) +++ trunk/krusader_kde4/krusader/Konfigurator/konfigurator.h 2008-09-04 23:21:55 UTC (rev 6078) @@ -41,6 +41,8 @@ class QLineEdit; class QString; +class QResizeEvent; +class QCloseEvent; class Konfigurator : public KPageDialog { @@ -52,10 +54,16 @@ bool isGUIRestartNeeded() { return restartGUI; } + virtual void accept(); + virtual void reject(); + protected: void newPage(KonfiguratorPage *, const QString &, const QString &, const KIcon & );// adds widget and connects to slot void createLayout( int startPage ); + void closeDialog(); + virtual void resizeEvent( QResizeEvent *e ); + protected slots: void slotUser1(); void slotApply(); // actually used for defaults @@ -71,6 +79,8 @@ bool internalCall; QTimer restoreTimer; bool restartGUI; + int sizeX; + int sizeY; }; #endif Modified: trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.cpp 2008-09-02 22:02:41 UTC (rev 6077) +++ trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.cpp 2008-09-04 23:21:55 UTC (rev 6078) @@ -31,6 +31,7 @@ #include "konfiguratoritems.h" #include "../krusader.h" #include <klocale.h> +#include <klineedit.h> #include <qpainter.h> #include <qpen.h> #include <qcolordialog.h> @@ -376,7 +377,7 @@ void KonfiguratorURLRequester::loadInitialValue() { KConfigGroup group( krConfig, ext->getCfgClass() ); - setUrl( group.readEntry( ext->getCfgName(), defaultValue ) ); + lineEdit()->setText( group.readEntry( ext->getCfgName(), defaultValue ) ); ext->setChanged( false ); } @@ -388,7 +389,7 @@ void KonfiguratorURLRequester::slotSetDefaults(QObject *) { if( url() != defaultValue ) - setUrl( defaultValue ); + lineEdit()->setText( defaultValue ); } // KonfiguratorFontChooser class This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vac...@us...> - 2008-09-02 22:02:55
|
Revision: 6077 http://krusader.svn.sourceforge.net/krusader/?rev=6077&view=rev Author: vaclavjuza Date: 2008-09-02 22:02:41 +0000 (Tue, 02 Sep 2008) Log Message: ----------- ADDED: Konfigurator mouse selection mode: Possibility to select a predefined mode and change a detail. Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.cpp trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.h trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.cpp trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.h trunk/krusader_kde4/krusader/Panel/krselectionmode.cpp trunk/krusader_kde4/krusader/Panel/krselectionmode.h Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-09-01 22:51:25 UTC (rev 6076) +++ trunk/krusader_kde4/ChangeLog 2008-09-02 22:02:41 UTC (rev 6077) @@ -1,3 +1,5 @@ + ADDED: Konfigurator mouse selection mode: Possibility to select a predefined + mode and change a detail. ADDED: [ 1704953 ] highlight quick search match ADDED: Useractions: added checkbox "enabled" and run mode option "Run in embedded terminal emulator" Modified: trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.cpp 2008-09-01 22:51:25 UTC (rev 6076) +++ trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.cpp 2008-09-02 22:02:41 UTC (rev 6077) @@ -373,6 +373,9 @@ mouseCheckboxes = createCheckBoxGroup(1, 0, mouseCheckboxesParam, 11 /*count*/, mouseDetailGroup, PAGE_MOUSE); mouseDetailGrid->addWidget( mouseCheckboxes, 1, 0 ); + for ( int i = 0; i < mouseCheckboxes->count(); i++ ) + connect( mouseCheckboxes->find( i ), SIGNAL( clicked() ), SLOT( slotMouseCheckBoxChanged() ) ); + mouseLayout->addWidget( mouseDetailGroup, 1,0 ); // Disable the details-button if not in custom-mode @@ -407,20 +410,29 @@ } void KgLookFeel::slotSelectionModeChanged() { - bool enable = mouseRadio->find( i18n("Custom Selection Mode") )->isChecked(); - mouseCheckboxes->find( "QT Selection" )->setEnabled( enable ); - mouseCheckboxes->find( "Left Selects" )->setEnabled( enable ); - mouseCheckboxes->find( "Left Preserves" )->setEnabled( enable ); - mouseCheckboxes->find( "ShiftCtrl Left Selects" )->setEnabled( enable ); - mouseCheckboxes->find( "Right Selects" )->setEnabled( enable ); - mouseCheckboxes->find( "Right Preserves" )->setEnabled( enable ); - mouseCheckboxes->find( "ShiftCtrl Right Selects" )->setEnabled( enable ); - mouseCheckboxes->find( "Space Moves Down" )->setEnabled( enable ); - mouseCheckboxes->find( "Space Calc Space" )->setEnabled( enable ); - mouseCheckboxes->find( "Insert Moves Down" )->setEnabled( enable ); - mouseCheckboxes->find( "Immediate Context Menu" )->setEnabled( enable ); + KrSelectionMode *selectionMode = + KrSelectionMode::getSelectionHandlerForMode( mouseRadio->selectedIndex() ); + if ( selectionMode == NULL ) //User mode + return; + selectionMode->init(); + mouseCheckboxes->find( "QT Selection" )->setChecked( selectionMode->useQTSelection() ); + mouseCheckboxes->find( "Left Selects" )->setChecked( selectionMode->leftButtonSelects() ); + mouseCheckboxes->find( "Left Preserves" )->setChecked( selectionMode->leftButtonPreservesSelection() ); + mouseCheckboxes->find( "ShiftCtrl Left Selects" )->setChecked( selectionMode->shiftCtrlLeftButtonSelects() ); + mouseCheckboxes->find( "Right Selects" )->setChecked( selectionMode->rightButtonSelects() ); + mouseCheckboxes->find( "Right Preserves" )->setChecked( selectionMode->rightButtonPreservesSelection() ); + mouseCheckboxes->find( "ShiftCtrl Right Selects" )->setChecked( selectionMode->shiftCtrlRightButtonSelects() ); + mouseCheckboxes->find( "Space Moves Down" )->setChecked( selectionMode->spaceMovesDown() ); + mouseCheckboxes->find( "Space Calc Space" )->setChecked( selectionMode->spaceCalculatesDiskSpace() ); + mouseCheckboxes->find( "Insert Moves Down" )->setChecked( selectionMode->insertMovesDown() ); + mouseCheckboxes->find( "Immediate Context Menu" )->setChecked( selectionMode->showContextMenu() == -1 ); } +void KgLookFeel::slotMouseCheckBoxChanged() +{ + mouseRadio->selectButton( "3" ); //custom selection mode +} + int KgLookFeel::activeSubPage() { return tabWidget->currentIndex(); } Modified: trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.h =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.h 2008-09-01 22:51:25 UTC (rev 6076) +++ trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.h 2008-09-02 22:02:41 UTC (rev 6077) @@ -57,6 +57,7 @@ void slotDisable(); void slotEnablePanelToolbar(); void slotSelectionModeChanged(); + void slotMouseCheckBoxChanged(); private: void setupOperationTab(); Modified: trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.cpp 2008-09-01 22:51:25 UTC (rev 6076) +++ trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.cpp 2008-09-02 22:02:41 UTC (rev 6077) @@ -277,7 +277,7 @@ ext->setChanged( false ); } -void KonfiguratorRadioButtons::slotApply(QObject *,QString cls, QString name) +int KonfiguratorRadioButtons::selectedIndex() { int cnt = 0; @@ -288,14 +288,22 @@ if( btn->isChecked() ) { - KConfigGroup( krConfig, cls ).writeEntry( name, radioValues[ cnt ] ); - break; + return cnt; } cnt++; } + return -1; } +void KonfiguratorRadioButtons::slotApply(QObject *,QString cls, QString name) +{ + int cnt = selectedIndex(); + + if (cnt >= 0) + KConfigGroup( krConfig, cls ).writeEntry( name, radioValues[ cnt ] ); +} + void KonfiguratorRadioButtons::slotSetDefaults(QObject *) { selectButton( defaultValue ); Modified: trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.h =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.h 2008-09-01 22:51:25 UTC (rev 6076) +++ trunk/krusader_kde4/krusader/Konfigurator/konfiguratoritems.h 2008-09-02 22:02:41 UTC (rev 6077) @@ -156,6 +156,7 @@ QWidget( parent ) {}; void add( KonfiguratorCheckBox * ); + int count() { return checkBoxList.count(); }; KonfiguratorCheckBox * find( int index ); KonfiguratorCheckBox * find( QString name ); @@ -182,6 +183,7 @@ void selectButton( QString value ); int count() { return radioButtons.count(); } + int selectedIndex(); QRadioButton* find( int index ); QRadioButton* find( QString name ); Modified: trunk/krusader_kde4/krusader/Panel/krselectionmode.cpp =================================================================== --- trunk/krusader_kde4/krusader/Panel/krselectionmode.cpp 2008-09-01 22:51:25 UTC (rev 6076) +++ trunk/krusader_kde4/krusader/Panel/krselectionmode.cpp 2008-09-02 22:02:41 UTC (rev 6077) @@ -10,29 +10,36 @@ TCSelectionMode tcSelectionMode; UserSelectionMode userSelectionMode; +KrSelectionMode* KrSelectionMode::getSelectionHandlerForMode(int mode) +{ + KrSelectionMode *res = NULL; + switch (mode) { + case 0: + res = &originalSelectionMode; + break; + case 1: + res = &konqSelectionMode; + break; + case 2: + res = &tcSelectionMode; + break; + default: + break; + } + return res; +} + KrSelectionMode* KrSelectionMode::getSelectionHandler() { if (__currentSelectionMode) { // don't check krConfig every time return __currentSelectionMode; } else { // nothing yet, set the correct one - KConfigGroup group( krConfig, "Look&Feel" ); - QString mode = group.readEntry("Mouse Selection", QString("") ); - switch (mode.toInt()) { - case 0: - __currentSelectionMode = &originalSelectionMode; - break; - case 1: - __currentSelectionMode = &konqSelectionMode; - break; - case 2: - __currentSelectionMode = &tcSelectionMode; - break; - case 3: - __currentSelectionMode = &userSelectionMode; - userSelectionMode.init(); - break; - default: - break; + KConfigGroup group( krConfig, "Look&Feel" ); + QString mode = group.readEntry("Mouse Selection", QString("") ); + __currentSelectionMode = getSelectionHandlerForMode( mode.toInt() ); + if ( __currentSelectionMode == NULL ) + { + __currentSelectionMode = &userSelectionMode; } // init and return __currentSelectionMode->init(); Modified: trunk/krusader_kde4/krusader/Panel/krselectionmode.h =================================================================== --- trunk/krusader_kde4/krusader/Panel/krselectionmode.h 2008-09-01 22:51:25 UTC (rev 6076) +++ trunk/krusader_kde4/krusader/Panel/krselectionmode.h 2008-09-02 22:02:41 UTC (rev 6077) @@ -13,6 +13,7 @@ */ class KrSelectionMode { public: + static KrSelectionMode * getSelectionHandlerForMode(int mode); static KrSelectionMode * getSelectionHandler(); static void resetSelectionHandler(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vac...@us...> - 2008-09-01 22:51:15
|
Revision: 6076 http://krusader.svn.sourceforge.net/krusader/?rev=6076&view=rev Author: vaclavjuza Date: 2008-09-01 22:51:25 +0000 (Mon, 01 Sep 2008) Log Message: ----------- Konfigurator: ... but use the size of the screen if large enough Modified Paths: -------------- trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp Modified: trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp 2008-08-31 22:45:54 UTC (rev 6075) +++ trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp 2008-09-01 22:51:25 UTC (rev 6076) @@ -81,7 +81,7 @@ connect( this, SIGNAL( user1Clicked() ), this, SLOT( slotUser1() ) ); createLayout( startPage ); - setInitialSize( QSize( 1000, 700 ) ); + resize( 900, 900 ); exec(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vac...@us...> - 2008-08-31 22:45:58
|
Revision: 6075 http://krusader.svn.sourceforge.net/krusader/?rev=6075&view=rev Author: vaclavjuza Date: 2008-08-31 22:45:54 +0000 (Sun, 31 Aug 2008) Log Message: ----------- Konfigurator has scrollbars if necessary Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/Konfigurator/kgadvanced.cpp trunk/krusader_kde4/krusader/Konfigurator/kgarchives.cpp trunk/krusader_kde4/krusader/Konfigurator/kgcolors.cpp trunk/krusader_kde4/krusader/Konfigurator/kggeneral.cpp trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.cpp trunk/krusader_kde4/krusader/Konfigurator/kgstartup.cpp trunk/krusader_kde4/krusader/Konfigurator/kguseractions.cpp trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp trunk/krusader_kde4/krusader/Konfigurator/konfiguratorpage.cpp trunk/krusader_kde4/krusader/Konfigurator/konfiguratorpage.h Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/ChangeLog 2008-08-31 22:45:54 UTC (rev 6075) @@ -7,6 +7,7 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: Konfigurator has scrollbars if necessary. FIXED: [ 2027518 ] Does not build with -DBUILD_SHARED_LIBS:BOOL=ON (thanks to Funda Wang) FIXED: [ 2041732 ] Krusader 2.0.0 beta1 missing title bar under Compiz Modified: trunk/krusader_kde4/krusader/Konfigurator/kgadvanced.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kgadvanced.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/kgadvanced.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -40,12 +40,15 @@ KgAdvanced::KgAdvanced( bool first, QWidget* parent ) : KonfiguratorPage( first, parent ) { - QGridLayout *kgAdvancedLayout = new QGridLayout( this ); + QWidget *innerWidget = new QFrame( this ); + setWidget( innerWidget ); + setWidgetResizable( true ); + QGridLayout *kgAdvancedLayout = new QGridLayout( innerWidget ); kgAdvancedLayout->setSpacing( 6 ); // -------------------------- GENERAL GROUPBOX ---------------------------------- - QGroupBox *generalGrp = createFrame( i18n( "General" ), this ); + QGroupBox *generalGrp = createFrame( i18n( "General" ), innerWidget ); QGridLayout *generalGrid = createGridLayout( generalGrp ); KONFIGURATOR_CHECKBOX_PARAM generalSettings[] = @@ -71,7 +74,7 @@ // ----------------------- CONFIRMATIONS GROUPBOX ------------------------------- - QGroupBox *confirmGrp = createFrame( i18n( "Confirmations" ), this ); + QGroupBox *confirmGrp = createFrame( i18n( "Confirmations" ), innerWidget ); QGridLayout *confirmGrid = createGridLayout( confirmGrp ); addLabel( confirmGrid, 0, 0, "\n"+i18n( "Request user confirmation for the following operations:" )+"\n", @@ -95,7 +98,7 @@ // ------------------------ FINE-TUNING GROUPBOX -------------------------------- - QGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), this ); + QGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), innerWidget ); QGridLayout *fineTuneGrid = createGridLayout( fineTuneGrp ); fineTuneGrid->setAlignment( Qt::AlignLeft | Qt::AlignTop ); Modified: trunk/krusader_kde4/krusader/Konfigurator/kgarchives.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kgarchives.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/kgarchives.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -43,12 +43,15 @@ KgArchives::KgArchives( bool first, QWidget* parent ) : KonfiguratorPage( first, parent ) { - QGridLayout *kgArchivesLayout = new QGridLayout( this ); + QWidget *innerWidget = new QFrame( this ); + setWidget( innerWidget ); + setWidgetResizable( true ); + QGridLayout *kgArchivesLayout = new QGridLayout( innerWidget ); kgArchivesLayout->setSpacing( 6 ); // -------------------------- GENERAL GROUPBOX ---------------------------------- - QGroupBox *generalGrp = createFrame( i18n( "General" ), this ); + QGroupBox *generalGrp = createFrame( i18n( "General" ), innerWidget ); QGridLayout *generalGrid = createGridLayout( generalGrp ); addLabel( generalGrid, 0, 0, i18n( "Krusader transparently handles the following types of archives:" ), @@ -94,7 +97,7 @@ // ------------------------ FINE-TUNING GROUPBOX -------------------------------- - QGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), this ); + QGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), innerWidget ); QGridLayout *fineTuneGrid = createGridLayout( fineTuneGrp ); KONFIGURATOR_CHECKBOX_PARAM finetuners[] = Modified: trunk/krusader_kde4/krusader/Konfigurator/kgcolors.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kgcolors.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/kgcolors.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -45,12 +45,15 @@ KgColors::KgColors( bool first, QWidget* parent ) : KonfiguratorPage( first, parent ), offset( 0 ) { - QGridLayout *kgColorsLayout = new QGridLayout( this ); + QWidget *innerWidget = new QFrame( this ); + setWidget( innerWidget ); + setWidgetResizable( true ); + QGridLayout *kgColorsLayout = new QGridLayout( innerWidget ); kgColorsLayout->setSpacing( 6 ); // -------------------------- GENERAL GROUPBOX ---------------------------------- - QGroupBox *generalGrp = createFrame( i18n( "General" ), this ); + QGroupBox *generalGrp = createFrame( i18n( "General" ), innerWidget ); QGridLayout *generalGrid = createGridLayout( generalGrp ); generalGrid->setSpacing( 0 ); @@ -73,7 +76,7 @@ connect( generals->find( "Dim Inactive Colors" ), SIGNAL( stateChanged( int ) ), this, SLOT( slotDisable() ) ); kgColorsLayout->addWidget( generalGrp, 0 ,0, 1, 3 ); - QWidget *hboxWidget = new QWidget( this ); + QWidget *hboxWidget = new QWidget( innerWidget ); QHBoxLayout *hbox = new QHBoxLayout( hboxWidget ); // -------------------------- COLORS GROUPBOX ---------------------------------- @@ -249,14 +252,14 @@ kgColorsLayout->addWidget( hboxWidget, 1 , 0, 1, 3 ); - importBtn = new KPushButton(i18n("Import color-scheme"),this); + importBtn = new KPushButton(i18n("Import color-scheme"),innerWidget); kgColorsLayout->addWidget(importBtn,2,0); - exportBtn = new KPushButton(i18n("Export color-scheme"),this); + exportBtn = new KPushButton(i18n("Export color-scheme"),innerWidget); kgColorsLayout->addWidget(exportBtn,2,1); - kgColorsLayout->addWidget(createSpacer(this), 2,2); + kgColorsLayout->addWidget(createSpacer(innerWidget), 2,2); connect(importBtn, SIGNAL(clicked()), this, SLOT(slotImportColors())); connect(exportBtn, SIGNAL(clicked()), this, SLOT(slotExportColors())); - + slotDisable(); } Modified: trunk/krusader_kde4/krusader/Konfigurator/kggeneral.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kggeneral.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/kggeneral.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -48,12 +48,15 @@ if( first ) slotFindTools(); - QGridLayout *kgGeneralLayout = new QGridLayout( this ); + QWidget *innerWidget = new QFrame( this ); + setWidget( innerWidget ); + setWidgetResizable( true ); + QGridLayout *kgGeneralLayout = new QGridLayout( innerWidget ); kgGeneralLayout->setSpacing( 6 ); // -------------------------- GENERAL GROUPBOX ---------------------------------- - QGroupBox *generalGrp = createFrame( i18n( "General" ), this ); + QGroupBox *generalGrp = createFrame( i18n( "General" ), innerWidget ); QGridLayout *generalGrid = createGridLayout( generalGrp ); KONFIGURATOR_NAME_VALUE_TIP deleteMode[] = Modified: trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/kglookfeel.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -33,6 +33,7 @@ #include "../defaults.h" #include "../Dialogs/krdialogs.h" #include <qtabwidget.h> +#include <QFrame> #include <QGridLayout> #include <QLabel> #include <QVBoxLayout> @@ -55,10 +56,11 @@ KgLookFeel::KgLookFeel( bool first, QWidget* parent ) : KonfiguratorPage( first, parent ) { - QGridLayout *kgLookAndFeelLayout = new QGridLayout( this ); + QWidget *innerWidget = this; + QGridLayout *kgLookAndFeelLayout = new QGridLayout( innerWidget ); kgLookAndFeelLayout->setSpacing( 6 ); - tabWidget = new QTabWidget( this ); + tabWidget = new QTabWidget( innerWidget ); setupOperationTab(); setupPanelTab(); @@ -72,8 +74,12 @@ // ---------------------------- OPERATION TAB ------------------------------------- // --------------------------------------------------------------------------------------- void KgLookFeel::setupOperationTab() { - QWidget *tab = new QWidget( tabWidget ); - tabWidget->addTab( tab, i18n( "Operation" ) ); + QScrollArea *scrollArea = new QScrollArea( tabWidget ); + QWidget *tab = new QWidget( scrollArea ); + scrollArea->setFrameStyle( QFrame::NoFrame ); + scrollArea->setWidget( tab ); + scrollArea->setWidgetResizable( true ); + tabWidget->addTab( scrollArea, i18n( "Operation" ) ); QGridLayout *lookAndFeelLayout = new QGridLayout( tab ); lookAndFeelLayout->setSpacing( 6 ); @@ -120,8 +126,12 @@ // ---------------------------- PANEL TAB ------------------------------------- // ---------------------------------------------------------------------------------- void KgLookFeel::setupPanelTab() { - QWidget* tab_panel = new QWidget( tabWidget ); - tabWidget->addTab( tab_panel, i18n( "Panel" ) ); + QScrollArea *scrollArea = new QScrollArea( tabWidget ); + QWidget *tab_panel = new QWidget( scrollArea ); + scrollArea->setFrameStyle( QFrame::NoFrame ); + scrollArea->setWidget( tab_panel ); + scrollArea->setWidgetResizable( true ); + tabWidget->addTab( scrollArea, i18n( "Panel" ) ); QGridLayout *panelLayout = new QGridLayout( tab_panel ); panelLayout->setSpacing( 6 ); @@ -221,8 +231,12 @@ // -------------------------- Panel Toolbar TAB ---------------------------------- // ----------------------------------------------------------------------------------- void KgLookFeel::setupPanelToolbarTab() { - QWidget *tab_4 = new QWidget( tabWidget ); - tabWidget->addTab( tab_4, i18n( "Panel Toolbar" ) ); + QScrollArea *scrollArea = new QScrollArea( tabWidget ); + QWidget *tab_4 = new QWidget( scrollArea ); + scrollArea->setFrameStyle( QFrame::NoFrame ); + scrollArea->setWidget( tab_4 ); + scrollArea->setWidgetResizable( true ); + tabWidget->addTab( scrollArea, i18n( "Panel Toolbar" ) ); QBoxLayout * panelToolbarVLayout = new QVBoxLayout( tab_4 ); panelToolbarVLayout->setSpacing( 6 ); @@ -266,8 +280,12 @@ // -------------------------- Mouse TAB ---------------------------------- // --------------------------------------------------------------------------- void KgLookFeel::setupMouseModeTab() { - QWidget *tab_mouse = new QWidget( tabWidget ); - tabWidget->addTab( tab_mouse, i18n( "Selection Mode" ) ); + QScrollArea *scrollArea = new QScrollArea( tabWidget ); + QWidget *tab_mouse = new QWidget( scrollArea ); + scrollArea->setFrameStyle( QFrame::NoFrame ); + scrollArea->setWidget( tab_mouse ); + scrollArea->setWidgetResizable( true ); + tabWidget->addTab( scrollArea, i18n( "Selection Mode" ) ); QGridLayout *mouseLayout = new QGridLayout( tab_mouse ); mouseLayout->setSpacing( 6 ); mouseLayout->setContentsMargins( 11, 11, 11, 11 ); Modified: trunk/krusader_kde4/krusader/Konfigurator/kgstartup.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kgstartup.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/kgstartup.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -40,12 +40,15 @@ KgStartup::KgStartup( bool first, QWidget* parent ) : KonfiguratorPage( first, parent ), profileCombo( 0 ) { - QGridLayout *kgStartupLayout = new QGridLayout( this ); + QWidget *innerWidget = new QFrame( this ); + setWidget( innerWidget ); + setWidgetResizable( true ); + QGridLayout *kgStartupLayout = new QGridLayout( innerWidget ); kgStartupLayout->setSpacing( 6 ); // --------------------------- PANELS GROUPBOX ---------------------------------- - QGroupBox *panelsGrp = createFrame( i18n( "General" ), this ); + QGroupBox *panelsGrp = createFrame( i18n( "General" ), innerWidget ); QGridLayout *panelsGrid = createGridLayout( panelsGrp ); QString s = "<p><img src='toolbar|kr_profile'></p>" + i18n( "Defines the panel profile used at startup. A panel profile contains:<ul><li>all the tabs paths</li><li>the current tab</li><li>the active panel</li></ul><b><Last session></b> is a special panel profile which is saved automatically when Krusader is closed."); @@ -81,7 +84,7 @@ // ------------------------ USERINTERFACE GROUPBOX ------------------------------ - QGroupBox *uiGrp = createFrame( i18n( "User Interface" ), this ); + QGroupBox *uiGrp = createFrame( i18n( "User Interface" ), innerWidget ); QGridLayout *uiGrid = createGridLayout( uiGrp ); KONFIGURATOR_CHECKBOX_PARAM uiCheckBoxes[] = Modified: trunk/krusader_kde4/krusader/Konfigurator/kguseractions.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kguseractions.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/kguseractions.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -43,10 +43,13 @@ KgUserActions::KgUserActions( bool first, QWidget* parent ) : KonfiguratorPage( first, parent ) { - QGridLayout *kgUserActionLayout = new QGridLayout( this ); + QWidget *innerWidget = new QFrame( this ); + setWidget( innerWidget ); + setWidgetResizable( true ); + QGridLayout *kgUserActionLayout = new QGridLayout( innerWidget ); // ============= Info Group ============= - QGroupBox *InfoGroup = createFrame( i18n( "Information" ), this ); + QGroupBox *InfoGroup = createFrame( i18n( "Information" ), innerWidget ); QGridLayout *InfoGrid = createGridLayout( InfoGroup ); // terminal for the UserActions @@ -62,7 +65,7 @@ kgUserActionLayout->addWidget( InfoGroup, 0 ,0 ); // ============= Terminal Group ============= - QGroupBox *terminalGroup = createFrame( i18n( "Terminal execution" ), this ); + QGroupBox *terminalGroup = createFrame( i18n( "Terminal execution" ), innerWidget ); QGridLayout *terminalGrid = createGridLayout( terminalGroup ); // terminal for the UserActions @@ -76,7 +79,7 @@ kgUserActionLayout->addWidget( terminalGroup, 1 ,0 ); // ============= Outputcollection Group ============= - QGroupBox *outputGroup = createFrame( i18n( "Output collection" ), this ); + QGroupBox *outputGroup = createFrame( i18n( "Output collection" ), innerWidget ); QGridLayout *outputGrid = createGridLayout( outputGroup ); QWidget *hboxWidget = new QWidget( outputGroup ); Modified: trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/konfigurator.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -81,6 +81,7 @@ connect( this, SIGNAL( user1Clicked() ), this, SLOT( slotUser1() ) ); createLayout( startPage ); + setInitialSize( QSize( 1000, 700 ) ); exec(); } Modified: trunk/krusader_kde4/krusader/Konfigurator/konfiguratorpage.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfiguratorpage.cpp 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/konfiguratorpage.cpp 2008-08-31 22:45:54 UTC (rev 6075) @@ -32,13 +32,14 @@ #include <qlayout.h> #include <QHBoxLayout> #include <QGridLayout> -#include <QFrame> +#include <QScrollArea> #include <QLabel> #include "../krusader.h" KonfiguratorPage::KonfiguratorPage( bool firstTime, QWidget* parent ) : - QFrame( parent ), firstCall( firstTime ) + QScrollArea( parent ), firstCall( firstTime ) { + setFrameStyle( QFrame::NoFrame ); } bool KonfiguratorPage::apply() Modified: trunk/krusader_kde4/krusader/Konfigurator/konfiguratorpage.h =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/konfiguratorpage.h 2008-08-25 19:04:04 UTC (rev 6074) +++ trunk/krusader_kde4/krusader/Konfigurator/konfiguratorpage.h 2008-08-31 22:45:54 UTC (rev 6075) @@ -32,11 +32,11 @@ #define __KONFIGURATOR_PAGE_H__ #include "konfiguratoritems.h" -#include <qframe.h> #include <qgroupbox.h> #include <qlabel.h> #include <qlayout.h> #include <QGridLayout> +#include <QScrollArea> struct KONFIGURATOR_CHECKBOX_PARAM; struct KONFIGURATOR_NAME_VALUE_TIP; @@ -48,7 +48,7 @@ * * @short The base class of a page in Konfigurator */ -class KonfiguratorPage : public QFrame +class KonfiguratorPage : public QScrollArea { Q_OBJECT This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vac...@us...> - 2008-08-25 19:04:19
|
Revision: 6074 http://krusader.svn.sourceforge.net/krusader/?rev=6074&view=rev Author: vaclavjuza Date: 2008-08-25 19:04:04 +0000 (Mon, 25 Aug 2008) Log Message: ----------- FIXED: [ 2027518 ] Does not build with -DBUILD_SHARED_LIBS:BOOL=ON (thanks to Funda Wang) Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/ActionMan/CMakeLists.txt trunk/krusader_kde4/krusader/BookMan/CMakeLists.txt trunk/krusader_kde4/krusader/Dialogs/CMakeLists.txt trunk/krusader_kde4/krusader/DiskUsage/CMakeLists.txt trunk/krusader_kde4/krusader/Filter/CMakeLists.txt trunk/krusader_kde4/krusader/GUI/CMakeLists.txt trunk/krusader_kde4/krusader/KViewer/CMakeLists.txt trunk/krusader_kde4/krusader/Konfigurator/CMakeLists.txt trunk/krusader_kde4/krusader/KrJS/CMakeLists.txt trunk/krusader_kde4/krusader/Locate/CMakeLists.txt trunk/krusader_kde4/krusader/MountMan/CMakeLists.txt trunk/krusader_kde4/krusader/Panel/CMakeLists.txt trunk/krusader_kde4/krusader/Queue/CMakeLists.txt trunk/krusader_kde4/krusader/Search/CMakeLists.txt trunk/krusader_kde4/krusader/Splitter/CMakeLists.txt trunk/krusader_kde4/krusader/Synchronizer/CMakeLists.txt trunk/krusader_kde4/krusader/UserAction/CMakeLists.txt trunk/krusader_kde4/krusader/UserMenu/CMakeLists.txt trunk/krusader_kde4/krusader/VFS/CMakeLists.txt Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/ChangeLog 2008-08-25 19:04:04 UTC (rev 6074) @@ -7,6 +7,8 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: [ 2027518 ] Does not build with -DBUILD_SHARED_LIBS:BOOL=ON + (thanks to Funda Wang) FIXED: [ 2041732 ] Krusader 2.0.0 beta1 missing title bar under Compiz (thanks to Danny Baumann for the patch) FIXED: [ 2023623 ] Krusader kept running after closing the main window Modified: trunk/krusader_kde4/krusader/ActionMan/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/ActionMan/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/ActionMan/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -13,7 +13,7 @@ kde4_add_ui_files(ActionMan_SRCS actionproperty.ui) -kde4_add_library(ActionMan ${ActionMan_SRCS} ) +kde4_add_library(ActionMan STATIC ${ActionMan_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/BookMan/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/BookMan/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/BookMan/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -11,7 +11,7 @@ krbookmarkhandler.cpp kraddbookmarkdlg.cpp ) -kde4_add_library(BookMan ${BookMan_SRCS} ) +kde4_add_library(BookMan STATIC ${BookMan_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/Dialogs/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Dialogs/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Dialogs/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -20,7 +20,7 @@ percentalsplitter.cpp krkeydialog.cpp ) -kde4_add_library(Dialogs ${Dialogs_SRCS} ) +kde4_add_library(Dialogs STATIC ${Dialogs_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/DiskUsage/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/DiskUsage/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/DiskUsage/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -14,7 +14,7 @@ dulines.cpp dufilelight.cpp ) -kde4_add_library(DiskUsage ${DiskUsage_SRCS} ${radialMap_SRCS} ${filelightParts_SRCS} ) +kde4_add_library(DiskUsage STATIC ${DiskUsage_SRCS} ${radialMap_SRCS} ${filelightParts_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/Filter/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Filter/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Filter/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -10,7 +10,7 @@ filtertabs.cpp filterdialog.cpp ) -kde4_add_library(Filter ${Filter_SRCS} ) +kde4_add_library(Filter STATIC ${Filter_SRCS} ) target_link_libraries(Filter Dialogs ) Modified: trunk/krusader_kde4/krusader/GUI/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/GUI/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/GUI/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -20,7 +20,7 @@ kcmdmodebutton.cpp terminaldock.cpp ) -kde4_add_library(GUI ${GUI_SRCS} ) +kde4_add_library(GUI STATIC ${GUI_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/KViewer/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/KViewer/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/KViewer/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -10,7 +10,7 @@ panelviewer.cpp diskusageviewer.cpp ) -kde4_add_library(KViewer ${KViewer_SRCS} ) +kde4_add_library(KViewer STATIC ${KViewer_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/Konfigurator/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Konfigurator/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -20,7 +20,7 @@ krresulttabledialog.cpp searchobject.cpp ) -kde4_add_library(Konfigurator ${Konfigurator_SRCS} ) +kde4_add_library(Konfigurator STATIC ${Konfigurator_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/KrJS/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/KrJS/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/KrJS/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -7,7 +7,7 @@ set( KrJS_SRCS krjs.cpp ) -kde4_add_library(KrJS ${KrJS_SRCS} ) +kde4_add_library(KrJS STATIC ${KrJS_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/Locate/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Locate/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Locate/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -7,7 +7,7 @@ set( Locate_SRCS locate.cpp ) -kde4_add_library(Locate ${Locate_SRCS} ) +kde4_add_library(Locate STATIC ${Locate_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/MountMan/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/MountMan/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/MountMan/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -9,7 +9,7 @@ kmountman.cpp ) -kde4_add_library(MountMan ${MountMan_SRCS} ) +kde4_add_library(MountMan STATIC ${MountMan_SRCS} ) target_link_libraries(MountMan Dialogs ) Modified: trunk/krusader_kde4/krusader/Panel/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Panel/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Panel/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -23,7 +23,7 @@ krinterview.cpp krviewfactory.cpp ) -kde4_add_library(Panel ${Panel_SRCS} ) +kde4_add_library(Panel STATIC ${Panel_SRCS} ) target_link_libraries(Panel Dialogs GUI KViewer ${KDE4_KFILE_LIBS} ${KDE4_KDE3SUPPORT_LIBRARY} ) Modified: trunk/krusader_kde4/krusader/Queue/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Queue/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Queue/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -9,7 +9,7 @@ queue_mgr.cpp queuewidget.cpp ) -kde4_add_library(Queue ${Queue_SRCS} ) +kde4_add_library(Queue STATIC ${Queue_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/Search/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Search/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Search/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -8,7 +8,7 @@ krsearchmod.cpp krsearchdialog.cpp ) -kde4_add_library(Search ${Search_SRCS} ) +kde4_add_library(Search STATIC ${Search_SRCS} ) target_link_libraries(Search Dialogs ) Modified: trunk/krusader_kde4/krusader/Splitter/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Splitter/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Splitter/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -10,7 +10,7 @@ splitter.cpp combiner.cpp ) -kde4_add_library(Splitter ${Splitter_SRCS} ) +kde4_add_library(Splitter STATIC ${Splitter_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/Synchronizer/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/Synchronizer/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/Synchronizer/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -12,7 +12,7 @@ synchronizertask.cpp synchronizerdirlist.cpp ) -kde4_add_library(Synchronizer ${Synchronizer_SRCS} ) +kde4_add_library(Synchronizer STATIC ${Synchronizer_SRCS} ) target_link_libraries(Synchronizer Dialogs ) Modified: trunk/krusader_kde4/krusader/UserAction/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/UserAction/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/UserAction/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -11,7 +11,7 @@ kractionbase.cpp useraction.cpp ) -kde4_add_library(UserAction ${UserAction_SRCS} ) +kde4_add_library(UserAction STATIC ${UserAction_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/UserMenu/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/UserMenu/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/UserMenu/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -7,7 +7,7 @@ set( UserMenu_SRCS usermenu.cpp ) -kde4_add_library(UserMenu ${UserMenu_SRCS} ) +kde4_add_library(UserMenu STATIC ${UserMenu_SRCS} ) ########### install files ############### Modified: trunk/krusader_kde4/krusader/VFS/CMakeLists.txt =================================================================== --- trunk/krusader_kde4/krusader/VFS/CMakeLists.txt 2008-08-24 19:38:40 UTC (rev 6073) +++ trunk/krusader_kde4/krusader/VFS/CMakeLists.txt 2008-08-25 19:04:04 UTC (rev 6074) @@ -18,7 +18,7 @@ krquery.cpp preserveattrcopyjob.cpp ) -kde4_add_library(VFS ${VFS_SRCS} ) +kde4_add_library(VFS STATIC ${VFS_SRCS} ) ########### install files ############### This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vac...@us...> - 2008-08-24 19:38:32
|
Revision: 6073 http://krusader.svn.sourceforge.net/krusader/?rev=6073&view=rev Author: vaclavjuza Date: 2008-08-24 19:38:40 +0000 (Sun, 24 Aug 2008) Log Message: ----------- FIXED: [ 2041732 ] Krusader 2.0.0 beta1 missing title bar under Compiz (thanks to Danny Baumann for the patch) Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/krusader.cpp Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-24 13:15:36 UTC (rev 6072) +++ trunk/krusader_kde4/ChangeLog 2008-08-24 19:38:40 UTC (rev 6073) @@ -7,6 +7,8 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: [ 2041732 ] Krusader 2.0.0 beta1 missing title bar under Compiz + (thanks to Danny Baumann for the patch) FIXED: [ 2023623 ] Krusader kept running after closing the main window FIXED: [ 1671543 ] horizontal/vertical mode fix in the Window menu FIXED: [ 1845105 ] mimetype magic can be disabled again Modified: trunk/krusader_kde4/krusader/krusader.cpp =================================================================== --- trunk/krusader_kde4/krusader/krusader.cpp 2008-08-24 13:15:36 UTC (rev 6072) +++ trunk/krusader_kde4/krusader/krusader.cpp 2008-08-24 19:38:40 UTC (rev 6073) @@ -218,7 +218,8 @@ #endif // construct the views, statusbar and menu bars and prepare Krusader to start -Krusader::Krusader() : KParts::MainWindow(0,Qt::Window|Qt::WindowContextHelpButtonHint), +Krusader::Krusader() : KParts::MainWindow(0, + Qt::Window | Qt::WindowTitleHint | Qt::WindowContextHelpButtonHint), status(NULL), sysTray( 0 ), isStarting( true ), isExiting( false ), directExit( false ) { setAttribute(Qt::WA_DeleteOnClose); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vac...@us...> - 2008-08-24 13:15:26
|
Revision: 6072 http://krusader.svn.sourceforge.net/krusader/?rev=6072&view=rev Author: vaclavjuza Date: 2008-08-24 13:15:36 +0000 (Sun, 24 Aug 2008) Log Message: ----------- FIXED: [ 2023623 ] Krusader kept running after closing the main window Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/krusader.cpp Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-23 09:57:54 UTC (rev 6071) +++ trunk/krusader_kde4/ChangeLog 2008-08-24 13:15:36 UTC (rev 6072) @@ -7,6 +7,7 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: [ 2023623 ] Krusader kept running after closing the main window FIXED: [ 1671543 ] horizontal/vertical mode fix in the Window menu FIXED: [ 1845105 ] mimetype magic can be disabled again FIXED: [ 2062651 ] Ctrl+Up selects the URL in the origin editbox Modified: trunk/krusader_kde4/krusader/krusader.cpp =================================================================== --- trunk/krusader_kde4/krusader/krusader.cpp 2008-08-23 09:57:54 UTC (rev 6071) +++ trunk/krusader_kde4/krusader/krusader.cpp 2008-08-24 13:15:36 UTC (rev 6072) @@ -225,8 +225,6 @@ // parse command line arguments KCmdLineArgs * args = KCmdLineArgs::parsedArgs(); - KGlobal::ref(); // FIX: krusader exits at closing the viewer when minimized to tray - // create the "krusader" App = this; slot = new KRslots(this); @@ -385,6 +383,7 @@ status->setWhatsThis( i18n( "Statusbar will show basic information " "about file below mouse pointer." ) ); + KGlobal::ref(); // FIX: krusader exits at closing the viewer when minimized to tray // This enables Krusader to show a tray icon sysTray = new KSystemTrayIcon( this ); // Krusader::privIcon() returns either "krusader_blue" or "krusader_red" if the user got root-privileges @@ -499,7 +498,7 @@ bool showTrayIcon = group.readEntry( "Minimize To Tray", _MinimizeToTray ); bool singleInstanceMode = group.readEntry( "Single Instance Mode", _SingleInstanceMode ); - if( showTrayIcon && !singleInstanceMode ) + if( showTrayIcon && !singleInstanceMode && sysTray) sysTray->hide(); show(); // needed to make sure krusader is removed from // the taskbar when minimizing (system tray issue) @@ -508,7 +507,8 @@ void Krusader::hideEvent ( QHideEvent *e ) { if( isExiting ) { KParts::MainWindow::hideEvent( e ); - sysTray->hide(); + if (sysTray) + sysTray->hide(); return; } KConfigGroup group( config, "Look&Feel"); @@ -526,7 +526,8 @@ #else if ( showTrayIcon && !isModalTopWidget ) { #endif - sysTray->show(); + if ( sysTray ) + sysTray->show(); hide(); // needed to make sure krusader is removed from // the taskbar when minimizing (system tray issue) } else KParts::MainWindow::hideEvent( e ); @@ -892,14 +893,16 @@ bool minimizeToTray = group.readEntry( "Minimize To Tray", _MinimizeToTray ); bool singleInstanceMode = group.readEntry( "Single Instance Mode", _SingleInstanceMode ); - if( !isHidden() ) { - if( singleInstanceMode && minimizeToTray ) - sysTray->show(); - else - sysTray->hide(); - } else { - if( minimizeToTray ) - sysTray->show(); + if ( sysTray ) { + if( !isHidden() ) { + if( singleInstanceMode && minimizeToTray ) + sysTray->show(); + else + sysTray->hide(); + } else { + if( minimizeToTray ) + sysTray->show(); + } } } @@ -925,6 +928,9 @@ dbus.unregisterObject( "/Instances/" + Krusader::AppName ); KGlobal::deref(); // FIX: krusader exits at closing the viewer when minimized to tray + sysTray->hide(); + delete sysTray; // In KDE 4.1, KGlobal::ref() and deref() is done in KSystray constructor/destructor + sysTray=NULL; KGlobal::deref(); // and close the application return isExiting = true; // this will also kill the pending jobs } @@ -1028,8 +1034,15 @@ dbus.unregisterObject( "/Instances/" + Krusader::AppName ); KGlobal::deref(); // FIX: krusader exits at closing the viewer when minimized to tray + sysTray->hide(); + delete sysTray; // In KDE 4.1, KGlobal::ref() and deref() is done in KSystray constructor/destructor + sysTray=NULL; KGlobal::deref(); // and close the application return false; // don't let the main widget close. It stops the pendig copies! + //FIXME: The above intention does not work (at least in KDE 4.1), because the job + //progress window (class KWidgetJobTracker::Private::ProgressWidget) + //is closed above among other top level windows, and when closed + //stops the copy. } else return false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-08-23 09:57:45
|
Revision: 6071 http://krusader.svn.sourceforge.net/krusader/?rev=6071&view=rev Author: ckarai Date: 2008-08-23 09:57:54 +0000 (Sat, 23 Aug 2008) Log Message: ----------- FIXED: [ 1671543 ] horizontal/vertical mode fix in the Window menu Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/krusader.cpp trunk/krusader_kde4/krusader/krusader.h trunk/krusader_kde4/krusader/krusaderview.cpp trunk/krusader_kde4/krusader/krusaderview.h Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-22 20:51:40 UTC (rev 6070) +++ trunk/krusader_kde4/ChangeLog 2008-08-23 09:57:54 UTC (rev 6071) @@ -7,6 +7,7 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: [ 1671543 ] horizontal/vertical mode fix in the Window menu FIXED: [ 1845105 ] mimetype magic can be disabled again FIXED: [ 2062651 ] Ctrl+Up selects the URL in the origin editbox FIXED: [ 1988893 ] konsole is started in a wrong directory Modified: trunk/krusader_kde4/krusader/krusader.cpp =================================================================== --- trunk/krusader_kde4/krusader/krusader.cpp 2008-08-22 20:51:40 UTC (rev 6070) +++ trunk/krusader_kde4/krusader/krusader.cpp 2008-08-23 09:57:54 UTC (rev 6071) @@ -188,7 +188,7 @@ KAction *Krusader::actView5 = 0; KToggleAction *Krusader::actToggleTerminal = 0; -KToggleAction *Krusader::actVerticalMode = 0; +KAction *Krusader::actVerticalMode = 0; KAction *Krusader::actSelectNewerAndSingle = 0; KAction *Krusader::actSelectSingle = 0; KAction *Krusader::actSelectNewer = 0; @@ -753,7 +753,7 @@ NEW_KACTION(t14, i18n( "Right Media" ), 0, Qt::CTRL + Qt::SHIFT + Qt::Key_Right, SLOTS, SLOT( openRightMedia() ), "right media" ); NEW_KACTION(t15, i18n( "New Symlink..." ), 0, Qt::CTRL + Qt::ALT + Qt::Key_S, SLOTS, SLOT( newSymlink() ), "new symlink"); NEW_KTOGGLEACTION(t16, i18n( "Toggle Popup Panel" ), 0, Qt::ALT + Qt::Key_Down, SLOTS, SLOT( togglePopupPanel() ), "toggle popup panel" ); - NEW_KTOGGLEACTION(actVerticalMode, i18n( "Vertical Mode" ), "view_top_bottom", Qt::ALT + Qt::CTRL + Qt::Key_R, MAIN_VIEW, SLOT( toggleVerticalMode() ), "toggle vertical mode" ); + NEW_KACTION(actVerticalMode, i18n( "Vertical Mode" ), "view-split-top-bottom", Qt::ALT + Qt::CTRL + Qt::Key_R, MAIN_VIEW, SLOT( toggleVerticalMode() ), "toggle vertical mode" ); NEW_KACTION(actNewTab, i18n( "New Tab" ), "tab-new", Qt::ALT + Qt::CTRL + Qt::Key_N, SLOTS, SLOT( newTab() ), "new tab" ); NEW_KACTION(actDupTab, i18n( "Duplicate Current Tab" ), "tab_duplicate", Qt::ALT + Qt::CTRL + Qt::SHIFT + Qt::Key_N, SLOTS, SLOT( duplicateTab() ), "duplicate tab" ); NEW_KACTION(actCloseTab, i18n( "Close Current Tab" ), "tab-close", Qt::CTRL + Qt::Key_W, SLOTS, SLOT( closeTab() ), "close tab" ); @@ -828,7 +828,7 @@ mainView->right->view->saveSettings(); cfg = config->group( "Startup" ); - cfg.writeEntry( "Vertical Mode", actVerticalMode->isChecked()); + cfg.writeEntry( "Vertical Mode", mainView->isVertical()); config->sync(); } @@ -866,7 +866,7 @@ cfg.writeEntry( "Show FN Keys", actToggleFnkeys->isChecked() ); cfg.writeEntry( "Show Cmd Line", actToggleCmdline->isChecked() ); cfg.writeEntry( "Show Terminal Emulator", actToggleTerminal->isChecked() ); - cfg.writeEntry( "Vertical Mode", actVerticalMode->isChecked()); + cfg.writeEntry( "Vertical Mode", mainView->isVertical()); cfg.writeEntry( "Start To Tray", isHidden()); } @@ -1112,7 +1112,6 @@ } // set vertical mode if (cfg.readEntry( "Vertical Mode", false)) { - actVerticalMode->setChecked(true); mainView->toggleVerticalMode(); } if ( cfg.readEntry( "Show Terminal Emulator", _ShowTerminalEmulator ) ) { Modified: trunk/krusader_kde4/krusader/krusader.h =================================================================== --- trunk/krusader_kde4/krusader/krusader.h 2008-08-22 20:51:40 UTC (rev 6070) +++ trunk/krusader_kde4/krusader/krusader.h 2008-08-23 09:57:54 UTC (rev 6071) @@ -1,4 +1,3 @@ - /*************************************************************************** krusader.h ------------------- @@ -137,10 +136,10 @@ static KAction *actSelectColorMask, *actMultiRename, *actAllFilter, *actOpenLeftBm, *actOpenRightBm; static KAction *actNewTab, *actDupTab, *actCloseTab, *actPreviousTab, *actNextTab, *actSplit; static KAction *actCombine, *actUserMenu, *actManageUseractions, *actSyncDirs, *actSyncBrowse; - static KAction *actF2, *actF3, *actF4, *actF5, *actF6, *actF7, *actF8, *actF9, *actF10; + static KAction *actF2, *actF3, *actF4, *actF5, *actF6, *actF7, *actF8, *actF9, *actF10, *actVerticalMode; static KAction *actPopularUrls, *actLocationBar, *actJumpBack, *actSetJumpBack, *actCreateChecksum, *actMatchChecksum; static KAction *actView0, *actView1, *actView2, *actView3, *actView4, *actView5, *actCopy, *actPaste; - static KToggleAction *actToggleTerminal, *actVerticalMode; + static KToggleAction *actToggleTerminal; static KAction *actSelectNewerAndSingle, *actSelectNewer, *actSelectSingle, *actSelectDifferentAndSingle, *actSelectDifferent; /** actions for setting the execution mode of commands from commanddline */ Modified: trunk/krusader_kde4/krusader/krusaderview.cpp =================================================================== --- trunk/krusader_kde4/krusader/krusaderview.cpp 2008-08-22 20:51:40 UTC (rev 6070) +++ trunk/krusader_kde4/krusader/krusaderview.cpp 2008-08-23 09:57:54 UTC (rev 6071) @@ -298,9 +298,15 @@ } void KrusaderView::toggleVerticalMode() { - if (horiz_splitter->orientation() == Qt::Vertical) + if (horiz_splitter->orientation() == Qt::Vertical) { horiz_splitter->setOrientation(Qt::Horizontal); - else horiz_splitter->setOrientation(Qt::Vertical); + Krusader::actVerticalMode->setText( i18n( "Vertical Mode" ) ); + Krusader::actVerticalMode->setIcon( KIcon( "view-split-top-bottom" ) ); + } else { + horiz_splitter->setOrientation(Qt::Vertical); + Krusader::actVerticalMode->setText( i18n( "Horizontal Mode" ) ); + Krusader::actVerticalMode->setIcon( KIcon( "view-split-left-right" ) ); + } } #include "krusaderview.moc" Modified: trunk/krusader_kde4/krusader/krusaderview.h =================================================================== --- trunk/krusader_kde4/krusader/krusaderview.h 2008-08-22 20:51:40 UTC (rev 6070) +++ trunk/krusader_kde4/krusader/krusaderview.h 2008-08-23 09:57:54 UTC (rev 6071) @@ -67,6 +67,7 @@ inline PanelManager *activeManager() const { return (activePanel==left ? leftMng : rightMng); } inline PanelManager *inactiveManager() const { return (activePanel==left ? rightMng : leftMng); } QList<int> getTerminalEmulatorSplitterSizes(); + inline bool isVertical() const { return horiz_splitter != 0 ? horiz_splitter->orientation() == Qt::Vertical : false; } public slots: void slotCurrentChanged(QString p); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-08-22 20:51:31
|
Revision: 6070 http://krusader.svn.sourceforge.net/krusader/?rev=6070&view=rev Author: ckarai Date: 2008-08-22 20:51:40 +0000 (Fri, 22 Aug 2008) Log Message: ----------- FIXED: [ 1845105 ] mimetype magic can be disabled again Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/VFS/vfile.cpp trunk/krusader_kde4/krusader/VFS/vfile.h trunk/krusader_kde4/krusader/krslots.cpp trunk/krusader_kde4/krusader/krusader.cpp Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-21 21:41:41 UTC (rev 6069) +++ trunk/krusader_kde4/ChangeLog 2008-08-22 20:51:40 UTC (rev 6070) @@ -7,6 +7,7 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: [ 1845105 ] mimetype magic can be disabled again FIXED: [ 2062651 ] Ctrl+Up selects the URL in the origin editbox FIXED: [ 1988893 ] konsole is started in a wrong directory please set "konsole --workdir %d" for the terminal (Konfigurator) Modified: trunk/krusader_kde4/krusader/VFS/vfile.cpp =================================================================== --- trunk/krusader_kde4/krusader/VFS/vfile.cpp 2008-08-21 21:41:41 UTC (rev 6069) +++ trunk/krusader_kde4/krusader/VFS/vfile.cpp 2008-08-22 20:51:40 UTC (rev 6070) @@ -47,6 +47,7 @@ #include <kdebug.h> bool vfile::vfile_userDefinedFolderIcons = true; +bool vfile::vfile_useMimeTypeMagic = true; vfile::vfile(const QString& name, // useful construtor const KIO::filesize_t size, Modified: trunk/krusader_kde4/krusader/VFS/vfile.h =================================================================== --- trunk/krusader_kde4/krusader/VFS/vfile.h 2008-08-21 21:41:41 UTC (rev 6069) +++ trunk/krusader_kde4/krusader/VFS/vfile.h 2008-08-22 20:51:40 UTC (rev 6070) @@ -124,6 +124,7 @@ virtual ~vfile(){} inline static void vfile_loadUserDefinedFolderIcons( bool load ) { vfile_userDefinedFolderIcons = load; } + inline static void vfile_enableMimeTypeMagic( bool enable ) { vfile_useMimeTypeMagic = enable; } private: void vfile_loadACL(); @@ -153,12 +154,13 @@ QString vfile_def_acl; //< ACL default string static bool vfile_userDefinedFolderIcons; + static bool vfile_useMimeTypeMagic; }; QString vfile::vfile_getIcon(){ if( vfile_icon.isEmpty() ){ - QString mime = this->vfile_getMime(); + QString mime = this->vfile_getMime( !vfile_useMimeTypeMagic ); if ( mime == "Broken Link !" ) vfile_icon = "file-broken"; else if( vfile_icon.isEmpty() ) { Modified: trunk/krusader_kde4/krusader/krslots.cpp =================================================================== --- trunk/krusader_kde4/krusader/krslots.cpp 2008-08-21 21:41:41 UTC (rev 6069) +++ trunk/krusader_kde4/krusader/krslots.cpp 2008-08-22 20:51:40 UTC (rev 6070) @@ -326,10 +326,12 @@ void KRslots::runKonfigurator(bool firstTime) { KConfigGroup group( krConfig, "Look&Feel"); + KConfigGroup groupgen( krConfig, "General"); int size = (group.readEntry("Filelist Icon Size",_FilelistIconSize)).toInt(); Konfigurator *konfigurator = new Konfigurator(firstTime); + vfile::vfile_enableMimeTypeMagic( groupgen.readEntry( "Mimetype Magic", _MimetypeMagic ) ); if( konfigurator->isGUIRestartNeeded() ) { vfile::vfile_loadUserDefinedFolderIcons( group.readEntry( "Load User Defined Folder Icons", _UserDefinedFolderIcons ) ); Modified: trunk/krusader_kde4/krusader/krusader.cpp =================================================================== --- trunk/krusader_kde4/krusader/krusader.cpp 2008-08-21 21:41:41 UTC (rev 6069) +++ trunk/krusader_kde4/krusader/krusader.cpp 2008-08-22 20:51:40 UTC (rev 6070) @@ -282,8 +282,10 @@ initChecksumModule(); KConfigGroup gl( krConfig, "Look&Feel"); + KConfigGroup glgen( krConfig, "General"); int defaultType = gl.readEntry( "Default Panel Type", KrViewFactory::defaultViewId() ); vfile::vfile_loadUserDefinedFolderIcons( gl.readEntry( "Load User Defined Folder Icons", _UserDefinedFolderIcons ) ); + vfile::vfile_enableMimeTypeMagic( glgen.readEntry( "Mimetype Magic", _MimetypeMagic ) ); KConfigGroup gs( krConfig, "Startup" ); QStringList leftTabs = gs.readPathEntry( "Left Tab Bar",QStringList() ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-08-21 21:41:33
|
Revision: 6069 http://krusader.svn.sourceforge.net/krusader/?rev=6069&view=rev Author: ckarai Date: 2008-08-21 21:41:41 +0000 (Thu, 21 Aug 2008) Log Message: ----------- FIXED: minor bug after moving keyboard events to KrView Modified Paths: -------------- trunk/krusader_kde4/krusader/Panel/krview.h Modified: trunk/krusader_kde4/krusader/Panel/krview.h =================================================================== --- trunk/krusader_kde4/krusader/Panel/krview.h 2008-08-21 21:32:15 UTC (rev 6068) +++ trunk/krusader_kde4/krusader/Panel/krview.h 2008-08-21 21:41:41 UTC (rev 6069) @@ -85,7 +85,6 @@ QWidget *widget() const { return _widget; } void startDrag(); - void emitSelectionChanged() { if( !_massSelectionUpdate ) emit selectionChanged(); } void emitGotDrop(QDropEvent *e) { emit gotDrop(e); } void emitLetsDrag(QStringList items, QPixmap icon ) { emit letsDrag(items, icon); } void emitItemDescription(QString &desc) { emit itemDescription(desc); } @@ -105,6 +104,7 @@ bool isMassSelectionUpdate() { return _massSelectionUpdate; } public slots: + void emitSelectionChanged() { if( !_massSelectionUpdate ) emit selectionChanged(); } void quickSearch( const QString &, int = 0 ); void stopQuickSearch( QKeyEvent* ); void handleQuickSearchEvent( QKeyEvent* ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-08-21 21:32:05
|
Revision: 6068 http://krusader.svn.sourceforge.net/krusader/?rev=6068&view=rev Author: ckarai Date: 2008-08-21 21:32:15 +0000 (Thu, 21 Aug 2008) Log Message: ----------- FIXED: [ 2062651 ] Ctrl+Up selects the URL in the origin editbox Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/Panel/listpanel.cpp Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-20 21:33:13 UTC (rev 6067) +++ trunk/krusader_kde4/ChangeLog 2008-08-21 21:32:15 UTC (rev 6068) @@ -7,6 +7,7 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: [ 2062651 ] Ctrl+Up selects the URL in the origin editbox FIXED: [ 1988893 ] konsole is started in a wrong directory please set "konsole --workdir %d" for the terminal (Konfigurator) as Krusader won't fix your config automatically Modified: trunk/krusader_kde4/krusader/Panel/listpanel.cpp =================================================================== --- trunk/krusader_kde4/krusader/Panel/listpanel.cpp 2008-08-20 21:33:13 UTC (rev 6067) +++ trunk/krusader_kde4/krusader/Panel/listpanel.cpp 2008-08-21 21:32:15 UTC (rev 6068) @@ -941,6 +941,7 @@ case Qt::Key_Up : if ( e->modifiers() == Qt::ControlModifier ) { // give the keyboard focus to the command line origin->lineEdit()->setFocus(); + origin->lineEdit()->selectAll(); return ; } else e->ignore(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-08-20 21:33:05
|
Revision: 6067 http://krusader.svn.sourceforge.net/krusader/?rev=6067&view=rev Author: ckarai Date: 2008-08-20 21:33:13 +0000 (Wed, 20 Aug 2008) Log Message: ----------- FIXED: [ 1988893 ] konsole is started in a wrong directory Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/defaults.h trunk/krusader_kde4/krusader/krslots.cpp Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-20 20:10:18 UTC (rev 6066) +++ trunk/krusader_kde4/ChangeLog 2008-08-20 21:33:13 UTC (rev 6067) @@ -7,6 +7,9 @@ ARCH: QuickSearch is moved to KrView from Detailed/Brief views ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + FIXED: [ 1988893 ] konsole is started in a wrong directory + please set "konsole --workdir %d" for the terminal (Konfigurator) + as Krusader won't fix your config automatically FIXED: KDE4 workaround: no colors for synchronizer FIXED: MediaButton doesn't notice unmounted pen drives+CD/DVD-s FIXED: "local network" bookmark didn't work Modified: trunk/krusader_kde4/krusader/defaults.h =================================================================== --- trunk/krusader_kde4/krusader/defaults.h 2008-08-20 20:10:18 UTC (rev 6066) +++ trunk/krusader_kde4/krusader/defaults.h 2008-08-20 21:33:13 UTC (rev 6067) @@ -126,7 +126,7 @@ // Move To Trash ////// #define _MoveToTrash false // Terminal /////////// -#define _Terminal "konsole --workdir ." +#define _Terminal "konsole --workdir %d" // Send CDs /////////// #define _SendCDs true // Editor ///////////// Modified: trunk/krusader_kde4/krusader/krslots.cpp =================================================================== --- trunk/krusader_kde4/krusader/krslots.cpp 2008-08-20 20:10:18 UTC (rev 6066) +++ trunk/krusader_kde4/krusader/krslots.cpp 2008-08-20 21:33:13 UTC (rev 6067) @@ -478,7 +478,11 @@ proc.setWorkingDirectory( dir ); KConfigGroup group( krConfig, "General"); QString term = group.readEntry("Terminal",_Terminal); - proc << KrServices::separateArgs( term ); + QStringList sepdArgs = KrServices::separateArgs( term ); + for( int i=0; i != sepdArgs.size(); i++ ) + if( sepdArgs[ i ] == "%d" ) + sepdArgs[ i ] = dir; + proc << sepdArgs; if( !args.isEmpty() ) { proc << "-e" << args; // FIXME this depends on term!! But works in konsole, xterm and gnome-terminal This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-08-20 20:10:16
|
Revision: 6066 http://krusader.svn.sourceforge.net/krusader/?rev=6066&view=rev Author: ckarai Date: 2008-08-20 20:10:18 +0000 (Wed, 20 Aug 2008) Log Message: ----------- Fixes + architectural changes Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/Dialogs/krspecialwidgets.cpp trunk/krusader_kde4/krusader/Dialogs/krspecialwidgets.h trunk/krusader_kde4/krusader/GUI/mediabutton.cpp trunk/krusader_kde4/krusader/GUI/mediabutton.h trunk/krusader_kde4/krusader/Konfigurator/kgadvanced.cpp trunk/krusader_kde4/krusader/Konfigurator/kgcolors.cpp trunk/krusader_kde4/krusader/Panel/krbriefview.cpp trunk/krusader_kde4/krusader/Panel/krbriefview.h trunk/krusader_kde4/krusader/Panel/krbriefviewitem.h trunk/krusader_kde4/krusader/Panel/krdetailedview.cpp trunk/krusader_kde4/krusader/Panel/krdetailedview.h trunk/krusader_kde4/krusader/Panel/krdetailedviewitem.h trunk/krusader_kde4/krusader/Panel/krinterview.cpp trunk/krusader_kde4/krusader/Panel/krinterview.h trunk/krusader_kde4/krusader/Panel/krview.cpp trunk/krusader_kde4/krusader/Panel/krview.h trunk/krusader_kde4/krusader/Panel/krviewitem.cpp trunk/krusader_kde4/krusader/Panel/krviewitem.h trunk/krusader_kde4/krusader/Panel/listpanel.cpp trunk/krusader_kde4/krusader/Synchronizer/synchronizergui.cpp Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-14 17:49:47 UTC (rev 6065) +++ trunk/krusader_kde4/ChangeLog 2008-08-20 20:10:18 UTC (rev 6066) @@ -1,6 +1,14 @@ + ADDED: [ 1704953 ] highlight quick search match ADDED: Useractions: added checkbox "enabled" and run mode option "Run in embedded terminal emulator" + ADDED: the description of a dir contains its size if it is known + ARCH: MediaButton uses Solid for medium detection + ARCH: QuickSearch is moved to KrView from Detailed/Brief views + ARCH: Keyboard handling is moved to KrView from Detailed/Brief views + + FIXED: KDE4 workaround: no colors for synchronizer + FIXED: MediaButton doesn't notice unmounted pen drives+CD/DVD-s FIXED: "local network" bookmark didn't work FIXED: bookmark menu was not always closed after opening a bookmark FIXED: [ 2017011 ] Crash when changing the Qt theme Modified: trunk/krusader_kde4/krusader/Dialogs/krspecialwidgets.cpp =================================================================== --- trunk/krusader_kde4/krusader/Dialogs/krspecialwidgets.cpp 2008-08-14 17:49:47 UTC (rev 6065) +++ trunk/krusader_kde4/krusader/Dialogs/krspecialwidgets.cpp 2008-08-20 20:10:18 UTC (rev 6066) @@ -42,6 +42,7 @@ #include <kdebug.h> #include <QKeyEvent> #include <QPaintEvent> +#include <kcolorscheme.h> ///////////////////////////////////////////////////////////////////////////// /////////////////////// Pie related widgets ///////////////////////////////// @@ -218,7 +219,10 @@ //////////////////////////////////////////////////// /////////////////// KrQuickSearch ///////////////// //////////////////////////////////////////////////// -KrQuickSearch::KrQuickSearch( QWidget *parent ) : KLineEdit( parent ) {} +KrQuickSearch::KrQuickSearch( QWidget *parent ) : KLineEdit( parent ) +{ + setMatch( true ); +} void KrQuickSearch::myKeyPressEvent( QKeyEvent *e ) { switch ( e->key() ) { @@ -248,6 +252,39 @@ } } +void KrQuickSearch::setMatch( bool match ) { + KConfigGroup gc( krConfig, "Colors"); + QString foreground, background; + QColor fore, back; + if( match ) + { + foreground = "Quicksearch Match Foreground"; + background = "Quicksearch Match Background"; + fore = Qt::black; + back = QColor( 192, 255, 192 ); + } else { + foreground = "Quicksearch Non-match Foreground"; + background = "Quicksearch Non-match Background"; + fore = Qt::black; + back = QColor(255,192,192); + } + + if( gc.readEntry( foreground, QString() ) == "KDE default" ) + fore = KColorScheme(QPalette::Active, KColorScheme::View).foreground().color(); + else if( !gc.readEntry( foreground, QString() ).isEmpty() ) + fore = gc.readEntry( foreground, fore ); + + if( gc.readEntry( background, QString() ) == "KDE default" ) + back = KColorScheme(QPalette::Active, KColorScheme::View).background().color(); + else if( !gc.readEntry( background, QString() ).isEmpty() ) + back = gc.readEntry( background, back ); + + QPalette pal = palette(); + pal.setColor( QPalette::Base, back); + pal.setColor( QPalette::Text, fore); + setPalette( pal ); +} + #include "krspecialwidgets.moc" Modified: trunk/krusader_kde4/krusader/Dialogs/krspecialwidgets.h =================================================================== --- trunk/krusader_kde4/krusader/Dialogs/krspecialwidgets.h 2008-08-14 17:49:47 UTC (rev 6065) +++ trunk/krusader_kde4/krusader/Dialogs/krspecialwidgets.h 2008-08-20 20:10:18 UTC (rev 6066) @@ -107,6 +107,7 @@ KrQuickSearch(QWidget *parent); void addText(const QString &str) { setText(text()+str); } void myKeyPressEvent(QKeyEvent *e); + void setMatch( bool match ); void myInputMethodEvent(QInputMethodEvent* e) { inputMethodEvent(e); } Modified: trunk/krusader_kde4/krusader/GUI/mediabutton.cpp =================================================================== --- trunk/krusader_kde4/krusader/GUI/mediabutton.cpp 2008-08-14 17:49:47 UTC (rev 6065) +++ trunk/krusader_kde4/krusader/GUI/mediabutton.cpp 2008-08-20 20:10:18 UTC (rev 6066) @@ -29,53 +29,28 @@ ***************************************************************************/ #include "mediabutton.h" -#include "../krusader.h" -#include "../krservices.h" -#include "../kicons.h" #include "../krslots.h" #include "../MountMan/kmountman.h" -#include <qfile.h> -#include <qfontmetrics.h> -#include <qtextstream.h> -#include <QPixmap> #include <QMouseEvent> #include <QEvent> #include <klocale.h> -#include <kiconloader.h> - -#include <kdeversion.h> -#include <kio/job.h> #include <kmessagebox.h> -#include <kmimetype.h> -#include <kprotocolinfo.h> -#include <kfileitem.h> -#include <kprocess.h> #include <kdiskfreespace.h> +#include <kio/global.h> #include <qcursor.h> +#include <kmountpoint.h> +#include <solid/deviceinterface.h> +#include <solid/storageaccess.h> +#include <solid/storagevolume.h> +#include <solid/opticaldisc.h> +#include <solid/opticaldrive.h> +#include <solid/devicenotifier.h> -#ifdef Q_OS_LINUX -// For CD/DVD drive detection -#include <fcntl.h> -#include <sys/ioctl.h> -#include <unistd.h> -#include <stdint.h> -#define CDROM_GET_CAPABILITY 0x5331 -#define CDSL_CURRENT ((int) (~0U>>1)) -#define CDC_DVD_R 0x10000 /* drive can write DVD-R */ -#define CDC_DVD_RAM 0x20000 /* drive can write DVD-RAM */ -#define CDC_CD_R 0x2000 /* drive is a CD-R */ -#define CDC_CD_RW 0x4000 /* drive is a CD-RW */ -#define CDC_DVD 0x8000 /* drive is a DVD */ -#include <qfile.h> -#endif - - - MediaButton::MediaButton( QWidget *parent ) : QToolButton( parent ), - popupMenu( 0 ), rightMenu( 0 ), hasMedia( false ), waitingForMount( -1 ), mountCheckerTimer() - { + popupMenu( 0 ), rightMenu( 0 ), openInNewTab( false ) +{ KIconLoader * iconLoader = new KIconLoader(); QPixmap icon = iconLoader->loadIcon( "blockdevice", KIconLoader::Toolbar, 16 ); @@ -95,318 +70,192 @@ connect( popupMenu, SIGNAL( aboutToShow() ), this, SLOT( slotAboutToShow() ) ); connect( popupMenu, SIGNAL( aboutToHide() ), this, SLOT( slotAboutToHide() ) ); connect( popupMenu, SIGNAL( triggered( QAction * ) ), this, SLOT( slotPopupActivated( QAction * ) ) ); - + + Solid::DeviceNotifier *notifier = Solid::DeviceNotifier::instance(); + connect(notifier, SIGNAL(deviceAdded(const QString&)), + this, SLOT(slotDeviceAdded(const QString&))); + connect(notifier, SIGNAL(deviceRemoved(const QString&)), + this, SLOT(slotDeviceRemoved(const QString&))); + connect( &mountCheckerTimer, SIGNAL( timeout() ), this, SLOT( slotTimeout() ) ); } MediaButton::~MediaButton() { - busy = false; } void MediaButton::slotAboutToShow() { emit aboutToShow(); - hasMedia = KProtocolInfo::isKnownProtocol( QString( "media" ) ); - KConfigGroup group( krConfig, "Advanced" ); - if( group.readEntry( "DontUseMediaProt", !hasMedia ) ) - hasMedia = false; - popupMenu->clear(); - urls.clear(); - mediaUrls.clear(); - iconNames.clear(); - quasiMounted.clear(); - waitingForMount = -1; + udiNameMap.clear(); - if( hasMedia ) - createListWithMedia(); - else - createListWithoutMedia(); - - mountCheckerTimer.setSingleShot( true ); - mountCheckerTimer.start( 1000 ); + createMediaList(); } void MediaButton::slotAboutToHide() { if( rightMenu ) rightMenu->close(); - - if( waitingForMount < 0 ) - mountCheckerTimer.stop(); + mountCheckerTimer.stop(); } -void MediaButton::createListWithMedia() { - KIO::ListJob *job = KIO::listDir( KUrl( "media:/" ), KIO::HideProgressInfo ); - connect( job, SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ), - this, SLOT( slotEntries( KIO::Job*, const KIO::UDSEntryList& ) ) ); - connect( job, SIGNAL( result( KJob* ) ), - this, SLOT( slotListResult( KJob* ) ) ); - busy = true; +void MediaButton::createMediaList() { + // devices detected by solid + storageDevices = Solid::Device::listFromType( Solid::DeviceInterface::StorageAccess ); - if( !busy ) - qApp->processEvents(); -} - -void MediaButton::slotEntries( KIO::Job *, const KIO::UDSEntryList& entries ) -{ - KMountPoint::List mountList = KMountPoint::currentMountPoints(); + for( int p = storageDevices.count()-1 ; p >= 0; p-- ) { + Solid::Device device = storageDevices[ p ]; + QString udi = device.udi(); + + QString name; + KIcon kdeIcon; + if( !getNameAndIcon( device, name, kdeIcon ) ) + continue; + + QAction * act = popupMenu->addAction( kdeIcon, name ); + act->setData( QVariant( udi ) ); + udiNameMap[ udi ] = name; + + connect(device.as<Solid::StorageAccess>(), SIGNAL(accessibilityChanged(bool, const QString &)), + this, SLOT(slotAccessibilityChanged(bool, const QString &))); + } - KIO::UDSEntryList::const_iterator it = entries.begin(); - KIO::UDSEntryList::const_iterator end = entries.end(); + KMountPoint::List possibleMountList = KMountPoint::possibleMountPoints(); + KMountPoint::List currentMountList = KMountPoint::currentMountPoints(); - while( it != end ) - { - KUrl url; - QString text; - QString mime; - QString iconName; - QString localPath; - bool mounted = false; - - if( (*it).contains( KIO::UDSEntry::UDS_NAME ) ) - text = QUrl::fromPercentEncoding( (*it).stringValue( KIO::UDSEntry::UDS_NAME ).toLatin1() ); - if( (*it).contains( KIO::UDSEntry::UDS_URL ) ) - url = KUrl( (*it).stringValue( KIO::UDSEntry::UDS_URL ) ); - if( (*it).contains( KIO::UDSEntry::UDS_MIME_TYPE ) ) - { - mime = (*it).stringValue( KIO::UDSEntry::UDS_MIME_TYPE ); - if( !mime.endsWith( "unmounted" ) ) - mounted = true; - } - if( (*it).contains( KIO::UDSEntry::UDS_LOCAL_PATH ) ) - localPath = (*it).stringValue( KIO::UDSEntry::UDS_LOCAL_PATH ); - - if( text != "." && text != ".." ) { - int index = popupMenu->actions().count(); - KMimeType::Ptr mt = KMimeType::mimeType( mime ); - QPixmap pixmap; - if( mt ) { - iconName = mt->iconName(); - pixmap = FL_LOADICON( mt->iconName() ); - } + for (KMountPoint::List::iterator it = possibleMountList.begin(); it != possibleMountList.end(); ++it) { + if( (*it)->mountType() == "nfs" || (*it)->mountType() == "smb" ) { + QString path = (*it)->mountPoint(); + bool mounted = false; - mediaUrls.append( url ); - - if( mounted && !localPath.isEmpty() ) - { - url = KUrl( localPath ); - if( !text.contains( url.path() ) ) - text += " [" + url.path() + "]"; + for (KMountPoint::List::iterator it2 = currentMountList.begin(); it2 != currentMountList.end(); ++it2) { + if(( (*it2)->mountType() == "nfs" || (*it2)->mountType() == "smb" ) && + (*it)->mountPoint() == (*it2)->mountPoint() ) { + mounted = true; + break; + } } - else if( mounted ) - { - url = getLocalPath( url, &mountList ); - if( url.isLocalFile() && !text.contains( url.path() ) ) - text += " [" + url.path() + "]"; - } - QAction *act = popupMenu->addAction( pixmap, text ); - act->setData( QVariant( index ) ); - idActionMap[ index ] = act; - - urls.append( url ); - iconNames.append( iconName ); - quasiMounted.append( false ); + QString name = i18n( "Remote Share" ) + " [" + (*it)->mountPoint() + "]"; + QStringList overlays; + if ( mounted ) + overlays << "emblem-mounted"; + KIcon kdeIcon("network-wired", 0, overlays); + QAction * act = popupMenu->addAction( kdeIcon, name ); + QString udi = "remote:" + (*it)->mountPoint(); + act->setData( QVariant( udi ) ); } - ++it; } + + mountCheckerTimer.setSingleShot( true ); + mountCheckerTimer.start( 1000 ); } -void MediaButton::slotListResult( KJob * ) { - busy = false; -} - -KUrl MediaButton::getLocalPath( const KUrl &url, KMountPoint::List *mountList ) { - KMountPoint::List mountListRef; - if( mountList == 0 ) { - mountListRef = KMountPoint::currentMountPoints(); - mountList = &mountListRef; - } +bool MediaButton::getNameAndIcon( Solid::Device & device, QString &name, KIcon &kicon) { + Solid::StorageAccess *access = device.as<Solid::StorageAccess>(); + if( access == 0 ) + return false; + + QString udi = device.udi(); + QString label = i18n( "Unknown" ); + bool mounted = access->isAccessible(); + QString path = access->filePath(); + QString type = i18n( "Unknown" ); + QString icon = device.icon(); + QString fstype; + QString size; - for (KMountPoint::List::iterator it = mountList->begin(); it != mountList->end(); ++it) { - QString name = (*it)->mountedFrom(); - name = name.mid( name.lastIndexOf( "/" ) + 1 ); - if( name == url.fileName() ) { - QString point = (*it)->mountPoint(); - if( !point.isEmpty() ) - return KUrl( point ); - } + Solid::StorageVolume * vol = device.as<Solid::StorageVolume> (); + if( vol ) { + label = vol->label(); + fstype = vol->fsType(); + size = KIO::convertSize( vol->size() ); } - return url; -} - - -void MediaButton::createListWithoutMedia() { - /* WORKAROUND CODE START */ - /* 1. the menu is drawn when we know all the mount points - 2. the menu is corrected, when the HDD volume sizes arrive from df + bool printSize = false; - when the volume sizes are added to the items, some cases widget resize - is necessary. If transparency is set for the widget, QT produces weird - looking widgets, and that's why this workaround is used. - Here we add additional spaces to the mounted HDD elements for avoiding - the buggy widget resize. These are extra spaces. */ - - extraSpaces = ""; - QFontMetrics fm( popupMenu->font() ); - int requiredWidth = fm.width( "999.9 GB " ); - while( fm.width( extraSpaces ) < requiredWidth ) - extraSpaces+=" "; - /* WORKAROUND CODE END */ + if( icon == "media-floppy" ) + type = i18n( "Floppy" ); + else if( icon == "drive-optical" ) + type = i18n( "CD/DVD-ROM" ); + else if( icon == "drive-removable-media-usb-pendrive" ) + type = i18n( "USB pen drive" ), printSize = true; + else if( icon == "drive-removable-media-usb" ) + type = i18n( "USB device" ), printSize = true; + else if( icon == "drive-removable-media" ) + type = i18n( "Removable media" ), printSize = true; + else if( icon == "drive-harddisk" ) + type = i18n( "Hard Disk" ), printSize = true; + else if( icon == "camera-photo" ) + type = i18n( "Camera" ); + else if( icon == "media-optical-video" ) + type = i18n( "Video CD/DVD-ROM" ); + else if( icon == "media-optical-audio" ) + type = i18n( "Audio CD/DVD-ROM" ); + else if( icon == "media-optical" ) + type = i18n( "Recordable CD/DVD-ROM" ); - KMountPoint::List possibleMountList = KMountPoint::possibleMountPoints(); - for (KMountPoint::List::iterator it = possibleMountList.begin(); it != possibleMountList.end(); ++it) { - addMountPoint( &(*(*it)), false ); - } + if( printSize && !size.isEmpty() ) + name += size + " "; - KMountPoint::List mountList = KMountPoint::currentMountPoints(); - for (KMountPoint::List::iterator it = mountList.begin(); it != mountList.end(); ++it) { - addMountPoint( &(*(*it)), true ); - } -} - -QString MediaButton::detectType( KMountPoint *mp ) -{ - QString typeName = QString(); -#ifdef Q_OS_LINUX - // Guessing device types by mount point is not exactly accurate... - // Do something accurate first, and fall back if necessary. - - bool isCd=false; - QString devname=mp->mountedFrom().section('/', -1); - if(devname.startsWith("scd") || devname.startsWith("sr")) - { - // SCSI CD/DVD drive - isCd=true; - } - else if(devname.startsWith("hd")) - { - // IDE device -- we can't tell if this is a - // CD/DVD drive or harddisk by just looking at the - // filename - QFile m(QString("/proc/ide/") + devname + "/media"); - if(m.open(QIODevice::ReadOnly)) - { - QTextStream in(&m); - QString buf=in.readLine(); - if(buf.contains("cdrom")) - isCd=true; - m.close(); - } - } - if(isCd) - { - int device=::open((const char *)QFile::encodeName(mp->mountedFrom()), O_RDONLY | O_NONBLOCK ); - if(device>=0) - { - int drv=::ioctl(device, CDROM_GET_CAPABILITY, CDSL_CURRENT); - if(drv>=0) - { - if((drv & CDC_DVD_R) || (drv & CDC_DVD_RAM)) - typeName = "dvdwriter"; - else if((drv & CDC_CD_R) || (drv & CDC_CD_RW)) - typeName = "cdwriter"; - else if(drv & CDC_DVD) - typeName = "dvd"; - else - typeName = "cdrom"; - } - - ::close(device); - } - } - if( !typeName.isNull() ) - return typeName; - -#elif defined(__FreeBSD__) - if (-1!=mp->mountedFrom().indexOf("/acd",0,Qt::CaseInsensitive)) typeName="cdrom"; - else if (-1!=mp->mountedFrom().indexOf("/scd",0,Qt::CaseInsensitive)) typeName="cdrom"; - else if (-1!=mp->mountedFrom().indexOf("/ad",0,Qt::CaseInsensitive)) typeName="hdd"; - else if (-1!=mp->mountedFrom().indexOf("/da",0,Qt::CaseInsensitive)) typeName="hdd"; - else if (-1!=mp->mountedFrom().indexOf("/afd",0,Qt::CaseInsensitive)) typeName="zip"; + if( !label.isEmpty() ) + name += label + " "; else -#endif - - /* Guessing of cdrom and cd recorder devices */ - if (-1!=mp->mountPoint().indexOf("cdrom",0,Qt::CaseInsensitive)) typeName="cdrom"; - else if (-1!=mp->mountedFrom().indexOf("cdrom",0,Qt::CaseInsensitive)) typeName="cdrom"; - else if (-1!=mp->mountPoint().indexOf("cdwriter",0,Qt::CaseInsensitive)) typeName="cdwriter"; - else if (-1!=mp->mountedFrom().indexOf("cdwriter",0,Qt::CaseInsensitive)) typeName="cdwriter"; - else if (-1!=mp->mountedFrom().indexOf("cdrw",0,Qt::CaseInsensitive)) typeName="cdwriter"; - else if (-1!=mp->mountPoint().indexOf("cdrw",0,Qt::CaseInsensitive)) typeName="cdwriter"; - else if (-1!=mp->mountedFrom().indexOf("cdrecorder",0,Qt::CaseInsensitive)) typeName="cdwriter"; - else if (-1!=mp->mountPoint().indexOf("cdrecorder",0,Qt::CaseInsensitive)) typeName="cdwriter"; - else if (-1!=mp->mountedFrom().indexOf("dvdrecorder",0,Qt::CaseInsensitive)) typeName="dvdwriter"; - else if (-1!=mp->mountPoint().indexOf("dvdrecorder",0,Qt::CaseInsensitive)) typeName="dvdwriter"; - else if (-1!=mp->mountPoint().indexOf("dvdwriter",0,Qt::CaseInsensitive)) typeName="dvdwriter"; - else if (-1!=mp->mountedFrom().indexOf("dvdwriter",0,Qt::CaseInsensitive)) typeName="dvdwriter"; - else if (-1!=mp->mountPoint().indexOf("dvd",0,Qt::CaseInsensitive)) typeName="dvd"; - else if (-1!=mp->mountedFrom().indexOf("dvd",0,Qt::CaseInsensitive)) typeName="dvd"; - else if (-1!=mp->mountedFrom().indexOf("/dev/scd",0,Qt::CaseInsensitive)) typeName="cdrom"; - else if (-1!=mp->mountedFrom().indexOf("/dev/sr",0,Qt::CaseInsensitive)) typeName="cdrom"; + name += type + " "; - /* Guessing of floppy types */ - else if (-1!=mp->mountedFrom().indexOf("fd",0,Qt::CaseInsensitive)) { - if (-1!=mp->mountedFrom().indexOf("360",0,Qt::CaseInsensitive)) typeName="floppy5"; - if (-1!=mp->mountedFrom().indexOf("1200",0,Qt::CaseInsensitive)) typeName="floppy5"; - else typeName="floppy"; - } - else if (-1!=mp->mountPoint().indexOf("floppy",0,Qt::CaseInsensitive)) typeName="floppy"; + if( !fstype.isEmpty() ) + name += "(" + fstype + ") "; + if( !path.isEmpty() ) + name += "[" + path + "] "; - else if (-1!=mp->mountPoint().indexOf("zip",0,Qt::CaseInsensitive)) typeName="zip"; - else if (-1!=mp->mountType().indexOf("nfs",0,Qt::CaseInsensitive)) typeName="nfs"; - else if (-1!=mp->mountType().indexOf("smb",0,Qt::CaseInsensitive)) typeName="smb"; - else if (-1!=mp->mountedFrom().indexOf("//",0,Qt::CaseInsensitive)) typeName="smb"; - else typeName="hdd"; + name = name.trimmed(); - return typeName; + QStringList overlays; + if ( mounted ) { + overlays << "emblem-mounted"; + } else { + overlays << QString(); // We have to guarantee the placement of the next emblem + } + if (vol && vol->usage()==Solid::StorageVolume::Encrypted) { + overlays << "security-high"; + } + kicon = KIcon(icon, 0, overlays); + return true; } void MediaButton::slotPopupActivated( QAction * action ) { - if( action && action->data().canConvert<int>() ) + if( action && action->data().canConvert<QString>() ) { - int elem = action->data().toInt(); - if( !quasiMounted[ elem ] && iconNames[ elem ].endsWith( "_unmounted" ) ) { - mount( elem ); - waitingForMount = elem; - maxMountWait = 20; - newTabAfterMount = false; - mountCheckerTimer.setSingleShot( true ); - mountCheckerTimer.start( 1000 ); - return; - } - emit openUrl( urls[ elem ] ); - } -} - -void MediaButton::gettingSpaceData(const QString &mountPoint, quint64 kBSize, quint64, quint64 ) { - KUrl mediaURL = KUrl( mountPoint ); - - KIO::filesize_t size = kBSize; - size *= 1024; - QString sizeText = KIO::convertSize( size ); - - for( int i=0; i != urls.size(); i++ ) { - if( mediaURL.equals( urls[ i ], KUrl::CompareWithoutTrailingSlash ) ) { - if( kBSize == 0 ) { // if df gives 0, it means the device is quasy umounted - QString iconName = iconNames[ i ]; - if( iconNames[ i ].endsWith( "_mounted" ) ) { - quasiMounted[ i ] = true; - iconNames[ i ] = iconNames[ i ].replace( "_mounted", "_unmounted" ); + QString id = action->data().toString(); + if( id.startsWith( "remote:" ) ) + { + QString mountPoint = id.mid( 7 ); + + bool mounted = false; + KMountPoint::List currentMountList = KMountPoint::currentMountPoints(); + for (KMountPoint::List::iterator it = currentMountList.begin(); it != currentMountList.end(); ++it) { + if(( (*it)->mountType() == "nfs" || (*it)->mountType() == "smb" ) && + (*it)->mountPoint() == mountPoint ) { + mounted = true; + break; } - - KMimeType::Ptr mt = KMimeType::mimeType( iconNames[ i ] ); - QPixmap pixmap; - if( mt ) - pixmap = FL_LOADICON( mt->iconName() ); - - idActionMap[ i ]->setIcon( pixmap ); } - else if( iconNames[ i ].contains( "hdd_" ) ) - idActionMap[ i ]->setText( sizeText + " " + idActionMap[ i ]->text().trimmed() ); + + if( !mounted ) + mount( id, true, false ); + else + emit openUrl( KUrl( mountPoint ) ); return; } + Solid::Device device( id ); + + Solid::StorageAccess *access = device.as<Solid::StorageAccess>(); + if( access && !access->isAccessible() ) { + mount( id, true ); + return; + } + + if( access && !access->filePath().isEmpty() ) + emit openUrl( KUrl( access->filePath() ) ); } } @@ -417,102 +266,6 @@ } } -void MediaButton::addMountPoint( KMountPoint * mp, bool isMounted ) { - QString mountString = isMounted ? "_mounted" : "_unmounted"; - if( mp->mountPoint() == "/dev/swap" || - mp->mountPoint() == "/dev/pts" || - mp->mountPoint().startsWith( "/sys/kernel" ) || - mp->mountPoint().indexOf( "/proc" ) == 0 ) - return; - if( mp->mountType() == "swap" || - mp->mountType() == "sysfs" || - mp->mountType() == "tmpfs" || - mp->mountType() == "kernfs" || - mp->mountType() == "usbfs" || - mp->mountType() == "unknown" || - mp->mountType() == "none" || - mp->mountType() == "sunrpc" ) - return; - if( mp->mountedFrom() == "none" || - mp->mountedFrom() == "tmpfs" || - mp->mountedFrom().indexOf( "shm" ) != -1 ) - return; - - int overwrite = -1; - KUrl mountURL = KUrl( mp->mountPoint() ); - - for( int i=0; i != urls.size(); i++ ) - if( urls[ i ].equals( mountURL, KUrl::CompareWithoutTrailingSlash ) ) { - overwrite = i; - break; - } - - QString name; - QString type = detectType( mp ); - - /* WORKAROUND CODE START */ - /* add spaces to avoid widget resize in gettingSpaceData, - which is buggy in QT when transparency is set */ - QString extSpc = ( isMounted && type == "hdd" ) ? extraSpaces : ""; - /* WORKAROUND CODE END */ - - QString iconBase = "kr_"; - QString iconName = iconBase + type + mountString; - - if( type == "hdd" ) - name = i18n( "Hard Disk" ) ; - else if( type == "cdrom" ) - name = i18n( "CD-ROM" ); - else if( type == "cdwriter" ) - name = i18n( "CD Recorder" ); - else if( type == "dvdwriter" ) { - iconName = iconBase + "cdwriter" + mountString; - name = i18n( "DVD Recorder" ); - } - else if( type == "dvd" ) - name = i18n( "DVD" ); - else if( type == "smb" ) { - iconName = iconBase + "nfs" + mountString; - name = i18n( "Remote Share" ); - } - else if( type == "nfs" ) - name = i18n( "Remote Share" ); - else if( type == "floppy" ) - name = i18n( "Floppy" ); - else if( type == "floppy5" ) - name = i18n( "Floppy" ); - else if( type == "zip" ) - name = i18n( "Zip Disk" ); - else { - iconName = iconBase + "hdd" + mountString; - name = i18n( "Unknown" ); - } - - if( isMounted ) { - KDiskFreeSpace *sp = KDiskFreeSpace::findUsageInfo( mp->mountPoint() ); - connect( sp, SIGNAL( foundMountPoint( const QString &, quint64, quint64, quint64 ) ), - this, SLOT( gettingSpaceData( const QString&, quint64, quint64, quint64 ) ) ); - } - - QPixmap pixmap = FL_LOADICON( iconName ); - - if( overwrite == -1 ) { - int index = popupMenu->actions().count(); - urls.append( KUrl( mp->mountPoint() ) ); - iconNames.append( iconName ); - mediaUrls.append( KUrl() ); - quasiMounted.append( false ); - QAction * act = popupMenu->addAction( pixmap, name + " [" + mp->mountPoint() + "]" + extSpc ); - act->setData( QVariant( index ) ); - idActionMap[ index ] = act; - } - else { - iconNames[ overwrite ] = iconName; - idActionMap[ overwrite ]->setIcon( pixmap ); - idActionMap[ overwrite ]->setText( name + " [" + mp->mountPoint() + "]" + extSpc ); - } -} - bool MediaButton::eventFilter( QObject *o, QEvent *e ) { if( o == popupMenu ) { if( e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonRelease ) { @@ -520,10 +273,10 @@ if( m->button() == Qt::RightButton ) { if( e->type() == QEvent::MouseButtonPress ) { QAction * act = popupMenu->actionAt( m->pos() ); - int id = -1; - if( act && act->data().canConvert<int>() ) - id = act->data().toInt(); - if( id != -1 ) + QString id; + if( act && act->data().canConvert<QString>() ) + id = act->data().toString(); + if( !id.isEmpty() ) rightClickMenu( id ); } m->accept(); @@ -534,14 +287,40 @@ return false; } -void MediaButton::rightClickMenu( int index ) { +void MediaButton::rightClickMenu( QString udi ) { if( rightMenu ) rightMenu->close(); - QString iconName = iconNames[ index ]; - bool ejectable = iconName.contains( "dvd_" ) || iconName.contains( "dvdwriter_" ) || iconName.contains( "cdrom_" ) || iconName.contains( "cdwriter_" ); - bool mounted = iconName.contains( "_mounted" ); + bool network = udi.startsWith( "remote:" ); + bool ejectable = false; + bool mounted = false; + KUrl openURL; + if( network ) + { + QString mountPoint = udi.mid( 7 ); + openURL = KUrl( mountPoint ); + KMountPoint::List currentMountList = KMountPoint::currentMountPoints(); + for (KMountPoint::List::iterator it = currentMountList.begin(); it != currentMountList.end(); ++it) { + if(( (*it)->mountType() == "nfs" || (*it)->mountType() == "smb" ) && + (*it)->mountPoint() == mountPoint ) { + mounted = true; + break; + } + } + } else { + Solid::Device device( udi ); + + Solid::StorageAccess *access = device.as<Solid::StorageAccess>(); + Solid::OpticalDisc *optdisc = device.as<Solid::OpticalDisc>(); + if( access ) + openURL = KUrl( access->filePath() ); + if( access && access->isAccessible() ) + mounted = true; + if( optdisc ) + ejectable = true; + } + QMenu * myMenu = rightMenu = new QMenu( popupMenu ); QAction * actOpen = myMenu->addAction( i18n( "Open" ) ); actOpen->setData( QVariant( 1 ) ); @@ -577,144 +356,226 @@ case 1: case 2: popupMenu->close(); - if( mounted || quasiMounted[ index ] ) { + if( mounted ) { if( result == 1 ) - emit openUrl( urls[ index ] ); + emit openUrl( openURL ); else - SLOTS->newTab( urls[ index ] ); + SLOTS->newTab( openURL ); } else { - mount( index ); // mount first, when mounted open the tab - waitingForMount = index; - maxMountWait = 20; - newTabAfterMount = ( result == 2 ); - mountCheckerTimer.setSingleShot( true ); - mountCheckerTimer.start( 1000 ); + mount( udi, true, result == 2 ); // mount first, when mounted open the tab } break; case 3: - mount( index ); + mount( udi ); break; case 4: - umount( index ); + umount( udi ); break; case 5: - eject( index ); + eject( udi ); break; default: break; } } -bool MediaButton::mount( int index ) { - if ( index < iconNames.count() ) { - if( !mediaUrls[ index ].isEmpty() ) { - KProcess proc; - proc << KrServices::fullPathName( "kio_media_mounthelper" ) << "-m" << mediaUrls[ index ].url(); - proc.startDetached(); - } else { - krMtMan.mount( urls[ index ].path(), false ); - } +void MediaButton::mount( QString udi, bool open, bool newtab ) { + if( udi.startsWith( "remote:" ) ) { + QString mp = udi.mid( 7 ); + krMtMan.mount( mp, true ); + if( newtab ) + SLOTS->newTab( KUrl( mp ) ); + else + emit openUrl( KUrl( mp ) ); + return; } - return false; + Solid::Device device( udi ); + Solid::StorageAccess *access = device.as<Solid::StorageAccess>(); + if( access && !access->isAccessible() ) { + if( open ) + udiToOpen = device.udi(), openInNewTab = newtab; + connect( access, SIGNAL( setupDone(Solid::ErrorType, QVariant, const QString &) ), + this, SLOT( slotSetupDone(Solid::ErrorType, QVariant, const QString &) ) ); + access->setup(); + } } -bool MediaButton::umount( int index ) { - if ( index < iconNames.count() ) { - if( !mediaUrls[ index ].isEmpty() ) { - KProcess proc; - proc << KrServices::fullPathName( "kio_media_mounthelper" ) << "-u" << mediaUrls[ index ].url(); - proc.startDetached(); +void MediaButton::slotSetupDone(Solid::ErrorType error, QVariant errorData, const QString &udi) { + if ( error == Solid::NoError ) { + if( udi == udiToOpen ) { + Solid::StorageAccess *access = Solid::Device( udi ).as<Solid::StorageAccess>(); + if( access && access->isAccessible() ) { + if( openInNewTab ) + SLOTS->newTab( KUrl( access->filePath() ) ); + else + emit openUrl( KUrl( access->filePath() ) ); + } + udiToOpen = QString(), openInNewTab = false; + } + } else { + if( udi == udiToOpen ) + udiToOpen = QString(), openInNewTab = false; + QString name; + if( udiNameMap.contains( udi ) ) + name = udiNameMap[ udi ]; + + if (errorData.isValid()) { + KMessageBox::sorry( this, i18n("An error occurred while accessing '%1', the system responded: %2", + name, errorData.toString())); } else { - krMtMan.unmount( urls[ index ].path(), false ); + KMessageBox::sorry( this, i18n("An error occurred while accessing '%1'", + name)); } } - return false; } -bool MediaButton::eject( int index ) { - if ( index < iconNames.count() ) { - if( !mediaUrls[ index ].isEmpty() ) { - KProcess proc; - proc << KrServices::fullPathName( "kio_media_mounthelper" ) << "-e" << mediaUrls[ index ].url(); - proc.startDetached(); - } else { - krMtMan.eject( urls[ index ].path() ); +void MediaButton::umount( QString udi ) { + if( udi.startsWith( "remote:" ) ) { + krMtMan.unmount( udi.mid( 7 ), false ); + return; + } + Solid::Device device( udi ); + Solid::StorageAccess *access = device.as<Solid::StorageAccess>(); + if( access && access->isAccessible() ) { + connect( access, SIGNAL( teardownDone(Solid::ErrorType, QVariant, const QString &) ), + this, SLOT( slotTeardownDone(Solid::ErrorType, QVariant, const QString &) ) ); + access->teardown(); + } +} + +void MediaButton::slotTeardownDone(Solid::ErrorType error, QVariant errorData, const QString &udi) { + if (error != Solid::NoError && errorData.isValid()) { + KMessageBox::sorry( this, errorData.toString()); + } +} + +void MediaButton::eject( QString udi ) { + Solid::Device device( udi ); + Solid::OpticalDrive *drive = device.parent().as<Solid::OpticalDrive>(); + + if (drive!=0) { + connect(drive, SIGNAL(ejectDone(Solid::ErrorType, QVariant, const QString &)), + this, SLOT(slotTeardownDone(Solid::ErrorType, QVariant, const QString &))); + + drive->eject(); + } +} + +void MediaButton::slotAccessibilityChanged(bool accessible, const QString & udi) { + QList<QAction *> actionList = popupMenu->actions(); + foreach( QAction * act, actionList ) { + if( act && act->data().canConvert<QString>() && act->data().toString() == udi ) { + Solid::Device device(udi); + + QString name; + KIcon kdeIcon; + if( getNameAndIcon( device, name, kdeIcon ) ) { + act->setText( name ); + act->setIcon( kdeIcon ); + } + break; } } - return false; } -void MediaButton::slotTimeout() { - if( isHidden() && ( waitingForMount < 0 ) ) +void MediaButton::slotDeviceAdded(const QString& udi) { + if( popupMenu->isHidden() ) return; - KMountPoint::List mountList = KMountPoint::currentMountPoints(); + Solid::Device device( udi ); + Solid::StorageAccess *access = device.as<Solid::StorageAccess>(); + if( access == 0 ) + return; - for( int index = 0; index < urls.count(); index++ ) { - bool mounted = false; + QString name; + KIcon kdeIcon; + if( !getNameAndIcon( device, name, kdeIcon ) ) + return; - QString text = idActionMap[ index ]->text(); + QAction * act = popupMenu->addAction( kdeIcon, name ); + act->setData( QVariant( udi ) ); + udiNameMap[ udi ] = name; - if( mediaUrls[ index ].isEmpty() ) { - for (KMountPoint::List::iterator it = mountList.begin(); it != mountList.end(); ++it) - if( (*it)->mountPoint() == urls[ index ].path() ) { - mounted = true;; + connect(device.as<Solid::StorageAccess>(), SIGNAL(accessibilityChanged(bool, const QString &)), + this, SLOT(slotAccessibilityChanged(bool, const QString &))); +} + +void MediaButton::slotDeviceRemoved(const QString& udi) { + if( popupMenu->isHidden() ) + return; + + QList<QAction *> actionList = popupMenu->actions(); + foreach( QAction * act, actionList ) { + if( act && act->data().canConvert<QString>() && act->data().toString() == udi ) { + popupMenu->removeAction( act ); + delete act; + break; + } + } +} + +void MediaButton::slotTimeout() { + if( isHidden() ) + return; + + KMountPoint::List possibleMountList = KMountPoint::possibleMountPoints(); + KMountPoint::List currentMountList = KMountPoint::currentMountPoints(); + QList<QAction *> actionList = popupMenu->actions(); + + foreach( QAction * act, actionList ) { + if( act && act->data().canConvert<QString>() && act->data().toString().startsWith( "remote:" ) ) { + QString mountPoint = act->data().toString().mid( 7 ); + bool available = false; + + for (KMountPoint::List::iterator it = possibleMountList.begin(); it != possibleMountList.end(); ++it) { + if(( (*it)->mountType() == "nfs" || (*it)->mountType() == "smb" ) && + (*it)->mountPoint() == mountPoint ) { + available = true; break; } - } else { - KUrl uri = getLocalPath( mediaUrls[ index ], &mountList ); - if( uri.isLocalFile() ) { - urls[ index ] = uri; - mounted = true; - - if( !text.contains( uri.path() ) ) - { - if( text.endsWith( "]" ) ) - { - int ndx = text.lastIndexOf( " [" ); - if( ndx >0 ) - text.truncate( ndx ); - } - - text += " [" + uri.path() + "]"; - } } - else - { - if( text.endsWith( "]" ) ) - { - int ndx = text.lastIndexOf( " [" ); - if( ndx >0 ) - text.truncate( ndx ); - } + + if( !available ) { + popupMenu->removeAction( act ); + delete act; } } - - if( quasiMounted[ index ] ) // mounted but not listed with DF - mounted = false; - - if( iconNames[ index ].contains( "_mounted" ) && !mounted ) - iconNames[ index ] = iconNames[ index ].replace( "_mounted", "_unmounted" ); - if( iconNames[ index ].contains( "_unmounted" ) && mounted ) - iconNames[ index ] = iconNames[ index ].replace( "_unmounted", "_mounted" ); - - QPixmap pixmap = FL_LOADICON( iconNames[ index ] ); - idActionMap[ index ]->setIcon( pixmap ); - idActionMap[ index ]->setText( text ); - - if( ((int)index == waitingForMount) && mounted ) { - waitingForMount = -1; - if( newTabAfterMount ) - SLOTS->newTab( urls[ index ] ); - else - emit openUrl( urls[ index ] ); - } } - if( waitingForMount >= 0 ) { // maximum wait for mounting expired ? - if( --maxMountWait < 0 ) { - waitingForMount = -1; - return; + for (KMountPoint::List::iterator it = possibleMountList.begin(); it != possibleMountList.end(); ++it) { + if( (*it)->mountType() == "nfs" || (*it)->mountType() == "smb" ) { + QString path = (*it)->mountPoint(); + bool mounted = false; + QString udi = "remote:" + path; + + QAction * correspondingAct = 0; + foreach( QAction * act, actionList ) { + if(act && act->data().canConvert<QString>() && act->data().toString() == udi ) { + correspondingAct = act; + break; + } + } + for (KMountPoint::List::iterator it2 = currentMountList.begin(); it2 != currentMountList.end(); ++it2) { + if(( (*it2)->mountType() == "nfs" || (*it2)->mountType() == "smb" ) && + path == (*it2)->mountPoint() ) { + mounted = true; + break; + } + } + + QString name = i18n( "Remote Share" ) + " [" + (*it)->mountPoint() + "]"; + QStringList overlays; + if ( mounted ) + overlays << "emblem-mounted"; + KIcon kdeIcon("network-wired", 0, overlays); + + if( !correspondingAct ) { + QAction * act = popupMenu->addAction( kdeIcon, name ); + act->setData( QVariant( udi ) ); + } else { + correspondingAct->setText( name ); + correspondingAct->setIcon( kdeIcon ); + } } } @@ -722,5 +583,4 @@ mountCheckerTimer.start( 1000 ); } - #include "mediabutton.moc" Modified: trunk/krusader_kde4/krusader/GUI/mediabutton.h =================================================================== --- trunk/krusader_kde4/krusader/GUI/mediabutton.h 2008-08-14 17:49:47 UTC (rev 6065) +++ trunk/krusader_kde4/krusader/GUI/mediabutton.h 2008-08-20 20:10:18 UTC (rev 6066) @@ -36,11 +36,11 @@ #include <QEvent> #include <QMenu> #include <kurl.h> -#include <kio/jobclasses.h> #include <qlist.h> -#include <kmountpoint.h> -#include <qtimer.h> #include <qmap.h> +#include <solid/device.h> +#include <solid/solidnamespace.h> +#include <qtimer.h> /** *@author Csaba Karai @@ -48,6 +48,7 @@ class QMenu; class KMountPoint; +class KIcon; class MediaButton : public QToolButton { Q_OBJECT @@ -55,17 +56,15 @@ MediaButton(QWidget *parent=0); ~MediaButton(); - QString detectType( KMountPoint *mp ); - public slots: void slotAboutToShow(); void slotAboutToHide(); - void slotTimeout(); void slotPopupActivated( QAction * ); - void gettingSpaceData(const QString &mountPoint, quint64 kBSize, quint64 kBUsed, quint64 kBAvail); + void slotAccessibilityChanged(bool, const QString &); + void slotDeviceAdded(const QString&); + void slotDeviceRemoved(const QString&); void showMenu(); - void slotEntries( KIO::Job*, const KIO::UDSEntryList& ); - void slotListResult( KJob* ); + void slotTimeout(); signals: void openUrl(const KUrl&); @@ -73,40 +72,30 @@ protected: bool eventFilter( QObject *o, QEvent *e ); + bool getNameAndIcon( Solid::Device &, QString &, KIcon &); private: - void createListWithMedia(); - void createListWithoutMedia(); + void createMediaList(); - KUrl getLocalPath( const KUrl &, KMountPoint::List * list = 0 ); - bool mount( int ); - bool umount( int ); - bool eject( int ); + QList<Solid::Device> storageDevices; - void rightClickMenu( int ); + void mount( QString, bool open=false, bool newtab = false ); + void umount( QString ); + void eject( QString ); - void addMountPoint( KMountPoint *mp, bool isMounted ); + void rightClickMenu( QString ); - QMenu *popupMenu; - QMenu *rightMenu; +private slots: + void slotSetupDone(Solid::ErrorType error, QVariant errorData, const QString &udi); + void slotTeardownDone(Solid::ErrorType error, QVariant errorData, const QString &udi); - bool hasMedia; - bool busy; - - int waitingForMount; - bool newTabAfterMount; - int maxMountWait; - - QList<KUrl> urls; - QList<KUrl> mediaUrls; - QList<QString> iconNames; - QList<bool> quasiMounted; - - QString extraSpaces; //prevents from increasing the size of the widget - +private: + QMenu *popupMenu; + QMenu *rightMenu; + QString udiToOpen; + bool openInNewTab; + QMap<QString, QString> udiNameMap; QTimer mountCheckerTimer; - - QMap<int,QAction *> idActionMap; }; #endif /* MEDIABUTTON_H */ Modified: trunk/krusader_kde4/krusader/Konfigurator/kgadvanced.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kgadvanced.cpp 2008-08-14 17:49:47 UTC (rev 6065) +++ trunk/krusader_kde4/krusader/Konfigurator/kgadvanced.cpp 2008-08-20 20:10:18 UTC (rev 6066) @@ -48,23 +48,13 @@ QGroupBox *generalGrp = createFrame( i18n( "General" ), this ); QGridLayout *generalGrid = createGridLayout( generalGrp ); - bool dontUseMedia = false; - - bool isMediaProtocolPresent = KProtocolInfo::isKnownProtocol( QString( "media" ) ); - if( !isMediaProtocolPresent ) - dontUseMedia = true; - KONFIGURATOR_CHECKBOX_PARAM generalSettings[] = // cfg_class cfg_name default text restart tooltip {{"Advanced","PreserveAttributes", _PreserveAttributes, i18n( "Preserve attributes for local copy/move (slower)" ), false, i18n( "Krusader will try to preserve all attributes (time, owner, group) of the local files according to the source depending on your permissions:<ul><li>User preserving if you are root</li><li>Group preserving if you are root or member of the group</li><li>Preserving the timestamp</li></ul><b>Note</b>: This can slow down the copy process." ) }, - {"Advanced","AutoMount", _AutoMount, i18n( "Automount filesystems" ), false, i18n( "When stepping into a directory which is defined as a mount point in the <b>fstab</b>, try mounting it with the defined parameters." )}, - {"Advanced","DontUseMediaProt", dontUseMedia, i18n( "Don't use KDE's media protocol for media button (if it's buggy or missing)" ), false, i18n( "Select if your media protocol is buggy (in some older KDE versions), or not present (no kdebase package installed)." )}}; + {"Advanced","AutoMount", _AutoMount, i18n( "Automount filesystems" ), false, i18n( "When stepping into a directory which is defined as a mount point in the <b>fstab</b>, try mounting it with the defined parameters." )} }; - KonfiguratorCheckBoxGroup *generals = createCheckBoxGroup( 1, 0, generalSettings, 3, generalGrp ); + KonfiguratorCheckBoxGroup *generals = createCheckBoxGroup( 1, 0, generalSettings, 2, generalGrp ); - if( !isMediaProtocolPresent ) - generals->find( "DontUseMediaProt" )->setEnabled( false ); - generalGrid->addWidget( generals, 1, 0 ); addLabel( generalGrid, 2, 0, i18n( "MountMan won't (un)mount the following mount-points:" ), Modified: trunk/krusader_kde4/krusader/Konfigurator/kgcolors.cpp =================================================================== --- trunk/krusader_kde4/krusader/Konfigurator/kgcolors.cpp 2008-08-14 17:49:47 UTC (rev 6065) +++ trunk/krusader_kde4/krusader/Konfigurator/kgcolors.cpp 2008-08-20 20:10:18 UTC (rev 6066) @@ -204,6 +204,22 @@ colorsGrid->addWidget(createSpacer(colorsGrp), itemList.count() - offset, 1); + colorsGrp = new QWidget( colorTabWidget ); + colorTabWidget->addTab( colorsGrp, i18n( "Other" ) ); + + colorsGrid = new QGridLayout( colorsGrp ); + colorsGrid->setSpacing( 0 ); + colorsGrid->setContentsMargins( 2, 2, 2, 2 ); + + offset = endOfPanelColors = itemList.count(); + + addColorSelector( "Quicksearch Match Foreground", i18n( "Quicksearch, match foreground:" ), Qt::black, QString(), &KDEDefaultFore, 1 ); + addColorSelector( "Quicksearch Match Background", i18n( "Quicksearch, non-match background:" ), QColor( 192, 255, 192 ), QString(), &KDEDefaultBase, 1 ); + addColorSelector( "Quicksearch Non-match Foreground", i18n( "Quicksearch, non-match foreground:" ), Qt::black, QString(), &KDEDefaultFore, 1 ); + addColorSelector( "Quicksearch Non-match Background", i18n( "Quicksearch, non-match background:" ), QColor(255,192,192), QString(), &KDEDefaultBase, 1 ); + + colorsGrid->addWidget(createSpacer(colorsGrp), itemList.count() - offset, 1); + colorsFrameGrid->addWidget( colorTabWidget, 0, 0 ); hbox->addWidget( colorsFrameGrp ); @@ -502,6 +518,14 @@ getColorSelector( "Synchronizer RightCopy Background" )->getColor() ); pwDelete->setColor( getColorSelector( "Synchronizer Delete Foreground" )->getColor(), getColorSelector( "Synchronizer Delete Background" )->getColor() ); + }else if( currentPage == 3 ) + { + PreviewItem *pwNonMatch = new PreviewItem( preview, i18n( "Quicksearch non-match" ) ); + PreviewItem *pwMatch = new PreviewItem( preview, i18n( "Quicksearch match" ) ); + pwMatch->setColor ( getColorSelector( "Quicksearch Match Foreground" )->getColor(), + getColorSelector( "Quicksearch Match Background" )->getColor() ); + pwNonMatch->setColor ( getColorSelector( "Quicksearch Non-match Foreground" )->getColor(), + getColorSelector( "Quicksearch Non-match Background" )->getColor() ); } } @@ -588,6 +612,10 @@ serializeItem(stream, "Synchronizer RightCopy Background"); serializeItem(stream, "Synchronizer Delete Foreground"); serializeItem(stream, "Synchronizer Delete Background"); + serializeItem(stream, "Quicksearch Match Foreground"); + serializeItem(stream, "Quicksearch Match Background"); + serializeItem(stream, "Quicksearch Non-match Foreground" ); + serializeItem(stream, "Quicksearch Non-match Background" ); stream << QString("") << QString(""); } @@ -629,7 +657,7 @@ { stream << QString(name); if( strcmp( name, "KDE Default" ) == 0 || strcmp( name, "Enable Alternate Background" ) == 0 || - strcmp( name, "Show Current Item Always" ) == 0 || strcmp( name, "Dim Inactive Colors" ) ) + strcmp( name, "Show Current Item Always" ) == 0 || strcmp( name, "Dim Inactive Colors" ) == 0 ) { bool bValue = generals->find( name )->isChecked(); stream << QString( bValue ? "true" : "false" ); Modified: trunk/krusader_kde4/krusader/Panel/krbriefview.cpp =================================================================== --- trunk/krusader_kde4/krusader/Panel/krbriefview.cpp 2008-08-14 17:49:47 UTC (rev 6065) +++ trunk/krusader_kde4/krusader/Panel/krbriefview.cpp 2008-08-20 20:10:18 UTC (rev 6066) @@ -129,16 +129,6 @@ header->installEventFilter( this ); header->show(); - - // connect quicksearch - connect( op(), SIGNAL( quickSearch( const QString& ) ), - this, SLOT( quickSearch( const QString& ) ) ); - connect( op(), SIGNAL( quickSearch( const QString& , int ) ), - this, SLOT( quickSearch( const QString& , int ) ) ); - connect( op(), SIGNAL( stopQuickSearch( QKeyEvent* ) ), - this, SLOT( stopQuickSearch( QKeyEvent* ) ) ); - connect( op(), SIGNAL( handleQuickSearchEvent( QKeyEvent* ) ), - this, SLOT( handleQuickSearchEvent( QKeyEvent* ) ) ); } KrBriefView::~KrBriefView() { @@ -363,18 +353,6 @@ void KrBriefView::prepareForPassive() { KrView::prepareForPassive(); CANCEL_TWO_CLICK_RENAME; - KConfigGroup grpSvr( _config, "Look&Feel" ); - if ( grpSvr.readEntry( "New Style Quicksearch", _NewStyleQuicksearch ) ) { - if ( MAIN_VIEW ) { - if ( ACTIVE_PANEL ) { - if ( ACTIVE_PANEL->quickSearch ) { - if ( ACTIVE_PANEL->quickSearch->isShown() ) { - stopQuickSearch( 0 ); - } - } - } - } - } } void KrBriefView::slotItemDescription( Q3IconViewItem * item ) { @@ -385,34 +363,7 @@ op()->emitItemDescription(desc); } -void KrBriefView::handleQuickSearchEvent( QKeyEvent * e ) { - switch ( e->key() ) { - case Qt::Key_Insert: - { - QKeyEvent ev = QKeyEvent( QKeyEvent::KeyPress, Qt::Key_Space, 0, 0 ); - K3IconView::keyPressEvent( & ev ); - ev = QKeyEvent( QKeyEvent::KeyPress, Qt::Key_Down, 0, 0 ); - keyPressEvent( & ev ); - break; - } - case Qt::Key_Home: - { - Q3IconView::setCurrentItem( firstItem() ); - QKeyEvent ev = QKeyEvent( QKeyEvent::KeyPress, Qt::Key_Down, 0, 0 ); - keyPressEvent( & ev ); - break; - } - case Qt::Key_End: - { - Q3IconView::setCurrentItem( firstItem() ); - QKeyEvent ev = QKeyEvent( QKeyEvent::KeyPress, Qt::Key_Up, 0, 0 ); - keyPressEvent( & ev ); - break; - } - } -} - void KrBriefView::slotCurrentChanged( Q3IconViewItem * item ) { CANCEL_TWO_CLICK_RENAME; if ( !item ) @@ -529,7 +480,7 @@ if ( ACTIVE_PANEL ) { if ( ACTIVE_PANEL->quickSearch ) { if ( ACTIVE_PANEL->quickSearch->isShown() ) { - stopQuickSearch( 0 ); + op()->stopQuickSearch( 0 ); } } } @@ -776,159 +727,25 @@ // TODO: the following 3 functions should somehow fit into this one. Csaba, did you implement this one? } -#if 0 -void KrBriefView::imStartEvent(QIMEvent* e) -{ - if ( ACTIVE_PANEL->quickSearch->isShown() ) { - ACTIVE_PANEL->quickSearch->myIMStartEvent( e ); - return ; - }else { - KConfigGroup grpSvr( _config, "Look&Feel" ); - if ( !grpSvr.readEntry( "New Style Quicksearch", _NewStyleQuicksearch ) ) - K3IconView::imStartEvent( e ); - else { - // first, show the quicksearch if its hidden - if ( ACTIVE_PANEL->quickSearch->isHidden() ) { - ACTIVE_PANEL->quickSearch->show(); - // hack: if the pressed key requires a scroll down, the selected - // item is "below" the quick search window, as the icon view will - // realize its new size after the key processing. The following line - // will resize the icon view immediately. - ACTIVE_PANEL->layout->activate(); - // second, we need to disable the dirup action - hack! - krDirUp->setEnabled( false ); - } - // now, send the key to the quicksearch - ACTIVE_PANEL->quickSearch->myIMStartEvent( e ); - } - } -} +int KrBriefView::itemsPerPage() { + Q3IconViewItem * item = firstItem(); + if( item == 0 ) + return 0; -void KrBriefView::imEndEvent(QIMEvent* e) -{ - if ( ACTIVE_PANEL->quickSearch->isShown() ) { - ACTIVE_PANEL->quickSearch->myIMEndEvent( e ); - return ; - } -} + QRect r( item->rect() ); + if( r.height() == 0 ) + return 0; -void KrBriefView::imComposeEvent(QIMEvent* e) -{ - if ( ACTIVE_PANEL->quickSearch->isShown() ) { - ACTIVE_PANEL->quickSearch->myIMComposeEvent( e ); - return ; - } + return visibleHeight() / r.height(); } -#endif void KrBriefView::keyPressEvent( QKeyEvent * e ) { if ( !e || !firstItem() ) return ; // subclass bug - if ( ACTIVE_PANEL->quickSearch->isShown() ) { - ACTIVE_PANEL->quickSearch->myKeyPressEvent( e ); - return ; - } + if(( e->key() != Qt::Key_Left && e->key() != Qt::Key_Right ) && + ( handleKeyEvent( e ) ) ) // did the view class handled the event? + return; switch ( e->key() ) { - case Qt::Key_Up : - if ( e->modifiers() == Qt::ControlModifier ) { // let the panel handle it - jump to the Location Bar - e->ignore(); - break; - } else if (!KrSelectionMode::getSelectionHandler()->useQTSelection()) { - Q3IconViewItem * i = currentItem(); - if ( !i ) break; - if ( e->modifiers() == Qt::ShiftModifier ) setSelected( i, !i->isSelected(), true ); - i = i->prevItem(); - if ( i ) { - Q3IconView::setCurrentItem( i ); - Q3IconView::ensureItemVisible( i ); - } - } else K3IconView::keyPressEvent(e); - break; - case Qt::Key_Down : - if ( e->modifiers() == Qt::ControlModifier || e->modifiers() == ( Qt::ControlModifier | Qt::ShiftModifier ) ) { // let the panel handle it - jump to command line - e->ignore(); - break; - } else if (!KrSelectionMode::getSelectionHandler()->useQTSelection()){ - Q3IconViewItem * i = currentItem(); - if ( !i ) break; - if ( e->modifiers() == Qt::ShiftModifier ) setSelected( i, !i->isSelected(), true ); - i = i->nextItem(); - if ( i ) {Q3IconView::setCurrentItem( i ); Q3IconView::ensureItemVisible( i ); } - } else K3IconView::keyPressEvent(e); - break; - case Qt::Key_Next: if (!KrSelectionMode::getSelectionHandler()->useQTSelection()){ - Q3IconViewItem * i = currentItem(), *j; - if ( !i ) break; - QRect r( i->rect() ); - if ( !r.height() ) break; - for ( int page = visibleHeight() / r.height() - 1; page > 0 && ( j = i->nextItem() ); --page ) - i = j; - if ( i ) {Q3IconView::setCurrentItem( i ); Q3IconView::ensureItemVisible( i ); } - } else K3IconView::keyPressEvent(e); - break; - case Qt::Key_Prior: if (!KrSelectionMode::getSelectionHandler()->useQTSelection()){ - Q3IconViewItem * i = currentItem(), *j; - if ( !i ) break; - QRect r( i->rect() ); - if ( !r.height() ) break; - for ( int page = visibleHeight() / r.height() - 1; page > 0 && ( j = i->prevItem() ); --page ) - i = j; - if ( i ) {Q3IconView::setCurrentItem( i ); Q3IconView::ensureItemVisible( i ); } - } else K3IconView::keyPressEvent(e); - break; - case Qt::Key_Home: if (!KrSelectionMode::getSelectionHandler()->useQTSelection()){ - if ( e->modifiers() & Qt::ShiftModifier ) /* Shift+Home */ - { - clearSelection(); - K3IconView::keyPressEvent( e ); - op()->emitSelectionChanged(); - arrangeItemsInGrid(); - break; - } else { - Q3IconViewItem * i = firstItem(); - if ( i ) {Q3IconView::setCurrentItem( i ); Q3IconView::ensureItemVisible( i ); } - } - } else K3IconView::keyPressEvent(e); - break; - case Qt::Key_End: if (!KrSelectionMode::getSelectionHandler()->useQTSelection()){ - if ( e->modifiers() & Qt::ShiftModifier ) /* Shift+End */ - { - clearSelection(); - K3IconView::keyPressEvent( e ); - op()->emitSelectionChanged(); - arrangeItemsInGrid(); - break; - } else { - Q3IconViewItem *i = firstItem(), *j; - while ( ( j = i->nextItem() ) ) - i = j; - while ( ( j = i->nextItem() ) ) - i = j; - if ( i ) {Q3IconView::setCurrentItem( i ); Q3IconView::ensureItemVisible( i ); } - break; - } - } else K3IconView::keyPressEvent(e); - break; - case Qt::Key_Enter : - case Qt::Key_Return : { - if ( e->modifiers() & Qt::ControlModifier ) // let the panel handle it - e->ignore(); - else { - KrViewItem * i = getCurrentKrViewItem(); - QString tmp = i->name(); - op()->emitExecuted(tmp); - } - break; - } - case Qt::Key_QuoteLeft : // Terminal Emulator bugfix - if ( e->modifiers() == Qt::ControlModifier ) { // let the panel handle it - e->ignore(); - break; - } else { // a normal click - do a lynx-like moving thing - SLOTS->home(); // ask krusader to move up a directory - return ; // safety - } - break; case Qt::Key_Right : if ( e->modifiers() == Qt::ControlModifier ) { // let the panel handle it e->ignore(); @@ -971,14 +788,6 @@ } } else K3IconView::keyPressEvent(e); break; - case Qt::Key_Backspace : // Terminal Emulator bugfix - if ( e->modifiers() == Qt::ControlModifier || e->modifiers() == Qt::ShiftModifier ) { // let the panel handle it - e->ignore(); - break; - } else { // a normal click - do a lynx-like moving thing - SLOTS->dirUp(); // ask krusader to move up a directory - return ; // safety - } case Qt::Key_Left : if ( e->modifiers() == Qt::ControlModifier ) { // let the panel handle it e->ignore(); @@ -1020,108 +829,9 @@ } } else K3IconView::keyPressEvent(e); break; - - case Qt::Key_Delete : // kill file - SLOTS->deleteFiles( e->modifiers() == Qt::ShiftModifier || e->modifiers() == Qt::ControlModifier ); - - break ; - case Qt::Key_Insert : { - { - Q3IconViewItem *i = currentItem(); - if( !i ) - break; - - if (KrSelectionMode::getSelectionHandler()->insertMovesDown()) - { - setSelected( i, !i->isSelected(), true ); - if( i->nextItem() ) - { - Q3IconView::setCurrentItem( i->nextItem() ); - Q3IconView::ensureItemVisible( i->nextItem() ); - } - } - else - { - setSelected( i, !i->isSelected(), true ); - } - } - break ; - } - case Qt::Key_Space : { - { - Q3IconViewItem *i = currentItem(); - if( !i ) - break; - - if (KrSelectionMode::getSelectionHandler()->spaceMovesDown()) - { - setSelected( i, !i->isSelected(), true ); - if( i->nextItem() ) - { - Q3IconView::setCurrentItem( i->nextItem() ); - Q3IconView::ensureItemVisible( i->nextItem() ); - } - } - else - { - setSelected( i, !i->isSelected(), true ); - } - } - break ; - } - case Qt::Key_A : // mark all - if ( e->modifiers() == Qt::ControlModifier ) { - K3IconView::keyPressEvent( e ); - updateView(); - break; - } default: - if ( e->key() == Qt::Key_Escape ) { - Q3IconView::keyPressEvent( e ); return ; // otherwise the selection gets lost??!?? - } - // if the ke... [truncated message content] |
From: <cod...@us...> - 2008-08-14 17:49:40
|
Revision: 6065 http://krusader.svn.sourceforge.net/krusader/?rev=6065&view=rev Author: codeknight Date: 2008-08-14 17:49:47 +0000 (Thu, 14 Aug 2008) Log Message: ----------- ADDED: Manage Useractions: "Run in embedded terminal emulator" ADDED: Manage Useractions: added checkbox "enabled" ADDED: Root mode Krusader configuration, use eg. gksu instead of kdesu Modified Paths: -------------- trunk/krusader_kde4/doc/ChangeLog trunk/krusader_kde4/doc/en/commands.docbook trunk/krusader_kde4/doc/en/useractions.docbook Modified: trunk/krusader_kde4/doc/ChangeLog =================================================================== --- trunk/krusader_kde4/doc/ChangeLog 2008-08-12 22:47:05 UTC (rev 6064) +++ trunk/krusader_kde4/doc/ChangeLog 2008-08-14 17:49:47 UTC (rev 6065) @@ -5,9 +5,11 @@ ================================== Date: + ADDED: Manage Useractions: "Run in embedded terminal emulator" + ADDED: Manage Useractions: added checkbox "enabled" + ADDED: Root mode Krusader configuration, use eg. gksu instead of kdesu + ADDED: Mac OS-X installation instructions for KDE4 -ADDED: Mac OS-X installation instructions for KDE4 - 2.0.0-beta1 "Phoenix Egg" ================================== Date: 2008-07-06 Modified: trunk/krusader_kde4/doc/en/commands.docbook =================================================================== --- trunk/krusader_kde4/doc/en/commands.docbook 2008-08-12 22:47:05 UTC (rev 6064) +++ trunk/krusader_kde4/doc/en/commands.docbook 2008-08-14 17:49:47 UTC (rev 6065) @@ -1223,8 +1223,11 @@ </menuchoice> </term> <listitem> - <para>Starts &krusader; in - &rootmode-lnk; at the same location.</para> + <para>Starts &krusader; in &rootmode-lnk; at the same location. + Root mode &krusader; requires <command>kdesu</command> by default, + if <command>kdesu</command> is not available or if you prefer ⪚ + <command>gksu</command> when using &gnome-url; you can change this behaviour in the + &konfigdependencie-lnk;.</para> <caution> <para>Be careful when using &krusader; with ROOT PRIVILEGES.</para> Modified: trunk/krusader_kde4/doc/en/useractions.docbook =================================================================== --- trunk/krusader_kde4/doc/en/useractions.docbook 2008-08-12 22:47:05 UTC (rev 6064) +++ trunk/krusader_kde4/doc/en/useractions.docbook 2008-08-14 17:49:47 UTC (rev 6065) @@ -154,9 +154,7 @@ the current item will also show up in the right click menu.</para> <para> - <emphasis role="bold"> - <guimenuitem>Basic Properties</guimenuitem> - </emphasis> + <emphasis role="bold">Basic Properties</emphasis> </para> <para> <guimenuitem>"Distinct Name", "Title" and "Command @@ -165,81 +163,86 @@ <itemizedlist> <listitem> <para> - <guimenuitem>"Distinct Name"</guimenuitem>: A unique name of + <guimenuitem>Distinct Name</guimenuitem>: A unique name of the UserAction, used to identify it for &kde;'s action system.</para> </listitem> <listitem> <para> - <guimenuitem>"Icon button"</guimenuitem>: The icon for your + <guimenuitem>Icon button</guimenuitem>: The icon for your UserAction.</para> </listitem> <listitem> <para> - <guimenuitem>"Category"</guimenuitem>: Adds a category for a + <guimenuitem>Category</guimenuitem>: Adds a category for a better overview. NOTE: This property is not used yet. It is planned to be used, but has not implemented yet.</para> </listitem> <listitem> <para> - <guimenuitem>"Title"</guimenuitem>: The title displayed in + <guimenuitem>Title</guimenuitem>: The title displayed in the menus or dialogs.</para> </listitem> <listitem> <para> - <guimenuitem>"Tooltip"</guimenuitem>: A tooltip for your + <guimenuitem>Tooltip</guimenuitem>: A tooltip for your UserAction, ⪚ displayed in the toolbar on mouseover.</para> </listitem> <listitem> <para> - <guimenuitem>"Description"</guimenuitem>: A description of + <guimenuitem>Description</guimenuitem>: A description of what the UserAction does. This is also displayed as - <guimenuitem>"What's This"</guimenuitem> if you + <guimenuitem>What's This</guimenuitem> if you <keycombo action="simul">&Shift; <keycap>F1</keycap></keycombo> click on your UserAction.</para> </listitem> <listitem> <para> - <guimenuitem>"Use Tooltip checkbox"</guimenuitem>: Uses the + <guimenuitem>Use Tooltip checkbox</guimenuitem>: Uses the tooltip as description.</para> </listitem> <listitem> <para> - <guimenuitem>"Command line"</guimenuitem>: The command which + <guimenuitem>Command line</guimenuitem>: The command which will be executed. You can add placeholder using a GUI with the <guibutton>add</guibutton> button.</para> </listitem> <listitem> <para> - <guimenuitem>"Startpath"</guimenuitem>: The working directory + <guimenuitem>Startpath</guimenuitem>: The working directory for the command which will be executed.</para> </listitem> <listitem> <para> - <guimenuitem>"Execution mode"</guimenuitem>:</para> + <guimenuitem>Execution mode</guimenuitem>:</para> <itemizedlist> <listitem> <para> - <guimenuitem>"Normal"</guimenuitem>: Normal execution + <guimenuitem>Normal</guimenuitem>: Normal execution mode.</para> </listitem> <listitem> <para> - <guimenuitem>"Run in terminal"</guimenuitem>: Runs the + <guimenuitem>Run in terminal</guimenuitem>: Runs the command in the terminal.</para> </listitem> <listitem> <para> - <guimenuitem>"Collect output"</guimenuitem>: Collects the + <guimenuitem>Run in embedded terminal emulator</guimenuitem>: Runs the + command in the embedded terminal.</para> + </listitem> + <listitem> + <para> + <guimenuitem>Collect output</guimenuitem>: Collects the output of the executed program in a &GUI; window.</para> </listitem> <listitem> <para> - <guimenuitem>"Separate standard error"</guimenuitem>: + <guimenuitem>Separate standard error</guimenuitem>: When "Collect output" is used the stdout and stderr are separately collected.</para> </listitem> @@ -247,16 +250,16 @@ </listitem> <listitem> <para> - <guimenuitem>"Command accepts"</guimenuitem>:</para> + <guimenuitem>Command accepts</guimenuitem>:</para> <itemizedlist> <listitem> <para> - <guimenuitem>"Local files (no URLs)"</guimenuitem>: Tells + <guimenuitem>Local files (no URLs)</guimenuitem>: Tells the placeholder it should return local addresses.</para> </listitem> <listitem> <para> - <guimenuitem>"URLs (local and remote)"</guimenuitem>: + <guimenuitem>URLs (local and remote)</guimenuitem>: Tells the placeholder it should return &URL;s.</para> </listitem> @@ -271,12 +274,17 @@ </listitem> --> <listitem> <para> - <guimenuitem>"Shortcut button"</guimenuitem>: Configures a + <guimenuitem>Default shortcut</guimenuitem>: Configures a default shortcut for the UserAction.</para> </listitem> + <listitem> + <para> + <guimenuitem>Enabled</guimenuitem>: if checked, the useraction is shown in the &usermenu-lnk;, + otherwise the useraction will be hidden.</para> + </listitem> </itemizedlist></para> <para> - <emphasis role="bold">Command-line syntax:</emphasis> + <emphasis role="bold">Command-line syntax</emphasis> </para> <para>Basically, everything you type in the command line will get executed (if you type "ls -l", "ls -l" gets executed). You have @@ -620,9 +628,7 @@ called at execution time (meaning after all placeholders are replaced).</para> <para> - <emphasis role="bold"> - <guimenuitem>Advanced Properties</guimenuitem> - </emphasis> + <emphasis role="bold">Advanced Properties</emphasis> </para> <para>Here you can configure where your command should be visible (for the right click menu) In addition, it is possible to change This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ck...@us...> - 2008-08-12 22:46:59
|
Revision: 6064 http://krusader.svn.sourceforge.net/krusader/?rev=6064&view=rev Author: ckarai Date: 2008-08-12 22:47:05 +0000 (Tue, 12 Aug 2008) Log Message: ----------- Bookmark fixes Modified Paths: -------------- trunk/krusader_kde4/ChangeLog trunk/krusader_kde4/krusader/BookMan/krbookmark.cpp trunk/krusader_kde4/krusader/BookMan/krbookmarkhandler.cpp Modified: trunk/krusader_kde4/ChangeLog =================================================================== --- trunk/krusader_kde4/ChangeLog 2008-08-12 21:42:09 UTC (rev 6063) +++ trunk/krusader_kde4/ChangeLog 2008-08-12 22:47:05 UTC (rev 6064) @@ -1,6 +1,8 @@ ADDED: Useractions: added checkbox "enabled" and run mode option "Run in embedded terminal emulator" + FIXED: "local network" bookmark didn't work + FIXED: bookmark menu was not always closed after opening a bookmark FIXED: [ 2017011 ] Crash when changing the Qt theme FIXED: icons for symlinks are corrupted FIXED: [ 2023599 ] start root mode Krusader works again (thanks to gladiac) Modified: trunk/krusader_kde4/krusader/BookMan/krbookmark.cpp =================================================================== --- trunk/krusader_kde4/krusader/BookMan/krbookmark.cpp 2008-08-12 21:42:09 UTC (rev 6063) +++ trunk/krusader_kde4/krusader/BookMan/krbookmark.cpp 2008-08-12 22:47:05 UTC (rev 6064) @@ -88,7 +88,7 @@ KrBookmark *bm = getExistingBookmark ( i18n ( NAME_LAN ), collection ); if ( !bm ) { - bm = new KrBookmark ( i18n ( NAME_LAN ), KUrl("lan:/"), collection ); + bm = new KrBookmark ( i18n ( NAME_LAN ), KUrl("remote:/"), collection ); bm->setIcon ( krLoader->loadIcon ( "network-wired", KIconLoader::Small ) ); } return bm; Modified: trunk/krusader_kde4/krusader/BookMan/krbookmarkhandler.cpp =================================================================== --- trunk/krusader_kde4/krusader/BookMan/krbookmarkhandler.cpp 2008-08-12 21:42:09 UTC (rev 6063) +++ trunk/krusader_kde4/krusader/BookMan/krbookmarkhandler.cpp 2008-08-12 22:47:05 UTC (rev 6064) @@ -593,6 +593,8 @@ // bookmark is opened in a new tab. ugly, but easier than overloading // KAction and KActionCollection. void KrBookmarkHandler::slotActivated(const KUrl& url) { + if( _mainBookmarkPopup && !_mainBookmarkPopup->isHidden() ) + _mainBookmarkPopup->close(); if (_middleClick) SLOTS->newTab(url); else SLOTS->refresh(url); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cod...@us...> - 2008-08-12 21:42:01
|
Revision: 6063 http://krusader.svn.sourceforge.net/krusader/?rev=6063&view=rev Author: codeknight Date: 2008-08-12 21:42:09 +0000 (Tue, 12 Aug 2008) Log Message: ----------- major update: mac porting instructions Modified Paths: -------------- trunk/krusader_kde4/doc/en/installation.docbook Modified: trunk/krusader_kde4/doc/en/installation.docbook =================================================================== --- trunk/krusader_kde4/doc/en/installation.docbook 2008-08-12 21:40:45 UTC (rev 6062) +++ trunk/krusader_kde4/doc/en/installation.docbook 2008-08-12 21:42:09 UTC (rev 6063) @@ -600,7 +600,7 @@ <sect1 id="kde4_lin_install"> <title>Installing on Linux and BSD platforms</title> -<para><command>-DQT_INCLUDES=/usr/share/qt4/include</command> is the location of the QT4 includes</para> +<para><command>-DQT_INCLUDES=/usr/share/qt4/include</command> is the location of the &Qt;4 includes</para> <para><command>-DCMAKE_INSTALL_PREFIX=/usr/</command> is the location where Krusader will be installed with the make command.</para> @@ -612,10 +612,10 @@ <para> <screen> <prompt>$</prompt> <userinput><command>tar -xzvf</command> <option>krusader_kde4.tar.gz</option></userinput> - <prompt>$</prompt> <userinput><command>cd </command> <option>krusader_kde4</option></userinput> - <prompt>$</prompt> <userinput><command>cmake </command> <option>-DCMAKE_INSTALL_PREFIX=/usr/ -DQT_INCLUDES=/usr/share/qt4/include</option></userinput> + <prompt>$</prompt> <userinput><command>cd</command> <option>krusader_kde4</option></userinput> + <prompt>$</prompt> <userinput><command>cmake</command> <option>-DCMAKE_INSTALL_PREFIX=/usr/ -DQT_INCLUDES=/usr/share/qt4/include</option></userinput> <prompt>$</prompt> <userinput><command>make</command></userinput> - <prompt>$</prompt> <userinput><command>su -c </command> <option>"make install"</option></userinput> + <prompt>$</prompt> <userinput><command>sudo</command> <option>make install</option></userinput> </screen> </para> @@ -631,32 +631,93 @@ <sect1 id="kde4_mac_install"> <title>Installing on the &MacOS;-X platform</title> - <itemizedlist> - <listitem> - <para>Follow the install guidelines of - <ulink url="http://techbase.kde.org/Getting_Started/Build/KDE4/Mac_OS_X">techbase.kde.org</ulink></para> - </listitem> - <listitem> - <para>Install the dependencies (including cmake) with - <ulink url="http://www.finkproject.org/">Fink</ulink>.</para> - </listitem> - <listitem> - <para>Install the &Qt;-4 binaries available from - <ulink url="http://mac.kde.org/">mac.kde.org</ulink></para> - </listitem> - <listitem> - <para>Once kdelibs and it's dependencies are up and running. - </para> - </listitem> - <listitem> - <para>Proceed with the step of techbase.kde.org - "# Setting_Up_Your_Build_Environment" and - "# Building_kdelibs" (here replacing "kdelibs" by "Krusader" ;-)).</para> - </listitem> - </itemizedlist> +<para>With &kde;-4 Krusader runs natively on &MacOS;-X, using it's Aqua user interface (No more X11 needed!).</para> +<sect2><title>Install the required libs and tools</title> +<para> + Install <ulink url="http://cmake.org/">CMake</ulink> and allow the installer to create symlinks the to command line tools. + Install &kde; binaries available from <ulink url="http://mac.kde.org/">mac.kde.org</ulink> + You need at least <filename>kdebase-runtime</filename> and all its dependencies. +</para> +</sect2> + +<sect2><title>Setup the build envorinment</title> +<para> + These packages install &kde;-4 in <filename>/opt/kde4</filename>, &Qt;-4 in <filename>/opt/qt4</filename> and all the &UNIX; + dependencies in <filename>/opt/kde4-deps</filename>. These paths need to become part of your environment: + + <screen> + <prompt>$</prompt> <userinput><command>export</command> <option>PATH="/opt/qt4/bin:/opt/kde4/bin:/opt/kde4-deps/bin:$PATH"</option></userinput> + <prompt>$</prompt> <userinput><command>export</command> <option>CMAKE_LIBRARY_PATH="/opt/kde4-deps/lib"</option></userinput> + <prompt>$</prompt> <userinput><command>export</command> <option>CMAKE_INCLUDE_PATH="/opt/kde4-deps/include"</option></userinput> + <prompt>$</prompt> <userinput><command>export</command> <option>CMAKE_INCLUDE_PATH="/opt/kde4-deps/include"</option></userinput> + </screen> + +</para> +</sect2> + +<sect2><title>Build Krusader using GNU make</title> +<para> + Now you can proceed with the standard &UNIX; build process for &krusader;. + Note that we create a build directory with the suffix <filename>.build</filename> for the compiled objects. + This tells Spotlight not to index the content of this directory. + + <screen> + <prompt>$</prompt> <userinput><command>tar -xzvf</command> <option>krusader_kde4.tar.gz</option></userinput> + <prompt>$</prompt> <userinput><command>mkdir</command> <option>krusader.build</option></userinput> + <prompt>$</prompt> <userinput><command>cd</command> <option>krusader.build</option></userinput> + <prompt>$</prompt> <userinput><command>cmake</command> <option>../krusader_kde4 -DCMAKE_INSTALL_PREFIX=/opt/kde4/</option></userinput> + <prompt>$</prompt> <userinput><command>make</command></userinput> + <prompt>$</prompt> <userinput><command>sudo</command> <option>"make install"</option></userinput> + </screen> + +Now you should have a working Krusader.app inside <filename>/opt/kde4/bin</filename> +See below how to create a relocatable aplication bundle. +</para> +</sect2> + +<sect2><title>Build Krusader using XCode</title> +<para> + An other method is to use &apple;'s IDE XCode to build Krusader. + You have to install the &apple; Developer Tools and change the commands above to: + + <screen> + <prompt>$</prompt> <userinput><command>tar -xzvf</command> <option>krusader_kde4.tar.gz</option></userinput> + <prompt>$</prompt> <userinput><command>mkdir</command> <option>krusader_xcode</option></userinput> + <prompt>$</prompt> <userinput><command>cd</command> <option>krusader_xcode</option></userinput> + <prompt>$</prompt> <userinput><command>cmake</command> <option>../krusader_kde4 -G Xcode</option></userinput> + <prompt>$</prompt> <userinput><command>open</command> <option>Project.xcodeproj</option></userinput> + </screen> + +Please consult the XCode manual for details about how to proceed. +Any feedback is wellcome, since we have no XCode guru in our &krusader; development team ;-) +</para> +</sect2> + + +<sect2><title>Create a relocatable application bundle</title> +<para> + To create a Krusader.app which has all resources embedded (like icons and stuff) + tell cmake to use an empty directory as installation prefix, let's say <filename>/opt/tmp</filename>. + Now build and install &krusader; normaly, which should result in a <filename>/opt/tmp/share/</filename> + directory. Move this dir into Krusader.app: + + <screen> + <prompt>$</prompt> <userinput><command>mv</command> <option>/opt/tmp/share /opt/tmp/bin/Krusader.app/Contents/</option></userinput></screen> + +As of &kde;-4.1 Krusader.app should find it's resources this way as +<filename><self>.app/Contents/</filename> is added as possible <filename>KDEDIR</filename>. +If you really need an older version of &kde;-4, you have to use a wrapper script as described a mail from +Jonas Bähr to the kde-mac mailing list on +<ulink url="http://mail.kde.org/pipermail/kde-mac/2008-February/000002.html">3 February 2008</ulink>. +We hope to integrate this resource bundling into the normal build process for future versions. +</para> +</sect2> + </sect1> + + <sect1 id="kde4_win_install"> <title>Installing on the &Windows; platform</title> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cod...@us...> - 2008-08-12 21:40:36
|
Revision: 6062 http://krusader.svn.sourceforge.net/krusader/?rev=6062&view=rev Author: codeknight Date: 2008-08-12 21:40:45 +0000 (Tue, 12 Aug 2008) Log Message: ----------- some small typo fixes Modified Paths: -------------- trunk/krusader_kde4/INSTALL Modified: trunk/krusader_kde4/INSTALL =================================================================== --- trunk/krusader_kde4/INSTALL 2008-08-12 21:26:34 UTC (rev 6061) +++ trunk/krusader_kde4/INSTALL 2008-08-12 21:40:45 UTC (rev 6062) @@ -167,13 +167,13 @@ $ make $ sudo make install -Now you should have a working Krusader.app instide /opt/kde4/bin. See below -how to create a relocatable aplication bundle. +Now you should have a working Krusader.app inside /opt/kde4/bin. +See below how to create a relocatable aplication bundle. Build Krusader using XCode -------------------------- -An other method is to use Apple's IDE XCode to build Krusader. You have to -install the Apple Developer Tools and change the commands above to: +An other method is to use Apple's IDE XCode to build Krusader. +You have to install the Apple Developer Tools and change the commands above to: $ tar -xzvf krusader_kde4.tar.gz $ mkdir krusader_xcode @@ -181,8 +181,8 @@ $ cmake ../krusader_kde4 -G Xcode $ open Project.xcodeproj -Please consult the XCode manual for details about how to proceed. Any feetback -is wellcome, since we have no XCode gugu in our team ;-) +Please consult the XCode manual for details about how to proceed. +Any feedback is wellcome, since we have no XCode guru in our Krusader development team ;-) Create a relocatable application bundle --------------------------------------- @@ -196,7 +196,8 @@ As of KDE-4.1 Krusader.app should find it's resources this way as "<self>.app/Contents/" is added as possible KDEDIR. If you really need an older version of KDE-4, you have to use a wrapper script as described a mail from -Jonas Bähr to the kde-mac mailing list on 2008-02-03. +Jonas Bähr to the kde-mac mailing list on 3 February 2008. +http://mail.kde.org/pipermail/kde-mac/2008-February/000002.html We hope to integrate this resource bundling into the normal build process for future versions. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |