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
3cabf11e
Commit
3cabf11e
authored
Mar 29, 2017
by
Harald Sitter
🎶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flatten the source tree now that everything links into one binary properly
parent
98943bcb
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
50 additions
and
69 deletions
+50
-69
src/CMakeLists.txt
src/CMakeLists.txt
+30
-3
src/Config.cpp
src/Config.cpp
+0
-0
src/Config.h
src/Config.h
+0
-0
src/define.h
src/define.h
+1
-1
src/dialog.ui
src/dialog.ui
+0
-0
src/fileTree.cpp
src/fileTree.cpp
+0
-0
src/fileTree.h
src/fileTree.h
+0
-0
src/historyAction.cpp
src/historyAction.cpp
+0
-0
src/historyAction.h
src/historyAction.h
+0
-0
src/localLister.cpp
src/localLister.cpp
+0
-0
src/localLister.h
src/localLister.h
+0
-0
src/main.cpp
src/main.cpp
+0
-0
src/mainWindow.cpp
src/mainWindow.cpp
+1
-1
src/mainWindow.h
src/mainWindow.h
+0
-0
src/part.cpp
src/part.cpp
+0
-0
src/part.h
src/part.h
+0
-0
src/part/CMakeLists.txt
src/part/CMakeLists.txt
+0
-46
src/progressBox.cpp
src/progressBox.cpp
+0
-0
src/progressBox.h
src/progressBox.h
+0
-0
src/radialMap/labels.cpp
src/radialMap/labels.cpp
+5
-5
src/radialMap/map.cpp
src/radialMap/map.cpp
+3
-3
src/radialMap/map.h
src/radialMap/map.h
+1
-1
src/radialMap/radialMap.h
src/radialMap/radialMap.h
+0
-0
src/radialMap/sincos.h
src/radialMap/sincos.h
+0
-0
src/radialMap/widget.cpp
src/radialMap/widget.cpp
+2
-2
src/radialMap/widget.h
src/radialMap/widget.h
+0
-0
src/radialMap/widgetEvents.cpp
src/radialMap/widgetEvents.cpp
+7
-7
src/remoteLister.cpp
src/remoteLister.cpp
+0
-0
src/remoteLister.h
src/remoteLister.h
+0
-0
src/scan.cpp
src/scan.cpp
+0
-0
src/scan.h
src/scan.h
+0
-0
src/settingsDialog.cpp
src/settingsDialog.cpp
+0
-0
src/settingsDialog.h
src/settingsDialog.h
+0
-0
src/summaryWidget.cpp
src/summaryWidget.cpp
+0
-0
src/summaryWidget.h
src/summaryWidget.h
+0
-0
No files found.
src/CMakeLists.txt
View file @
3cabf11e
#######################################################################
# Copyright 2008-20
14
Martin Sandsmark <martin.sandsmark@kde.org>
# Copyright 2008-20
09
Martin Sandsmark <martin.sandsmark@kde.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
...
...
@@ -18,5 +18,32 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#######################################################################
add_subdirectory
(
app
)
add_subdirectory
(
part
)
set
(
filelight_SRCS
radialMap/widget.cpp
radialMap/map.cpp
radialMap/widgetEvents.cpp
radialMap/labels.cpp
part.cpp
scan.cpp
progressBox.cpp
Config.cpp
settingsDialog.cpp
fileTree.cpp
localLister.cpp
remoteLister.cpp
summaryWidget.cpp
historyAction.cpp
mainWindow.cpp
main.cpp
)
message
(
WARNING
"sort srcs"
)
ki18n_wrap_ui
(
filelight_SRCS dialog.ui
)
add_executable
(
filelight
${
filelight_SRCS
}
)
target_link_libraries
(
filelight
KF5::Parts
KF5::XmlGui
)
install
(
TARGETS filelight
${
INSTALL_TARGETS_DEFAULT_ARGS
}
)
src/
part/
Config.cpp
→
src/Config.cpp
View file @
3cabf11e
File moved
src/
part/
Config.h
→
src/Config.h
View file @
3cabf11e
File moved
src/define.h
View file @
3cabf11e
...
...
@@ -23,7 +23,7 @@
#ifndef DEFINE_H
#define DEFINE_H
#include "
part/
Config.h"
#include "Config.h"
#undef VERSION
#undef PACKAGE
...
...
src/
part/
dialog.ui
→
src/dialog.ui
View file @
3cabf11e
File moved
src/
part/
fileTree.cpp
→
src/fileTree.cpp
View file @
3cabf11e
File moved
src/
part/
fileTree.h
→
src/fileTree.h
View file @
3cabf11e
File moved
src/
app/
historyAction.cpp
→
src/historyAction.cpp
View file @
3cabf11e
File moved
src/
app/
historyAction.h
→
src/historyAction.h
View file @
3cabf11e
File moved
src/
part/
localLister.cpp
→
src/localLister.cpp
View file @
3cabf11e
File moved
src/
part/
localLister.h
→
src/localLister.h
View file @
3cabf11e
File moved
src/
app/
main.cpp
→
src/main.cpp
View file @
3cabf11e
File moved
src/
app/
mainWindow.cpp
→
src/mainWindow.cpp
View file @
3cabf11e
...
...
@@ -20,7 +20,7 @@
***********************************************************************/
#include "mainWindow.h"
#include "part
/part
.h"
#include "part.h"
#include "historyAction.h"
#include <cstdlib> //std::exit()
...
...
src/
app/
mainWindow.h
→
src/mainWindow.h
View file @
3cabf11e
File moved
src/part
/part
.cpp
→
src/part.cpp
View file @
3cabf11e
File moved
src/part
/part
.h
→
src/part.h
View file @
3cabf11e
File moved
src/part/CMakeLists.txt
deleted
100644 → 0
View file @
98943bcb
#######################################################################
# Copyright 2008-2009 Martin Sandsmark <martin.sandsmark@kde.org>
#
# 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) version 3 or any later version
# accepted by the membership of KDE e.V. (or its successor approved
# by the membership of KDE e.V.), which shall act as a proxy
# defined in Section 14 of version 3 of the license.
#
# 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 <http://www.gnu.org/licenses/>.
#######################################################################
set
(
filelight_PART_SRCS
radialMap/widget.cpp
radialMap/map.cpp
radialMap/widgetEvents.cpp
radialMap/labels.cpp
part.cpp
scan.cpp
progressBox.cpp
Config.cpp
settingsDialog.cpp
fileTree.cpp
localLister.cpp
remoteLister.cpp
summaryWidget.cpp
)
ki18n_wrap_ui
(
filelight_PART_SRCS dialog.ui
)
add_library
(
filelightpart STATIC
${
filelight_PART_SRCS
}
)
target_include_directories
(
filelightpart INTERFACE
"$<INSTALL_INTERFACE:
${
CURRENT_SOURCE_DIR
}
>"
)
target_link_libraries
(
filelightpart
KF5::Parts
KF5::KIOCore
)
install
(
TARGETS filelightpart DESTINATION
${
PLUGIN_INSTALL_DIR
}
)
src/p
art/p
rogressBox.cpp
→
src/progressBox.cpp
View file @
3cabf11e
File moved
src/p
art/p
rogressBox.h
→
src/progressBox.h
View file @
3cabf11e
File moved
src/
part/
radialMap/labels.cpp
→
src/radialMap/labels.cpp
View file @
3cabf11e
...
...
@@ -24,8 +24,8 @@
#include <QPainter>
#include <QVector>
#include "
part/
Config.h"
#include "
part/
fileTree.h"
#include "Config.h"
#include "fileTree.h"
#include "radialMap.h"
#include "sincos.h"
#include "widget.h"
...
...
@@ -98,7 +98,7 @@ void RadialMap::Widget::paintExplodedLabels(QPainter &paint) const
for
(
Segment
*
segment
:
*
m_map
.
m_signature
)
{
if
(
segment
->
length
()
>
288
)
{
list
.
append
(
new
Label
(
segment
,
0
));
}
}
}
...
...
@@ -121,7 +121,7 @@ void RadialMap::Widget::paintExplodedLabels(QPainter &paint) const
return
(
angle1
<
angle2
);
});
//2. Check to see if any adjacent labels are too close together
// if so, remove it (the least significant labels, since we sort by level too).
...
...
@@ -146,7 +146,7 @@ void RadialMap::Widget::paintExplodedLabels(QPainter &paint) const
font
.
setPointSize
(
Config
::
minFontPitch
);
paint
.
setFont
(
font
);
}
QVector
<
Label
*>::
iterator
it
;
do
{
...
...
src/
part/
radialMap/map.cpp
→
src/radialMap/map.cpp
View file @
3cabf11e
...
...
@@ -31,8 +31,8 @@
#include "radialMap.h" // defines
#include "
part/
Config.h"
#include "
part/
fileTree.h"
#include "Config.h"
#include "fileTree.h"
#define SINCOS_H_IMPLEMENTATION (1)
#include "sincos.h"
#include "widget.h"
...
...
@@ -102,7 +102,7 @@ void RadialMap::Map::make(const Folder *tree, bool refresh)
colorise
();
m_centerText
=
tree
->
humanReadableSize
();
//paint the pixmap
paint
();
...
...
src/
part/
radialMap/map.h
→
src/radialMap/map.h
View file @
3cabf11e
...
...
@@ -22,7 +22,7 @@
#ifndef MAP_H
#define MAP_H
#include "
part/
fileTree.h"
#include "fileTree.h"
#include <KColorScheme>
...
...
src/
part/
radialMap/radialMap.h
→
src/radialMap/radialMap.h
View file @
3cabf11e
File moved
src/
part/
radialMap/sincos.h
→
src/radialMap/sincos.h
View file @
3cabf11e
File moved
src/
part/
radialMap/widget.cpp
→
src/radialMap/widget.cpp
View file @
3cabf11e
...
...
@@ -21,8 +21,8 @@
#include "widget.h"
#include "
part/
Config.h"
#include "
part/
fileTree.h"
#include "Config.h"
#include "fileTree.h"
#include "radialMap.h" //constants
#include "map.h"
...
...
src/
part/
radialMap/widget.h
→
src/radialMap/widget.h
View file @
3cabf11e
File moved
src/
part/
radialMap/widgetEvents.cpp
→
src/radialMap/widgetEvents.cpp
View file @
3cabf11e
...
...
@@ -19,8 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
***********************************************************************/
#include "
part/
fileTree.h"
#include "
part/
Config.h"
#include "fileTree.h"
#include "Config.h"
#include "radialMap.h" //class Segment
#include "widget.h"
...
...
@@ -153,22 +153,22 @@ void RadialMap::Widget::mouseMoveEvent(QMouseEvent *e)
QString
string
=
m_focus
->
file
()
->
fullPath
(
m_tree
)
+
QLatin1Char
(
'\n'
)
+
m_focus
->
file
()
->
humanReadableSize
();
if
(
m_focus
->
file
()
->
isFolder
())
{
int
files
=
static_cast
<
const
Folder
*>
(
m_focus
->
file
())
->
children
();
const
uint
percent
=
uint
((
100
*
files
)
/
(
double
)
m_tree
->
children
());
string
+=
QLatin1Char
(
'\n'
);
string
+=
i18np
(
"File: %1"
,
"Files: %1"
,
files
);
if
(
percent
>
0
)
string
+=
QString
(
QLatin1String
(
" (%1%)"
)).
arg
(
percent
);
}
const
QUrl
url
=
Widget
::
url
(
m_focus
->
file
());
if
(
m_focus
==
m_rootSegment
&&
url
!=
KIO
::
upUrl
(
url
))
{
string
+=
i18n
(
"
\n
Click to go up to parent directory"
);
}
// Calculate a semi-sane size for the tooltip
QFontMetrics
fontMetrics
(
font
());
int
tooltipWidth
=
0
;
...
...
@@ -217,7 +217,7 @@ void RadialMap::Widget::mousePressEvent(QMouseEvent *e)
{
if
(
!
isEnabled
())
return
;
//m_focus is set correctly (I've been strict, I assure you it is correct!)
if
(
!
m_focus
||
m_focus
->
isFake
())
{
...
...
src/
part/
remoteLister.cpp
→
src/remoteLister.cpp
View file @
3cabf11e
File moved
src/
part/
remoteLister.h
→
src/remoteLister.h
View file @
3cabf11e
File moved
src/
part/
scan.cpp
→
src/scan.cpp
View file @
3cabf11e
File moved
src/
part/
scan.h
→
src/scan.h
View file @
3cabf11e
File moved
src/
part/
settingsDialog.cpp
→
src/settingsDialog.cpp
View file @
3cabf11e
File moved
src/
part/
settingsDialog.h
→
src/settingsDialog.h
View file @
3cabf11e
File moved
src/
part/
summaryWidget.cpp
→
src/summaryWidget.cpp
View file @
3cabf11e
File moved
src/
part/
summaryWidget.h
→
src/summaryWidget.h
View file @
3cabf11e
File moved
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