peony/ 0000755 0001750 0001750 00000000000 13635404631 010635 5 ustar feng feng peony/translations/ 0000755 0001750 0001750 00000000000 13636050131 013347 5 ustar feng feng peony/translations/peony-qt-desktop/ 0000755 0001750 0001750 00000000000 13640373337 016605 5 ustar feng feng peony/translations/peony-qt-desktop/peony-qt-desktop_zh_CN.ts 0000644 0001750 0001750 00000023026 13640373337 023464 0 ustar feng feng
Peony::DesktopIconViewDesktop Icon View桌面图标视图New Folder新建文件夹set background设置壁纸Peony::DesktopMenu&Open in new Window在新窗口中打开(&N)&Open "%1"打开 "%1"(&O)Open "%1" &with...打开方式...(&W)&More applications...更多应用(&M)Open "%1" with...打开方式...&Open打开(&O)&Open %1 selected files打开%1个选中文件(&O)&New...新建(&N)Empty &File空文件(&E)&Folder文件夹(&F)New Folder新建文件夹View Type...视图类型...&Small小图标(&S)&Normal中图标(&N)&Large大图标(&L)&Huge超大图标(&H)Sort By...排序方式...Name文件名称File Type文件类型File Size文件大小Modified Date修改日期Sort Order...排列顺序...Ascending Order升序Descending Order降序Zoom &In放大(&I)Zoom &Out缩小(&O)&Restore all恢复全部(&R)&Clean the trash清空回收站(&C)Delete Permanently永久删除Are you sure that you want to delete these files? Once you start a deletion, the files deleting will never be restored again.确定删除这些文件?一旦确定这些文件将被永久删除且不可恢复。&Copy复制(&C)Cu&t剪切(&T)&Delete删除(&D)&Rename重命名(&R)&Paste粘贴(&P)&Refresh刷新(&R)&Properties属性(&P)Peony::DesktopWindowset background设置壁纸New Folder新建文件夹PeonyDesktopApplicationClose the peony-qt desktop window关闭桌面并退出Close the peony desktop window关闭桌面程序Take over the dbus service.接管DBus服务。Take over the desktop displaying接管桌面
peony/translations/libpeony-qt/ 0000755 0001750 0001750 00000000000 13640373337 015625 5 ustar feng feng peony/translations/libpeony-qt/libpeony-qt_zh_CN.ts 0000644 0001750 0001750 00000231207 13640373337 021526 0 ustar feng feng
ConnectServerDialogConnect to Sever连接到服务器Domain域名Password密码Save Password记住密码User用户名Anonymous匿名登录FileLabelModelRed红色Orange橙色Yellow黄色Green绿色Blue蓝色Purple紫色Gray灰色Transparent透明Error错误Label or color is duplicated.标签或者颜色重复Peony::AdvanceSearchBarKey Words关键词input key words...输入关键词...Search Location搜索路径choose search path...选择要搜索的位置...browse浏览File Type文件类型Choose File Type选择文件类型Modify Time修改时间Choose Modify Time选择修改时间File Size文件大小Choose file size选择文件大小show hidden file显示隐藏文件go back后退hidden advance search page隐藏高级搜索界面file name文件名content内容search搜索start search开始搜索Operate Tips提示Have no key words or search location!没有关键字或路径!Search file name or content at least choose one!搜索文件名或者内容请至少指定一个!Search content or file name at least choose one!搜索文件名或者内容请至少指定一个!all全部file folder文件夹image图片video视频text file文本audio音频others其它today今天this week本周this month本月this year今年year ago去年tiny(0-16K)极小small(16k-1M)较小medium(1M-100M)中等big(100M-1G)较大large(>1G)极大Peony::AdvancedLocationBarSearch Content...搜索内容Peony::BasicPropertiesPageType:类型:Display Name:名称:Location:路径:Overview:概览:Time Created:创建时间:Time Modified:修改时间:Time Access:访问时间:%1 files (include root files), %2 hidden共%1个文件(包括顶层目录),有%2个隐藏文件%1 total共%1Peony::ComputerPropertiesPageCPU Name:处理器:CPU Core:核心数:Memory Size:内存:User Name: 用户名: Desktop: 桌面环境: You should mount this volume first你需要挂载该卷才能查看信息Name: 分区名: File System文件系统Total Space: 总容量: Used Space: 使用空间: Free Space: 剩余空间: Type: 文件系统: Unknown未知的分区Peony::CreateLinkInternalPluginCreate Link to Desktop链接到桌面Create Link to...链接到...Choose a Directory to Create Link选择创建链接的目录Peony-Qt Create Link Extension创建链接Create Link Menu Extension.创建链接.Peony::CreateTemplateOperationNewFile新建文件NewFolder新建文件夹Peony::DefaultPreviewPageSelect the file you want to preview...选择你想要预览的文件...Can not preview this file.不能预览该文件.Can not preivew this file.不能预览该文件Peony::DefaultPreviewPageFactoryDefault Preview详细信息This is the Default Preview of peony-qt显示文件的详细信息Peony::DirectoryView::IconViewIcon View图标视图Peony::DirectoryView::IconView2Icon View图标视图Peony::DirectoryView::ListViewList View列表视图Peony::DirectoryView::ListView2List View列表视图Peony::DirectoryViewFactoryManagerIcon View图标视图Peony::DirectoryViewMenuOpen in &New Window在新窗口中打开(&N)Open in New &Tab在新标签页中打开(&T)&Open "%1"打开“%1”(&O)Open "%1" in &New Window在新窗口中打开“%1”(&N)Open "%1" in New &Tab在新标签页中打开“%1”(&T)Open "%1" with...选用其它应用打开“%1”...&More applications...更多应用...(&M)&Open打开(&O)&Open %1 selected files打开%1个选中文件(&O)&New...新建...(&N)Empty &File空文件(&E)&Folder文件夹(&F)New Folder新建文件夹View Type...视图类型...Sort By...排序类型...Name文件名称File Type文件类型File Size文件大小Modified Date修改日期Sort Order...排序顺序...Ascending Order升序Descending Order降序Sort Preferences...排序偏好...Folder First文件夹优先Chinese First中文优先Show Hidden显示隐藏文件&Copy复制(&C)Cu&t剪切(&T)&Delete删除(&D)&Rename重命名(&R)&Paste粘贴(&P)&Refresh刷新(&R)&Properties属性(&P)&Clean the Trash清空回收站(&C)Delete Permanently永久删除Are you sure that you want to delete these files? Once you start a deletion, the files deleting will never be restored again.确定永久删除这些文件?一旦确定,这些文件将无法被恢复。&Restore还原(&R)Open Parent Folder in New Window在新窗口中打开文件所在目录Peony::DirectoryViewWidgetDirectory View文件视图Peony::FMWindowFile Manager文件管理器advanced search高级搜索clear record清空历史Loaing... Press Esc to stop a loading.正在加载...按下Esc键取消.Ctrl+HShow|HiddenCtrl+HUndo撤销Redo重做Peony Qt文件管理器Authour:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
Copyright (C): 2019-2020, Tianjin KYLIN Information Technology Co., Ltd.作者:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
版权所有(C): 2019-2020,天津麒麟信息技术有限公司.Authour:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
Copyright (C): 2019, Tianjin KYLIN Information Technology Co., Ltd.作者:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
版权所有(C): 2019,天津麒麟信息技术有限公司.New Folder新建文件夹Peony::FileEnumeratorError错误Peony::FileItemModelchild(ren)个子项Symbol Link, 快捷方式,File Name文件名称File Size文件大小File Type文件类型Modified Date修改时间Peony::FileLabelInternalMenuPluginAdd File Label...添加标记...Delete All Label删除所有标记Peony File Labels Menu Extension文件标记Tag a File with Menu.菜单中增加标记功能.Peony::FileLauchDialogChoose an Application to open this file选择一个应用打开这个文件Set as Default设为默认OK确定Cancel取消Peony::FileLaunchActionOpen Failed无法打开Can not open %1不能打开%1Peony::FileLinkOperation - Symbolic Link - 快捷方式Peony::FileMoveOperationInvalid move operation, cannot move a file itself.非法的移动操作,不能自移动到自身。Invalid Operation.非法的操作.Invalid Operation非法的操作Peony::FileOperationAfterProgressPage&More Details详细信息(&M)Peony::FileOperationErrorDialogFile Operation Error文件操作错误unkwon未知原因null空Error message:错误信息:Source File:源文件:Dest File:目标文件:Ignore忽略Ignore All全部忽略Overwrite覆盖Overwrite All全部覆盖Backup备份Backup All全部备份&Retry重试(&R)&Cancel取消(&C)Peony::FileOperationInfo - Symbolic Link - 快捷方式Peony::FileOperationManagerCan't delete.不能删除You can't delete a file whenthe file is doing another operation不能删除一个正在进行其它操作的文件File Operation is Busy操作正忙There have been one or more fileoperation(s) executing before. Youroperation will wait for executinguntil it/them done.在执行该操作之前有操作未完成,它需要等待上一个操作完成后再执行。Peony::FileOperationPreparePagecounting:总计:state:状态:Peony::FileOperationProgressPage&More Details详细信息(&M)From:从:To:到:Peony::FileOperationProgressWizardFile Manager文件管理器&Cancel取消(&C)Preparing...准备中...Handling...正在处理...Clearing...正在清理...Rollbacking...回滚中...File Operation文件操作A file operation is running backend...一个文件操作正在后台运行中...%1 files, %2%1个文件,共%2%1 done, %2 total, %3 of %4.完成%1,共%2,%4中的第%3个。clearing: %1, %2 of %3正在清理:%1,%3中的第%2个copying...复制中...Peony::FilePreviewPageFile Name:文件名称:File Type:文件类型:Time Access:访问时间:Time Modified:修改时间:Children Count:子项计数:Size:文件大小:Image size:图片尺寸:Image format:图片格式:%1x%2%1x%2%1 total, %2 hidden共%1项,其中%2个隐藏文件Peony::FileTrashOperationtrash:///trash:///Peony::LocationBarclick the blank area for edit点击空白区域编辑路径Search "%1" in "%2"在%2中搜索%1File System文件系统Peony::MountOperationOperation Cancelled操作被取消Peony::NavigationToolBarGo Back后退Go Forward前进History历史Clear History清空历史Cd Up向上Refresh刷新Peony::PathEditGo To跳转Peony::PermissionsPropertiesPageUser or Group用户或组Type类型Readable可读Writeable可写Excuteable可执行File: %1文件:%1Can not get the permission info.无法获取文件权限相关信息。(Me)(我)Others其它Owner拥有者Group用户组Other Users其它用户You can not change the access of this file.你无法修改该文件的权限。Me我User用户Peony::PropertiesWindowProperties属性Close关闭Peony::RecentAndTrashPropertiesPageOrigin Path: 原路径: Size: 文件大小: Original Location: 原路径: Peony::SearchBarInput the search key of files you would like to find.输入关键词以搜索你想搜索的文件.Input search key...输入关键词...advance search高级搜索clear record清空历史Peony::SideBarFavoriteItemFavorite收藏夹Peony::SideBarFileSystemItemComputer计算机Peony::SideBarMenu&Properties属性(&P)&Delete Symbolic删除(&D)&Unmount卸载(&U)Peony::SideBarPersonalItemPersonal个人Peony::SideBarSeparatorItem(No Sub Directory)(空)Peony::StatusBar; %1 folders;%1个文件夹; %1 files, %2 total;%1个文件,总共%2; %1 folder;%1个文件夹; %1 file, %2;%1个文件,%2%1 selected选中%1项Peony::ToolBarOpen in new &Window在新窗口中打开(&W)Open in &New window在新窗口中打开(&N)Open in new &Tab在新标签页中打开(&T)Sort Type排序类型File Name文件名称File Type文件类型File Size文件大小Modified Date修改日期Ascending升序Descending降序Copy复制Paste粘贴Cut剪切Trash删除Clean Trash清空回收站Delete Permanently永久删除Are you sure that you want to delete these files? Once you start a deletion, the files deleting will never be restored again.确定是否删除这些文件?一旦确定,这些文件将被永久删除并无法恢复。Restore还原Options选项Forbid Thumbnail禁用缩略图Show Hidden显示隐藏文件Resident in Backend常驻后台Let the program still run after closing the last window. This will reduce the time for the next launch, but it will also consume resources in backend.让文件管理器在关闭所有窗口后仍然运行,这将缩短下次启动所需要的时间,但是也会一直占用资源。&Help帮助(&H)&About...关于...(&A)Peony Qt文件管理器Authour:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
Copyright (C): 2019, Tianjin KYLIN Information Technology Co., Ltd.作者:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
版权所有(C): 2019,天津麒麟信息技术有限公司.Peony::VolumeManagerError错误QObjectIcon View图标视图Show the folder children as icons.以图标形式显示目录.List View列表视图Show the folder children as rows in a list.以列表形式显示目录.Basic Preview Page基本Show the basic file properties, and allow you to modify the access and name.显示文件的基本属性,允许修改文件名称。Permissions Page权限Show and modify file's permission, owner and group.查看和修改文件的权限。Can not trash不能回收Can not trash these files. You can delete them permanently. Are you sure doing that?不能将这些文件完全放入回收站,但可以选择以永久删除这些文件,确定这样做吗?Delete Permanently永久删除Are you sure that you want to delete %1? Once you start a deletion, the files deleting will never be restored again.确定删除%1?一旦确定,文件将被永久删除并且不可恢复。Are you sure that you want to delete these %1 files? Once you start a deletion, the files deleting will never be restored again.确定删除这%1个文件?一旦确定,文件将被永久删除并且不可恢复。Computer Properties Page计算机Show the computer properties or items in computer.显示计算机属性或计算机中的项。Trash and Recent Properties Page最近/回收Show the file properties or items in trash or recent.显示“回收站”或“最近”中的文件属性或项目。
peony/translations/update-translations.sh 0000755 0001750 0001750 00000000615 13636050131 017711 0 ustar feng feng echo "update translations..."
lupdate $(dirname $0)/../libpeony-qt/libpeony-qt.pro
lupdate $(dirname $0)/../src/src.pro
lupdate $(dirname $0)/../peony-qt-desktop/peony-qt-desktop.pro
echo "generate new translate resources files"
for file in $(dirname $0)/*/*.ts
do
ts="*.ts"
qm="*.qm"
target=${file%.*}.qm
echo ${target}
echo "release $file $target"
lrelease $file $target
done
echo "done"
peony/translations/peony-qt/ 0000755 0001750 0001750 00000000000 13640373337 015136 5 ustar feng feng peony/translations/peony-qt/peony-qt_zh_CN.ts 0000644 0001750 0001750 00000031744 13640373337 020354 0 ustar feng feng
FileLabelBoxRename重命名Edit Color编辑颜色Delete删除标记Create New Label创建标记HeaderBarCreate Folder新建文件夹Open Terminal打开终端Go Back后退Go Forward前进Search搜索View Type视图类型Sort Type排序类型Option选项Operate Tips操作提示Don't find any terminal, please install at least one terminal!没有找到任何终端插件,请确认您至少安装了一个!Minimize最小化Close最大化HeaderBarContainerMinimize最小化Close最大化MainWindowFile Manager文件管理器UndoRedoDelete Permanently永久删除Are you sure that you want to delete these files? Once you start a deletion, the files deleting will never be restored again.您确定要删除这些文件吗?一旦开始删除,这些文件将不可再恢复。Peony Qt文件管理器New Folder新建文件夹NavigationSideBarAll tags...所有标记...NavigationSideBarContainerAll tags...所有标记...NavigationTabBarSearch "%1" in "%2"在%2中搜索%1OperationMenuAdvance Search高级搜索Keep Allow置顶窗口Show Hidden显示隐藏文件Forbid thumbnailing禁用缩略图Resident in Backend常驻后台Help帮助About关于OperationMenuEditWidgetEdit编辑PeonyApplicationPeony-Qt文件管理器Files or directories to open需要打开的文件或文件夹[FILE1, FILE2,...][文件1,文件2...]Warning警告Peony-Qt can not get the system's icon theme. There are 2 reasons might lead to this problem:
1. Peony-Qt might be running as root, that means you have the higher permission and can do some things which normally forbidden. But, you should learn that if you were in a root, the virtual file system will lose some featrue such as you can not use "My Computer", the theme and icons might also went wrong. So, run peony-qt in a root is not recommended.
2. You are using a non-qt theme for your system but you didn't install the platform theme plugin for qt's applications. If you are using gtk-theme, try installing the qt5-gtk2-platformtheme package to resolve this problem.文件管理器无法获取系统图标主题,可能的原因是:
1.正在以管理员用户运行文件管理器,虽然这意味着你拥有更高的权限,但是你必须了解你同时也失去了一些在普通用户下才能够拥有的特征,例如“我的电脑”以及系统主题。如果不是特殊情况,请不要使用管理员用户打开文件管理器。
2.你使用的系统主题不是qt默认支持的主题,并且你没有安装相关的平台插件。如果你正在使用Gtk主题作为系统主题,尝试安装qt5-gtk2-platformtheme以解决此问题。Peony Qt文件管理器Authour:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
Copyright (C): 2019-2020, KYLIN Software Co., Ltd.作者:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
版权所有(C): 2019-2020,麒麟软件有限公司.Authour:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
Copyright (C): 2019-2020, Tianjin KYLIN Information Technology Co., Ltd.作者:
Yue Lan <lanyue@kylinos.cn>
Meihong He <hemeihong@kylinos.cn>
版权所有(C): 2019-2020,天津麒麟信息技术有限公司.Close all peony-qt windows and quit关闭所有窗口并退出Show items打开文件所在目录并选中它们Show folders显示文件夹下的内容Show properties打开文件属性窗口SortTypeMenuFile Name文件名称File Size文件大小File Type文件类型Modified Data修改日期Ascending升序Descending降序TabWidgetTrash回收站Clear清空Recover还原
peony/translations/clean-translated-resources.sh 0000755 0001750 0001750 00000000162 13610734767 021156 0 ustar feng feng echo "clean qm files..."
for file in $(dirname $0)/*/*.qm
do
echo "delete $file"
rm -f ${file}
done
echo "done"
peony/peony-qt.pro 0000644 0001750 0001750 00000000662 13610734767 013150 0 ustar feng feng TEMPLATE = subdirs
SUBDIRS = src libpeony-qt \ # plugin #libpeony-qt/test \ #plugin-iface
#libpeony-qt/model/model-test \
#libpeony-qt/file-operation/file-operation-test \
#peony-qt-plugin-test \
peony-qt-desktop
CONFIG += debug_and_release
CONFIG(release,debug|release){
DEFINES += QT_NO_DEBUG_OUTPUT
}
src.depends = libpeony-qt
peony-qt-plugin-test.depends = libpeony-qt
peony-qt-desktop.depends = libpeony-qt
peony/peony-qt-desktop/ 0000755 0001750 0001750 00000000000 13642614372 014063 5 ustar feng feng peony/peony-qt-desktop/desktop-index-widget.h 0000644 0001750 0001750 00000003262 13637332342 020274 0 ustar feng feng /*
* Peony-Qt
*
* Copyright (C) 2019, Tianjin KYLIN Information Technology Co., Ltd.
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Authors: Yue Lan
*
*/
#ifndef DESKTOPINDEXWIDGET_H
#define DESKTOPINDEXWIDGET_H
#include
#include
#include
class QTextEdit;
namespace Peony {
class DesktopIconViewDelegate;
class DesktopIndexWidget : public QWidget
{
Q_OBJECT
public:
explicit DesktopIndexWidget(DesktopIconViewDelegate *delegate,
const QStyleOptionViewItem &option,
const QModelIndex &index,
QWidget *parent = nullptr);
~DesktopIndexWidget();
protected:
void paintEvent(QPaintEvent *e);
void mousePressEvent(QMouseEvent *event);
void mouseDoubleClickEvent(QMouseEvent *event);
void updateItem();
private:
QStyleOptionViewItem m_option;
QModelIndex m_index;
const DesktopIconViewDelegate *m_delegate;
QFont m_current_font;
QRect m_text_rect;
};
}
#endif // DESKTOPINDEXWIDGET_H
peony/peony-qt-desktop/desktop-item-model.h 0000644 0001750 0001750 00000005630 13632320605 017733 0 ustar feng feng /*
* Peony-Qt
*
* Copyright (C) 2019, Tianjin KYLIN Information Technology Co., Ltd.
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Authors: Yue Lan
*
*/
#ifndef DESKTOPITEMMODEL_H
#define DESKTOPITEMMODEL_H
#include
#include
#include
namespace Peony {
class FileEnumerator;
class FileInfo;
class FileWatcher;
class DesktopItemModel : public QAbstractListModel
{
Q_OBJECT
public:
enum Role {
UriRole = Qt::UserRole,
IsLinkRole = Qt::UserRole + 1
};
Q_ENUM(Role)
explicit DesktopItemModel(QObject *parent = nullptr);
~DesktopItemModel() override;
const QModelIndex indexFromUri(const QString &uri);
const QString indexUri(const QModelIndex &index);
// Basic functionality:
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
// Add data:
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
bool insertRow(int row, const QModelIndex &parent = QModelIndex());
// Remove data:
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
bool removeRow(int row, const QModelIndex &parent = QModelIndex());
Qt::ItemFlags flags(const QModelIndex &index) const override;
QMimeData *mimeData(const QModelIndexList& indexes) const override;
bool dropMimeData(const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &parent) override;
Qt::DropActions supportedDropActions() const override;
Q_SIGNALS:
void requestLayoutNewItem(const QString &uri);
void requestClearIndexWidget();
void requestUpdateItemPositions(const QString &uri = nullptr);
void refreshed();
void fileCreated(const QString &uri);
public Q_SLOTS:
void refresh();
protected Q_SLOTS:
void onEnumerateFinished();
private:
FileEnumerator *m_enumerator;
QList> m_files;
std::shared_ptr m_trash_watcher;
std::shared_ptr m_desktop_watcher;
std::shared_ptr m_thumbnail_watcher; //just handle the thumbnail created.
QQueue m_info_query_queue;
};
}
#endif // DESKTOPITEMMODEL_H
peony/peony-qt-desktop/man/ 0000755 0001750 0001750 00000000000 13610734767 014644 5 ustar feng feng peony/peony-qt-desktop/man/peony-qt-desktop.1 0000644 0001750 0001750 00000001420 13610734767 020146 0 ustar feng feng .\" Man page for Peony-Qt desktop
.TH Peony-Qt 1 "09 December 2019" "UKUI Desktop Environment"
.SH "NAME"
Peony-Qt-Desktop \- The UKUI3.0 desktop program.
.SH "SYNOPSIS"
.B peony-qt-desktop [OPTION]
.SH "DESCRIPTION"
Peony-Qt is the default file manager for UKUI3.0.
.PP
This is the desktop program command line tool for interaction of terminal.
.SH "OPTIONS"
.TP
\fB -q, --quit\fR
Close the desktop window, stop the running service and quit.
.TP
\fB -d, --daemon\fR
Run program with DBus service.
.TP
\fB -w, --desktop-window\fR
Show desktop window.
.SH "BUGS"
.SS Should you encounter any bugs, they may be reported at:
https://github.com/ukui/peony/issues
.SH "AUTHORS"
.SS This Manual Page has been written for the UKUI Desktop Environment by:
Yue Lan (2019)
peony/peony-qt-desktop/desktop-icon-view.qss 0000644 0001750 0001750 00000000516 13637332342 020162 0 ustar feng feng Peony--DesktopIconView
{
background-color: transparent;
border: 0px;
padding: 0px;
}
Peony--DesktopIconView::Item
{
padding-top: 5px;
image-position: bottom;
}
Peony--DesktopIconView::Item:hover
{
background-color: transparent;
}
Peony--DesktopIconView::Item:selected
{
background-color: transparent;
}
peony/peony-qt-desktop/desktop-menu-plugin-manager.h 0000644 0001750 0001750 00000002761 13610734767 021567 0 ustar feng feng /*
* Peony-Qt
*
* Copyright (C) 2019, Tianjin KYLIN Information Technology Co., Ltd.
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Authors: Yue Lan
*
*/
#ifndef DESKTOPMENUPLUGINMANAGER_H
#define DESKTOPMENUPLUGINMANAGER_H
#include
#include
#include "menu-plugin-iface.h"
namespace Peony {
class DesktopMenuPluginManager : public QObject
{
Q_OBJECT
public:
static DesktopMenuPluginManager *getInstance();
bool isLoaded() {return m_is_loaded;}
const QStringList getPluginIds();
QList getPlugins();
MenuPluginInterface *getPlugin(const QString &pluginId);
protected:
void loadAsync();
private:
explicit DesktopMenuPluginManager(QObject *parent = nullptr);
~DesktopMenuPluginManager();
QMap m_map;
bool m_is_loaded = false;
};
}
#endif // DESKTOPMENUPLUGINMANAGER_H
peony/peony-qt-desktop/desktop-item-proxy-model.h 0000644 0001750 0001750 00000002761 13610734767 021132 0 ustar feng feng /*
* Peony-Qt
*
* Copyright (C) 2019, Tianjin KYLIN Information Technology Co., Ltd.
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Authors: Yue Lan
*
*/
#ifndef DESKTOPITEMPROXYMODEL_H
#define DESKTOPITEMPROXYMODEL_H
#include
namespace Peony {
class DesktopItemProxyModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
enum SortType {
FileName,
FileType,
FileSize,
ModifiedDate,
Other
};
explicit DesktopItemProxyModel(QObject *parent = nullptr);
void setSortType(int type) {m_sort_type = type;}
int getSortType() {return m_sort_type;}
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const;
private:
int m_sort_type = Other;
};
}
#endif // DESKTOPITEMPROXYMODEL_H
peony/peony-qt-desktop/freedesktop-dbus-interfaces.xml 0000644 0001750 0001750 00000002660 13610734767 022206 0 ustar feng feng
peony/peony-qt-desktop/fm-dbus-service.cpp 0000644 0001750 0001750 00000003712 13610734767 017573 0 ustar feng feng /*
* Peony-Qt
*
* Copyright (C) 2019, Tianjin KYLIN Information Technology Co., Ltd.
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Authors: Yue Lan
*
*/
#include "fm-dbus-service.h"
#include
#include
#include
using namespace Peony;
FMDBusService::FMDBusService(QObject *parent) : QObject(parent)
{
qDebug()<registerService(QStringLiteral("org.freedesktop.FileManager1"),
QDBusConnectionInterface::QueueService);
}
void FMDBusService::ShowFolders(const QStringList& uriList, const QString& startUpId)
{
qDebug()<<"show folders:"<