Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Filelight
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Utilities
Filelight
Commits
539af278
Commit
539af278
authored
Mar 25, 2010
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed: name all part related files equally "filelightpart"
svn path=/trunk/playground/utils/filelight/; revision=1107422
parent
cd175407
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
27 deletions
+20
-27
misc/CMakeLists.txt
misc/CMakeLists.txt
+2
-2
misc/filelightpart.desktop
misc/filelightpart.desktop
+0
-0
misc/filelightpartui.rc
misc/filelightpartui.rc
+1
-1
src/app/mainWindow.cpp
src/app/mainWindow.cpp
+1
-1
src/part/part.cpp
src/part/part.cpp
+16
-21
src/part/part.h
src/part/part.h
+0
-2
No files found.
misc/CMakeLists.txt
View file @
539af278
...
...
@@ -18,10 +18,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#######################################################################
install
(
FILES filelight
_
part.desktop DESTINATION
${
SERVICES_INSTALL_DIR
}
)
install
(
FILES filelightpart.desktop DESTINATION
${
SERVICES_INSTALL_DIR
}
)
install
(
FILES filelight.desktop DESTINATION
${
XDG_APPS_INSTALL_DIR
}
)
install
(
FILES filelightrc DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/config
)
install
(
FILES filelight
_
partui.rc DESTINATION
${
DATA_INSTALL_DIR
}
/filelightpart
)
install
(
FILES filelightpartui.rc DESTINATION
${
DATA_INSTALL_DIR
}
/filelightpart
)
install
(
FILES filelightui.rc DESTINATION
${
DATA_INSTALL_DIR
}
/filelight
)
kde4_install_icons
(
${
ICON_INSTALL_DIR
}
)
misc/filelight
_
part.desktop
→
misc/filelightpart.desktop
View file @
539af278
File moved
misc/filelight
_
partui.rc
→
misc/filelightpartui.rc
View file @
539af278
<!DOCTYPE kpartgui>
<kpartgui
name=
"filelight
_
part"
version=
"2"
>
<kpartgui
name=
"filelightpart"
version=
"2"
>
<MenuBar>
<Menu
name=
"view"
>
<Action
name=
"view_zoom_in"
group=
"view_merge_group"
/>
...
...
src/app/mainWindow.cpp
View file @
539af278
...
...
@@ -55,7 +55,7 @@ namespace Filelight {
MainWindow
::
MainWindow
()
:
KParts
::
MainWindow
(),
m_part
(
0
)
{
setXMLFile
(
"filelightui.rc"
);
//
setXMLFile("filelightui.rc");
KPluginFactory
*
factory
=
KPluginLoader
(
"filelightpart"
).
factory
();
if
(
!
factory
)
{
...
...
src/part/part.cpp
View file @
539af278
...
...
@@ -49,7 +49,20 @@
namespace
Filelight
{
K_PLUGIN_FACTORY
(
filelightPartFactory
,
registerPlugin
<
Part
>
();)
// produce a factory
K_EXPORT_PLUGIN
(
filelightPartFactory
(
"filelightpart"
))
K_EXPORT_PLUGIN
(
filelightPartFactory
(
KAboutData
(
"filelightpart"
,
0
,
ki18n
(
"Filelight"
),
APP_VERSION
,
ki18n
(
"Displays file usage in an easy to understand way."
),
KAboutData
::
License_GPL
,
ki18n
(
"(c) 2002-2004 Max Howell
\n
\
(c) 2008-2009 Martin T. Sandsmark"
),
KLocalizedString
(),
"http://iskrembilen.com/"
,
"sandsmark@iskrembilen.com"
).
setProgramIconName
(
"filelight"
).
setCatalogName
(
"filelight"
)))
BrowserExtension
::
BrowserExtension
(
Part
*
parent
)
:
KParts
::
BrowserExtension
(
parent
)
...
...
@@ -65,9 +78,8 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QList<QVariant>&)
,
m_started
(
false
)
{
Config
::
read
();
KGlobal
::
locale
()
->
insertCatalog
(
"filelight"
);
setComponentData
(
filelightPartFactory
::
componentData
());
setXMLFile
(
"filelight
_
partui.rc"
);
setXMLFile
(
"filelightpartui.rc"
);
setWidget
(
new
QWidget
(
parentWidget
));
widget
()
->
setBackgroundRole
(
QPalette
::
Base
);
...
...
@@ -75,7 +87,7 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QList<QVariant>&)
m_layout
=
new
QGridLayout
(
widget
());
widget
()
->
setLayout
(
m_layout
);
m_manager
=
new
ScanManager
(
widget
());
m_map
=
new
RadialMap
::
Widget
(
widget
());
...
...
@@ -211,23 +223,6 @@ Part::configFilelight()
dialog
->
show
();
//deletes itself
}
KAboutData
*
Part
::
createAboutData
()
{
return
new
KAboutData
(
"filelight"
,
0
,
ki18n
(
"Filelight"
),
APP_VERSION
,
ki18n
(
"Displays file usage in an easy to understand way."
),
KAboutData
::
License_GPL
,
ki18n
(
"(c) 2002-2004 Max Howell
\n
\
(c) 2008-2009 Martin T. Sandsmark"
),
KLocalizedString
(),
"http://iskrembilen.com/"
,
"sandsmark@iskrembilen.com"
);
}
bool
Part
::
start
(
const
KUrl
&
url
)
{
...
...
src/part/part.h
View file @
539af278
...
...
@@ -64,8 +64,6 @@ public:
return
url
().
protocol
()
==
"file"
?
url
().
path
()
:
url
().
prettyUrl
();
}
static
KAboutData
*
createAboutData
();
public
slots
:
virtual
bool
openUrl
(
const
KUrl
&
);
void
configFilelight
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment