diff --git a/libfm-qt/translations/libfm-qt_cs_CZ.ts b/libfm-qt/translations/libfm-qt_cs_CZ.ts
index d15bbb0..30c140e 100644
--- a/libfm-qt/translations/libfm-qt_cs_CZ.ts
+++ b/libfm-qt/translations/libfm-qt_cs_CZ.ts
@@ -6,27 +6,27 @@
Choose an Application
-
+ Výběr aplikace
Installed Applications
-
+ Nainstalované aplikace
Custom Command
-
+ Vlastní příkaz
Command line to execute:
-
+ Příkaz k vykonání:
Application name:
-
+ Jméno aplikace:
@@ -37,22 +37,28 @@
<li><b>%u</b>: Represents a single URI of the file</li>
<li><b>%U</b>: Represents multiple URIs</li>
</ul>
-
+ <b>Tyto zástupné symboly mohou být použity v příkazovém řádku:</b>
+<ul>
+<li><b>%f</b>: Reprezentuje jméno jednoho souboru</li>
+<li><b>%F</b>: Reprezentuje jména více souborů</li>
+<li><b>%u</b>: Reprezentuje URI jednoho souboru</li>
+<li><b>%U</b>: Reprezentuje URI více souborů</li>
+</ul>
Keep terminal window open after command execution
-
+ Nechat okno terminálu otevřené
Execute in terminal emulator
-
+ Spustit v emulátoru terminálu
Set selected application as default action of this file type
-
+ Použít aplikaci jako výchozí pro tento typ souboru
@@ -60,32 +66,32 @@
Edit Bookmarks
-
+ Upravit záložky
Name
- Jméno
+ Jméno
Location
-
+ Umístění
&Add Item
-
+ &Přidat položku
&Remove Item
-
+ &Odebrat položku
Use drag and drop to reorder the items
-
+ Přetažením uprav pořadí
@@ -93,27 +99,27 @@
Execute file
- Spustit soubor
+ Spustit soubor
&Open
- &Otevřít
+ &Otevřít
E&xecute
- &Spustit
+ &Spustit
Execute in &Terminal
- Spustit v &Terminálu
+ Spustit v &Terminálu
Cancel
- Zrušit
+ Zrušit
@@ -121,27 +127,27 @@
Destination:
-
+ Umístění:
Processing:
-
+ Zpracování:
Preparing...
-
+ Příprava...
Progress
-
+ Průběh
Time remaining:
-
+ Zbývající čas:
@@ -149,118 +155,118 @@
File Properties
-
+ Vlastnosti souboru
General
-
+ Obecné
Location:
-
+ Umístění:
File type:
-
+ Typ souboru:
Mime type:
-
+ Mime typ:
File size:
-
+ Velikost souboru:
On-disk size:
-
+ Zabrané místo:
Last modified:
-
+ Upraveno:
Link target:
-
+ Cíl odkazu:
Open With:
-
+ Otevřít pomocí:
Last accessed:
-
+ Poslední přístup:
Permissions
-
+ Práva
Ownership
-
+ Vlastnictví
Group:
-
+ Skupina:
Owner:
-
+ Vlastník:
Access Control
-
+ Zpřístupnění
Other:
-
+ Ostatní:
Make the file executable
-
+ Označit soubor jako spustitelný
Read
-
+ Čtení
Write
-
+ Čtení a zápis
Execute
-
+ Spuštění
@@ -280,7 +286,7 @@
Advanced Mode
-
+ Pokročilý režim
@@ -348,22 +354,22 @@
Copy here
-
+ Kopírovat sem
Move here
-
+ Přesunout sem
Create symlink here
-
+ Vytvořit zde odkaz
Cancel
- Zrušit
+ Zrušit
@@ -391,7 +397,7 @@ What do you want to do with it?
Fm::FileMenu
-
+
Open
Otevřít
@@ -401,73 +407,73 @@ What do you want to do with it?
-
+
&Restore
-
+ O&bnovit
-
+
Cut
Vyjmout
-
+
Copy
Kopírovat
-
+
Paste
Vložit
-
-
+
+
&Move to Trash
Přesunout do &koše
-
+
Output
Výstup
-
+
&Delete
&Smazat
-
+
Rename
Přejmenovat
-
+
Open With...
Otevřít v ...
-
+
Other Applications
Ostatní programy
-
+
Extract to...
Rozbalit do ...
-
+
Extract Here
Rozbalit sem
-
+
Compress
Komprimovat
-
+
Properties
Vlastnosti
@@ -477,29 +483,30 @@ What do you want to do with it?
Error
- Chyba
+ Chyba
Some files cannot be moved to trash can because the underlying file systems don't support this operation.
Do you want to delete them instead?
-
+ Některé soubory nemohou být přesunuty do koše, protože příslušné souborové systémy nepodporují tuto operaci.
+Chceš je odstranit trvale?
Confirm
-
+ Potvrdit
Do you want to delete the selected files?
-
+ Chceš smazat vybrané soubory?
Do you want to move the selected files to trash can?
-
+ Chceš přesunout vybrané soubory do koše?
@@ -631,84 +638,94 @@ Do you want to delete them instead?
Fm::FolderMenu
-
+
Create &New
-
+ Vytvořit &nový
&Paste
-
+ &Vložit
Select &All
-
+ Vybr&at všechno
Invert Selection
-
+ Invertovat výběr
Sorting
-
+ Řadit
Show Hidden
-
+ Zobrazit skryté
Folder Pr&operties
-
+ Vlastnosti sl&ožky
-
+
+ Folder
+ Adresář
+
+
+
+ Blank File
+ Prázdný soubor
+
+
+
By File Name
-
+ Podle jména
-
+
By Modification Time
-
-
-
-
- By File Size
-
-
-
-
- By File Type
-
-
-
-
- By File Owner
-
-
-
-
- Ascending
-
-
-
-
- Descending
-
+ Podle času
- Folder First
-
+ By File Size
+ Podle velikosti
-
+
+ By File Type
+ Podle typu
+
+
+
+ By File Owner
+ Podle vlastníka
+
+
+
+ Ascending
+ Vzestupně
+
+
+
+ Descending
+ sestupně
+
+
+
+ Folder First
+ Adresáře jako první
+
+
+
Case Sensitive
-
+ Zohlednit velikost písmen
@@ -757,7 +774,7 @@ Do you want to delete them instead?
&Connect
-
+ &Připojit
@@ -765,42 +782,42 @@ Do you want to delete them instead?
Places
- Místa
+ Místa
Desktop
-
+ Plocha
Trash
-
+ Koš
Computer
-
+ Počítač
Applications
-
+ Aplikace
Network
-
+ Síť
Devices
-
+ Zařízení
Bookmarks
-
+ Záložky
@@ -808,7 +825,7 @@ Do you want to delete them instead?
Empty Trash
- Vysypat koš
+ Vysypat koš
Rename
@@ -821,48 +838,48 @@ Do you want to delete them instead?
Open in New Tab
-
+ Otevřít v novém panelu
Open in New Window
-
+ Otevřít v novém okně
Move Bookmark Up
-
+ Přesunout záložku nahoru
Move Bookmark Down
-
+ Přesunout záložku dolů
Rename Bookmark
-
+ Přejmenovat záložku
Remove Bookmark
-
+ Odstranit záložku
Unmount
- Odpojit
+ Odpojit
Mount
- Připojit
+ Připojit
Eject
- Vysunout
+ Vysunout
@@ -890,37 +907,37 @@ Modified: %3
&Overwrite
-
+ &Přepsat
&Rename
-
+ Pře&jmenovat
Fm::SidePane
-
-
+
+
Places
- Místa
+ Místa
-
-
+
+
Directory Tree
- Strom adresářů
+ Strom adresářů
-
+
Shows list of common places, devices, and bookmarks in sidebar
-
+ Zobrazit seznam obvyklých míst, zařízení a záložek v postranní liště
-
+
Shows tree of directories in sidebar
-
+ Zobrazit strom adresářů v postranní liště
@@ -928,103 +945,103 @@ Modified: %3
Mount
- Připojit
+ Připojit
Connect &anonymously
-
+ Připojit &anonymně
Connect as u&ser:
-
+ Připojit jako &uživatel:
&Username:
-
+ Uživatelské &jméno:
&Password:
-
+ &Heslo:
&Domain:
-
+ &Doména:
Forget password &immediately
-
+ &Zapomenout heslo
Remember password until you &logout
-
+ Pamatovat si heslo do &odhlášení
Remember &forever
-
+ Pamatovat si heslo &trvale
QObject
-
-
+
+
Error
- Chyba
+ Chyba
Rename File
- Přejmenovat Soubor
+ Přejmenovat soubor
Please enter a new name:
- Prosím zadej nové jméno:
+ Prosím zadej nové jméno:
Create Folder
-
+ Vytvořit adresář
Please enter a new file name:
- Prosím zadej nové jméno souboru:
+ Prosím zadej nové jméno souboru:
New text file
- Nový textový soubor
+ Nový textový soubor
Please enter a new folder name:
- Prosím zadej nové jméno složky:
+ Prosím zadej nové jméno adresáře:
New folder
- Nová složka
+ Nový adresář
Enter a name for the new %1:
- Zadej jméno pro nový %1:
+ Zadej jméno pro nový %1:
Create File
- Vytvořit soubor
+ Vytvořit soubor
@@ -1032,12 +1049,12 @@ Modified: %3
Confirm to replace files
-
+ Potvrdit náhradu souborů
<html><head/><body><p><span style=" font-weight:600;">There is already a file with the same name in this location.</span></p><p>Do you want to replace the existing file?</p></body></html>
-
+ <html><head/><body><p><span style=" font-weight:600;">Na tomto místě už je soubor se stejným jménem.</span></p><p>Chceš nahradit existující soubor</p></body></html>
@@ -1047,7 +1064,7 @@ Modified: %3
with the following file?
-
+ následujícím souborem?
@@ -1067,12 +1084,12 @@ Modified: %3
&File name:
-
+ &Jméno souboru:
Apply this option to all existing files
-
+ Použij tuto volbu pro všechny soubory
diff --git a/pcmanfm/desktop-preferences.ui b/pcmanfm/desktop-preferences.ui
index 258cd95..2dc6622 100644
--- a/pcmanfm/desktop-preferences.ui
+++ b/pcmanfm/desktop-preferences.ui
@@ -7,7 +7,7 @@
0
0
501
- 376
+ 434
@@ -295,7 +295,7 @@
Qt::Horizontal
- QDialogButtonBox::Cancel|QDialogButtonBox::Ok
+ QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok
diff --git a/pcmanfm/desktoppreferencesdialog.cpp b/pcmanfm/desktoppreferencesdialog.cpp
index df9008a..7ec912b 100644
--- a/pcmanfm/desktoppreferencesdialog.cpp
+++ b/pcmanfm/desktoppreferencesdialog.cpp
@@ -85,12 +85,16 @@ DesktopPreferencesDialog::DesktopPreferencesDialog(QWidget* parent, Qt::WindowFl
ui.textColor->setColor(settings.desktopFgColor());
ui.shadowColor->setColor(settings.desktopShadowColor());
ui.showWmMenu->setChecked(settings.showWmMenu());
+
+ connect(ui.buttonBox->button(QDialogButtonBox::Apply), &QPushButton::clicked,
+ this, &DesktopPreferencesDialog::onApplyClicked);
}
DesktopPreferencesDialog::~DesktopPreferencesDialog() {
}
-void DesktopPreferencesDialog::accept() {
+void DesktopPreferencesDialog::applySettings()
+{
Settings& settings = static_cast(qApp)->settings();
XdgDir::setDesktopDir(ui.desktopFolder->text());
@@ -104,12 +108,21 @@ void DesktopPreferencesDialog::accept() {
settings.setDesktopShadowColor(ui.shadowColor->color());
settings.setShowWmMenu(ui.showWmMenu->isChecked());
- QDialog::accept();
-
- static_cast(qApp)->updateDesktopsFromSettings();
settings.save();
}
+void DesktopPreferencesDialog::onApplyClicked()
+{
+ applySettings();
+ static_cast(qApp)->updateDesktopsFromSettings();
+}
+
+void DesktopPreferencesDialog::accept() {
+ applySettings();
+ static_cast(qApp)->updateDesktopsFromSettings();
+ QDialog::accept();
+}
+
void DesktopPreferencesDialog::onWallpaperModeChanged(int index) {
int mode = ui.wallpaperMode->itemData(index).toInt();
diff --git a/pcmanfm/desktoppreferencesdialog.h b/pcmanfm/desktoppreferencesdialog.h
index 076e8b4..cb04705 100644
--- a/pcmanfm/desktoppreferencesdialog.h
+++ b/pcmanfm/desktoppreferencesdialog.h
@@ -38,10 +38,13 @@ public:
void selectPage(QString name);
protected Q_SLOTS:
+ void onApplyClicked();
void onWallpaperModeChanged(int index);
void onBrowseClicked();
void onBrowseDesktopFolderClicked();
+ void applySettings();
+
private:
Ui::DesktopPreferencesDialog ui;
};
diff --git a/pcmanfm/desktopwindow.cpp b/pcmanfm/desktopwindow.cpp
index effb80d..7b34d78 100644
--- a/pcmanfm/desktopwindow.cpp
+++ b/pcmanfm/desktopwindow.cpp
@@ -788,6 +788,10 @@ void DesktopWindow::childDropEvent(QDropEvent* e) {
Fm::FolderView::childDropEvent(e);
}
+void DesktopWindow::closeEvent(QCloseEvent *event) {
+ // prevent the desktop window from being closed.
+ event->ignore();
+}
void DesktopWindow::setScreenNum(int num) {
if(screenNum_ != num) {
diff --git a/pcmanfm/desktopwindow.h b/pcmanfm/desktopwindow.h
index c28e322..cfd79b0 100644
--- a/pcmanfm/desktopwindow.h
+++ b/pcmanfm/desktopwindow.h
@@ -89,6 +89,7 @@ protected:
virtual bool eventFilter(QObject * watched, QEvent * event);
virtual void childDropEvent(QDropEvent* e);
+ virtual void closeEvent(QCloseEvent *event);
protected Q_SLOTS:
void onOpenDirRequested(FmPath* path, int target);
diff --git a/pcmanfm/mainwindow.cpp b/pcmanfm/mainwindow.cpp
index 1276d30..fa8cc21 100644
--- a/pcmanfm/mainwindow.cpp
+++ b/pcmanfm/mainwindow.cpp
@@ -217,6 +217,8 @@ void MainWindow::addTab(FmPath* path) {
connect(newPage, &TabPage::statusChanged, this, &MainWindow::onTabPageStatusChanged);
connect(newPage, &TabPage::openDirRequested, this, &MainWindow::onTabPageOpenDirRequested);
connect(newPage, &TabPage::sortFilterChanged, this, &MainWindow::onTabPageSortFilterChanged);
+ connect(newPage, &TabPage::backwardRequested, this, &MainWindow::on_actionGoBack_triggered);
+ connect(newPage, &TabPage::forwardRequested, this, &MainWindow::on_actionGoForward_triggered);
ui.tabBar->insertTab(index, newPage->title());
diff --git a/pcmanfm/tabpage.cpp b/pcmanfm/tabpage.cpp
index 0d5b603..1cb7ab0 100644
--- a/pcmanfm/tabpage.cpp
+++ b/pcmanfm/tabpage.cpp
@@ -57,8 +57,8 @@ TabPage::TabPage(FmPath* path, QWidget* parent):
// newView->setColumnWidth(Fm::FolderModel::ColumnName, 200);
connect(folderView_, &View::openDirRequested, this, &TabPage::onOpenDirRequested);
connect(folderView_, &View::selChanged, this, &TabPage::onSelChanged);
- connect(folderView_, &View::clickedBack, this, &TabPage::backward);
- connect(folderView_, &View::clickedForward, this, &TabPage::forward);
+ connect(folderView_, &View::clickedBack, this, &TabPage::backwardRequested);
+ connect(folderView_, &View::clickedForward, this, &TabPage::forwardRequested);
// FIXME: this is very dirty
folderView_->setModel(proxyModel_);
diff --git a/pcmanfm/tabpage.h b/pcmanfm/tabpage.h
index 4885e5b..5d3ab24 100644
--- a/pcmanfm/tabpage.h
+++ b/pcmanfm/tabpage.h
@@ -182,6 +182,8 @@ Q_SIGNALS:
void titleChanged(QString title);
void openDirRequested(FmPath* path, int target);
void sortFilterChanged();
+ void forwardRequested();
+ void backwardRequested();
protected Q_SLOTS:
void onOpenDirRequested(FmPath* path, int target);