Add about dialog

This commit is contained in:
reionwong 2021-11-01 04:28:32 +08:00
parent 7d36d988b9
commit d4783dffa3
4 changed files with 91 additions and 63 deletions

View file

@ -33,7 +33,7 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true); //QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
// Register QML Type. // Register QML Type.

View file

@ -101,10 +101,18 @@ Item {
MenuItem { MenuItem {
text: qsTr("About") text: qsTr("About")
onTriggered: _aboutDialog.show()
} }
} }
} }
FishUI.AboutDialog {
id: _aboutDialog
name: qsTr("File Manager")
description: qsTr("A file manager designed for CutefishOS.")
iconSource: "image://icontheme/file-system-manager"
}
Rectangle { Rectangle {
id: _background id: _background
anchors.fill: parent anchors.fill: parent

View file

@ -14,12 +14,12 @@
<translation>New folder</translation> <translation>New folder</translation>
</message> </message>
<message> <message>
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="79"/> <location filename="../qml/Dialogs/CreateFolderDialog.qml" line="81"/>
<source>Cancel</source> <source>Cancel</source>
<translation>Cancel</translation> <translation>Cancel</translation>
</message> </message>
<message> <message>
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="85"/> <location filename="../qml/Dialogs/CreateFolderDialog.qml" line="87"/>
<source>OK</source> <source>OK</source>
<translation>OK</translation> <translation>OK</translation>
</message> </message>
@ -127,112 +127,112 @@
<context> <context>
<name>FolderModel</name> <name>FolderModel</name>
<message> <message>
<location filename="../model/foldermodel.cpp" line="202"/> <location filename="../model/foldermodel.cpp" line="207"/>
<source>%1 item</source> <source>%1 item</source>
<translation>%1 item</translation> <translation>%1 item</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="202"/> <location filename="../model/foldermodel.cpp" line="207"/>
<source>%1 items</source> <source>%1 items</source>
<translation>%1 items</translation> <translation>%1 items</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="297"/> <location filename="../model/foldermodel.cpp" line="302"/>
<source>The file or folder %1 does not exist.</source> <source>The file or folder %1 does not exist.</source>
<translation>The file or folder %1 does not exist.</translation> <translation>The file or folder %1 does not exist.</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1034"/> <location filename="../model/foldermodel.cpp" line="1039"/>
<source>Select All</source> <source>Select All</source>
<translation>Select All</translation> <translation>Select All</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1147"/> <location filename="../model/foldermodel.cpp" line="1152"/>
<source>File Manager</source> <source>File Manager</source>
<translation>File Manager</translation> <translation>File Manager</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1452"/> <location filename="../model/foldermodel.cpp" line="1462"/>
<source>Open</source> <source>Open</source>
<translation>Open</translation> <translation>Open</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1455"/> <location filename="../model/foldermodel.cpp" line="1465"/>
<source>Open with</source> <source>Open with</source>
<translation>Open with</translation> <translation>Open with</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1458"/> <location filename="../model/foldermodel.cpp" line="1468"/>
<source>Cut</source> <source>Cut</source>
<translation>Cut</translation> <translation>Cut</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1461"/> <location filename="../model/foldermodel.cpp" line="1471"/>
<source>Copy</source> <source>Copy</source>
<translation>Copy</translation> <translation>Copy</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1464"/> <location filename="../model/foldermodel.cpp" line="1474"/>
<source>Paste</source> <source>Paste</source>
<translation>Paste</translation> <translation>Paste</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1467"/> <location filename="../model/foldermodel.cpp" line="1477"/>
<source>New Folder</source> <source>New Folder</source>
<translation>New Folder</translation> <translation>New Folder</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1470"/> <location filename="../model/foldermodel.cpp" line="1480"/>
<source>Move To Trash</source> <source>Move To Trash</source>
<translation>Move To Trash</translation> <translation>Move To Trash</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1473"/> <location filename="../model/foldermodel.cpp" line="1483"/>
<source>Empty Trash</source> <source>Empty Trash</source>
<translation>Empty Trash</translation> <translation>Empty Trash</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1476"/> <location filename="../model/foldermodel.cpp" line="1486"/>
<source>Delete</source> <source>Delete</source>
<translation>Delete</translation> <translation>Delete</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1479"/> <location filename="../model/foldermodel.cpp" line="1489"/>
<source>Rename</source> <source>Rename</source>
<translation>Rename</translation> <translation>Rename</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1482"/> <location filename="../model/foldermodel.cpp" line="1492"/>
<source>Open in Terminal</source> <source>Open in Terminal</source>
<translation>Open in Terminal</translation> <translation>Open in Terminal</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1485"/> <location filename="../model/foldermodel.cpp" line="1495"/>
<source>Set as Wallpaper</source> <source>Set as Wallpaper</source>
<translation>Set as Wallpaper</translation> <translation>Set as Wallpaper</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1488"/> <location filename="../model/foldermodel.cpp" line="1498"/>
<source>Properties</source> <source>Properties</source>
<translation>Properties</translation> <translation>Properties</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1491"/> <location filename="../model/foldermodel.cpp" line="1501"/>
<source>Change background</source> <source>Change background</source>
<translation>Change background</translation> <translation>Change background</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1494"/> <location filename="../model/foldermodel.cpp" line="1504"/>
<source>Restore</source> <source>Restore</source>
<translation>Restore</translation> <translation>Restore</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1497"/> <location filename="../model/foldermodel.cpp" line="1507"/>
<source>Show hidden files</source> <source>Show hidden files</source>
<translation>Show hidden files</translation> <translation>Show hidden files</translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1502"/> <location filename="../model/foldermodel.cpp" line="1512"/>
<source>Open in new window</source> <source>Open in new window</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -240,18 +240,18 @@
<context> <context>
<name>FolderPage</name> <name>FolderPage</name>
<message> <message>
<location filename="../qml/FolderPage.qml" line="136"/> <location filename="../qml/FolderPage.qml" line="144"/>
<source>Empty folder</source> <source>Empty folder</source>
<translation>Empty folder</translation> <translation>Empty folder</translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="177"/> <location filename="../qml/FolderPage.qml" line="185"/>
<source>Open</source> <source>Open</source>
<translation>Open</translation> <translation>Open</translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="61"/> <location filename="../qml/FolderPage.qml" line="61"/>
<location filename="../qml/FolderPage.qml" line="182"/> <location filename="../qml/FolderPage.qml" line="190"/>
<source>Properties</source> <source>Properties</source>
<translation>Properties</translation> <translation>Properties</translation>
</message> </message>
@ -306,22 +306,32 @@
<translation>About</translation> <translation>About</translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="244"/> <location filename="../qml/FolderPage.qml" line="111"/>
<source>File Manager</source>
<translation type="unfinished">File Manager</translation>
</message>
<message>
<location filename="../qml/FolderPage.qml" line="112"/>
<source>A file manager designed for CutefishOS.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/FolderPage.qml" line="252"/>
<source>%1 item</source> <source>%1 item</source>
<translation>%1 item</translation> <translation>%1 item</translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="245"/> <location filename="../qml/FolderPage.qml" line="253"/>
<source>%1 items</source> <source>%1 items</source>
<translation>%1 items</translation> <translation>%1 items</translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="251"/> <location filename="../qml/FolderPage.qml" line="259"/>
<source>%1 selected</source> <source>%1 selected</source>
<translation>%1 selected</translation> <translation>%1 selected</translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="266"/> <location filename="../qml/FolderPage.qml" line="274"/>
<source>Empty Trash</source> <source>Empty Trash</source>
<translation>Empty Trash</translation> <translation>Empty Trash</translation>
</message> </message>

View file

@ -14,12 +14,12 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="79"/> <location filename="../qml/Dialogs/CreateFolderDialog.qml" line="81"/>
<source>Cancel</source> <source>Cancel</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="85"/> <location filename="../qml/Dialogs/CreateFolderDialog.qml" line="87"/>
<source>OK</source> <source>OK</source>
<translation></translation> <translation></translation>
</message> </message>
@ -127,112 +127,112 @@
<context> <context>
<name>FolderModel</name> <name>FolderModel</name>
<message> <message>
<location filename="../model/foldermodel.cpp" line="202"/> <location filename="../model/foldermodel.cpp" line="207"/>
<source>%1 item</source> <source>%1 item</source>
<translation>%1 </translation> <translation>%1 </translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="202"/> <location filename="../model/foldermodel.cpp" line="207"/>
<source>%1 items</source> <source>%1 items</source>
<translation>%1 </translation> <translation>%1 </translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="297"/> <location filename="../model/foldermodel.cpp" line="302"/>
<source>The file or folder %1 does not exist.</source> <source>The file or folder %1 does not exist.</source>
<translation> %1 </translation> <translation> %1 </translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1034"/> <location filename="../model/foldermodel.cpp" line="1039"/>
<source>Select All</source> <source>Select All</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1147"/> <location filename="../model/foldermodel.cpp" line="1152"/>
<source>File Manager</source> <source>File Manager</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1452"/> <location filename="../model/foldermodel.cpp" line="1462"/>
<source>Open</source> <source>Open</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1455"/> <location filename="../model/foldermodel.cpp" line="1465"/>
<source>Open with</source> <source>Open with</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1458"/> <location filename="../model/foldermodel.cpp" line="1468"/>
<source>Cut</source> <source>Cut</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1461"/> <location filename="../model/foldermodel.cpp" line="1471"/>
<source>Copy</source> <source>Copy</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1464"/> <location filename="../model/foldermodel.cpp" line="1474"/>
<source>Paste</source> <source>Paste</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1467"/> <location filename="../model/foldermodel.cpp" line="1477"/>
<source>New Folder</source> <source>New Folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1470"/> <location filename="../model/foldermodel.cpp" line="1480"/>
<source>Move To Trash</source> <source>Move To Trash</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1473"/> <location filename="../model/foldermodel.cpp" line="1483"/>
<source>Empty Trash</source> <source>Empty Trash</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1476"/> <location filename="../model/foldermodel.cpp" line="1486"/>
<source>Delete</source> <source>Delete</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1479"/> <location filename="../model/foldermodel.cpp" line="1489"/>
<source>Rename</source> <source>Rename</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1482"/> <location filename="../model/foldermodel.cpp" line="1492"/>
<source>Open in Terminal</source> <source>Open in Terminal</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1485"/> <location filename="../model/foldermodel.cpp" line="1495"/>
<source>Set as Wallpaper</source> <source>Set as Wallpaper</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1488"/> <location filename="../model/foldermodel.cpp" line="1498"/>
<source>Properties</source> <source>Properties</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1491"/> <location filename="../model/foldermodel.cpp" line="1501"/>
<source>Change background</source> <source>Change background</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1494"/> <location filename="../model/foldermodel.cpp" line="1504"/>
<source>Restore</source> <source>Restore</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1497"/> <location filename="../model/foldermodel.cpp" line="1507"/>
<source>Show hidden files</source> <source>Show hidden files</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../model/foldermodel.cpp" line="1502"/> <location filename="../model/foldermodel.cpp" line="1512"/>
<source>Open in new window</source> <source>Open in new window</source>
<translation></translation> <translation></translation>
</message> </message>
@ -240,18 +240,18 @@
<context> <context>
<name>FolderPage</name> <name>FolderPage</name>
<message> <message>
<location filename="../qml/FolderPage.qml" line="136"/> <location filename="../qml/FolderPage.qml" line="144"/>
<source>Empty folder</source> <source>Empty folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="177"/> <location filename="../qml/FolderPage.qml" line="185"/>
<source>Open</source> <source>Open</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="61"/> <location filename="../qml/FolderPage.qml" line="61"/>
<location filename="../qml/FolderPage.qml" line="182"/> <location filename="../qml/FolderPage.qml" line="190"/>
<source>Properties</source> <source>Properties</source>
<translation></translation> <translation></translation>
</message> </message>
@ -306,22 +306,32 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="244"/> <location filename="../qml/FolderPage.qml" line="111"/>
<source>File Manager</source>
<translation></translation>
</message>
<message>
<location filename="../qml/FolderPage.qml" line="112"/>
<source>A file manager designed for CutefishOS.</source>
<translation> CutefishOS </translation>
</message>
<message>
<location filename="../qml/FolderPage.qml" line="252"/>
<source>%1 item</source> <source>%1 item</source>
<translation>%1 </translation> <translation>%1 </translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="245"/> <location filename="../qml/FolderPage.qml" line="253"/>
<source>%1 items</source> <source>%1 items</source>
<translation>%1 </translation> <translation>%1 </translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="251"/> <location filename="../qml/FolderPage.qml" line="259"/>
<source>%1 selected</source> <source>%1 selected</source>
<translation> %1 </translation> <translation> %1 </translation>
</message> </message>
<message> <message>
<location filename="../qml/FolderPage.qml" line="266"/> <location filename="../qml/FolderPage.qml" line="274"/>
<source>Empty Trash</source> <source>Empty Trash</source>
<translation></translation> <translation></translation>
</message> </message>