Full Code of oguzhaninan/Stacer for AI

native a44d0565a05c cached
191 files
1.9 MB
479.6k tokens
173 symbols
1 requests
Download .txt
Showing preview only (2,006K chars total). Download the full file or copy to clipboard to get everything.
Repository: oguzhaninan/Stacer
Branch: native
Commit: a44d0565a05c
Files: 191
Total size: 1.9 MB

Directory structure:
gitextract_zr7tsmtq/

├── .github/
│   └── FUNDING.yml
├── .gitignore
├── .travis.yml
├── CMakeLists.txt
├── LICENSE
├── README.md
├── Stacer.pro
├── applications/
│   └── stacer.desktop
├── cmake/
│   └── cxxbasics/
│       ├── CXXBasics.cmake
│       ├── DefaultSettings.cmake
│       ├── InitCXXBasics.cmake
│       ├── UNLICENSE
│       ├── accelerators/
│       │   ├── UseCCache.cmake
│       │   ├── UseCompilerCacheTool.cmake
│       │   ├── UseFasterLinkers.cmake
│       │   └── UseSCCache.cmake
│       ├── compiler_detection/
│       │   └── GetTargetArch.cmake
│       └── helpers/
│           ├── FnMktemp.cmake
│           ├── MacroCustomMessages.cmake
│           └── MacroOpt.cmake
├── debian/
│   ├── changelog
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── install
│   ├── postinst
│   ├── postrm
│   ├── rules
│   └── source/
│       └── format
├── release.sh
├── stacer/
│   ├── CMakeLists.txt
│   ├── Managers/
│   │   ├── app_manager.cpp
│   │   ├── app_manager.h
│   │   ├── info_manager.cpp
│   │   ├── info_manager.h
│   │   ├── setting_manager.cpp
│   │   ├── setting_manager.h
│   │   ├── tool_manager.cpp
│   │   └── tool_manager.h
│   ├── Pages/
│   │   ├── AptSourceManager/
│   │   │   ├── apt_source_edit.cpp
│   │   │   ├── apt_source_edit.h
│   │   │   ├── apt_source_edit.ui
│   │   │   ├── apt_source_manager_page.cpp
│   │   │   ├── apt_source_manager_page.h
│   │   │   ├── apt_source_manager_page.ui
│   │   │   ├── apt_source_repository_item.cpp
│   │   │   ├── apt_source_repository_item.h
│   │   │   └── apt_source_repository_item.ui
│   │   ├── Dashboard/
│   │   │   ├── circlebar.cpp
│   │   │   ├── circlebar.h
│   │   │   ├── circlebar.ui
│   │   │   ├── dashboard_page.cpp
│   │   │   ├── dashboard_page.h
│   │   │   ├── dashboard_page.ui
│   │   │   ├── linebar.cpp
│   │   │   ├── linebar.h
│   │   │   └── linebar.ui
│   │   ├── GnomeSettings/
│   │   │   ├── appearance_settings.cpp
│   │   │   ├── appearance_settings.h
│   │   │   ├── appearance_settings.ui
│   │   │   ├── gnome_settings_page.cpp
│   │   │   ├── gnome_settings_page.h
│   │   │   ├── gnome_settings_page.ui
│   │   │   ├── unity_settings.cpp
│   │   │   ├── unity_settings.h
│   │   │   ├── unity_settings.ui
│   │   │   ├── window_manager_settings.cpp
│   │   │   ├── window_manager_settings.h
│   │   │   └── window_manager_settings.ui
│   │   ├── Helpers/
│   │   │   ├── helpers_page.cpp
│   │   │   ├── helpers_page.h
│   │   │   ├── helpers_page.ui
│   │   │   ├── host_manage.cpp
│   │   │   ├── host_manage.h
│   │   │   └── host_manage.ui
│   │   ├── Processes/
│   │   │   ├── processes_page.cpp
│   │   │   ├── processes_page.h
│   │   │   └── processes_page.ui
│   │   ├── Resources/
│   │   │   ├── history_chart.cpp
│   │   │   ├── history_chart.h
│   │   │   ├── history_chart.ui
│   │   │   ├── resources_page.cpp
│   │   │   ├── resources_page.h
│   │   │   └── resources_page.ui
│   │   ├── Search/
│   │   │   ├── search_page.cpp
│   │   │   ├── search_page.h
│   │   │   └── search_page.ui
│   │   ├── Services/
│   │   │   ├── service_item.cpp
│   │   │   ├── service_item.h
│   │   │   ├── service_item.ui
│   │   │   ├── services_page.cpp
│   │   │   ├── services_page.h
│   │   │   └── services_page.ui
│   │   ├── Settings/
│   │   │   ├── settings_page.cpp
│   │   │   ├── settings_page.h
│   │   │   └── settings_page.ui
│   │   ├── StartupApps/
│   │   │   ├── startup_app.cpp
│   │   │   ├── startup_app.h
│   │   │   ├── startup_app.ui
│   │   │   ├── startup_app_edit.cpp
│   │   │   ├── startup_app_edit.h
│   │   │   ├── startup_app_edit.ui
│   │   │   ├── startup_apps_page.cpp
│   │   │   ├── startup_apps_page.h
│   │   │   └── startup_apps_page.ui
│   │   ├── SystemCleaner/
│   │   │   ├── byte_tree_widget.cpp
│   │   │   ├── byte_tree_widget.h
│   │   │   ├── system_cleaner_page.cpp
│   │   │   ├── system_cleaner_page.h
│   │   │   └── system_cleaner_page.ui
│   │   └── Uninstaller/
│   │       ├── uninstaller_page.cpp
│   │       ├── uninstaller_page.h
│   │       └── uninstallerpage.ui
│   ├── app.cpp
│   ├── app.h
│   ├── app.ui
│   ├── feedback.cpp
│   ├── feedback.h
│   ├── feedback.ui
│   ├── main.cpp
│   ├── signal_mapper.cpp
│   ├── signal_mapper.h
│   ├── sliding_stacked_widget.cpp
│   ├── sliding_stacked_widget.h
│   ├── stacer.pro
│   ├── static/
│   │   ├── languages.json
│   │   ├── themes/
│   │   │   ├── default/
│   │   │   │   └── style/
│   │   │   │       ├── style.qss
│   │   │   │       └── values.ini
│   │   │   └── light/
│   │   │       └── style/
│   │   │           ├── style.qss
│   │   │           └── values.ini
│   │   └── themes.json
│   ├── static.qrc
│   └── utilities.h
├── stacer-core/
│   ├── CMakeLists.txt
│   ├── Info/
│   │   ├── cpu_info.cpp
│   │   ├── cpu_info.h
│   │   ├── disk_info.cpp
│   │   ├── disk_info.h
│   │   ├── memory_info.cpp
│   │   ├── memory_info.h
│   │   ├── network_info.cpp
│   │   ├── network_info.h
│   │   ├── process.cpp
│   │   ├── process.h
│   │   ├── process_info.cpp
│   │   ├── process_info.h
│   │   ├── system_info.cpp
│   │   └── system_info.h
│   ├── Tools/
│   │   ├── apt_source_tool.cpp
│   │   ├── apt_source_tool.h
│   │   ├── gnome_schema.h
│   │   ├── gnome_settings_tool.cpp
│   │   ├── gnome_settings_tool.h
│   │   ├── package_tool.cpp
│   │   ├── package_tool.h
│   │   ├── service_tool.cpp
│   │   └── service_tool.h
│   ├── Utils/
│   │   ├── command_util.cpp
│   │   ├── command_util.h
│   │   ├── file_util.cpp
│   │   ├── file_util.h
│   │   ├── format_util.cpp
│   │   └── format_util.h
│   ├── stacer-core.pro
│   └── stacer-core_global.h
└── translations/
    ├── stacer_ar.ts
    ├── stacer_ca-es.ts
    ├── stacer_cs.ts
    ├── stacer_de.ts
    ├── stacer_en.ts
    ├── stacer_es.ts
    ├── stacer_fr.ts
    ├── stacer_gl.ts
    ├── stacer_hi.ts
    ├── stacer_hu.ts
    ├── stacer_it.ts
    ├── stacer_kn.ts
    ├── stacer_ko.ts
    ├── stacer_ml.ts
    ├── stacer_nl.ts
    ├── stacer_oc.ts
    ├── stacer_pl.ts
    ├── stacer_pt.ts
    ├── stacer_ro.ts
    ├── stacer_ru.ts
    ├── stacer_sv.ts
    ├── stacer_tr.ts
    ├── stacer_ua.ts
    ├── stacer_vn.ts
    ├── stacer_zh-cn.ts
    └── stacer_zh-tw.ts

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: oguzhaninan
open_collective: stacer
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
custom: # Replace with a single custom sponsorship URL


================================================
FILE: .gitignore
================================================
Stacer.pro.*
dist/
build/
#*.AppImage
.vscode
Release/

================================================
FILE: .travis.yml
================================================
language: cpp
compiler: clang
sudo: require
dist: trusty
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt591-trusty -y
- sudo apt-get update -qq
install:
- sudo apt-get -y -qq install cmake
- sudo apt-get -y -qq install libgl1-mesa-dev qt59base qt59imageformats qt59svg qt59charts-no-lgpl qt59tools
- source /opt/qt*/bin/qt*-env.sh
before_script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_PREFIX_PATH=$QTDIR/bin ..
script:
- make -j $(nproc)
- lupdate ../stacer/stacer.pro -no-obsolete
- lrelease ../stacer/stacer.pro

================================================
FILE: CMakeLists.txt
================================================
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(Stacer)

# Adding features(build cache + faster linkers) and reasonable defaults(Debug build by default)
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxxbasics/CXXBasics.cmake")

# Setting a cleaner directory structure for the generated binaries
set(CMAKE_BINARY_DIR        "${CMAKE_BINARY_DIR}/output")
set(EXECUTABLE_OUTPUT_PATH  "${CMAKE_BINARY_DIR}/")
set(LIBRARY_OUTPUT_PATH     "${CMAKE_BINARY_DIR}/lib")

set(PROJECT_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")

# Activating MOC and searching for the Qt5 dependencies
set(CMAKE_AUTOMOC ON)
find_package(Qt5  COMPONENTS  Core Gui Widgets Charts Svg Concurrent REQUIRED)

# Setting the minimum C++ standard and passing the Qt-specific define
set(CMAKE_CXX_STANDARD           11)
set(CMAKE_CXX_EXTENSIONS         YES)
set(CMAKE_CXX_STANDARD_REQUIRED  YES)
add_definitions(-DQT_DEPRECATED_WARNINGS)

# Subprojects
add_subdirectory(stacer-core)
add_subdirectory(stacer)


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    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 <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: README.md
================================================

<p align="center">
⚠️ <b>This project has been abandoned. There will be no further releases </b>⚠️
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/header.png" width="800">    
</p>
<p align="center">
  <b>Linux System Optimizer and Monitoring</b>   <br>
  <a href="https://www.patreon.com/oguzhaninan">
	<img alt="Patreon" src="https://c5.patreon.com/external/logo/become_a_patron_button.png" height="50" />
</a>
</p>

<p align="center">
	<a href="https://sourceforge.net/projects/stacer/files/" rel="nofollow">
		<img alt="Download Stacer" src="https://img.shields.io/sourceforge/dt/stacer.svg"/>
	</a>
	<a href="http://www.kernel.org">
		<img alt="Platform (GNU/Linux)" src="https://img.shields.io/badge/platform-GNU/Linux-blue.svg"/>
	</a>
	<a href="https://github.com/oguzhaninan/Stacer/releases">
		<img alt="Github All Releases" src="https://img.shields.io/github/downloads/oguzhaninan/stacer/total.svg"/>
	</a>
</p>
<p align="center">
	<a href="https://sourceforge.net/projects/stacer/files/" >
		<img src="https://a.fsdn.com/con/app/sf-download-button" />
	</a>
</p>	

## Reviews
<p align="left">
    <a href="http://www.omgubuntu.co.uk/2017/01/stacer-system-optimizer-for-ubuntu">
		<img width="65px" src="https://oguzhaninan.github.io/Stacer-Web/images/sites/site0.png"/>
	</a>      
    <a href="http://blog.desdelinux.net/optimizar-debian-ubuntu-linux-mint-derivados-stacer/">
		<img width="155px" src="http://i.imgur.com/eV1WxYZ.png"/>
	</a>
	<a href="http://www.techrepublic.com/article/how-to-install-stacer-for-quick-linux-system-optimization/">
		<img width="150px" src="https://static1.squarespace.com/static/55afdc11e4b000b229a97849/t/55b13f1de4b044f556a02524/1437679408913/"/>
	</a>
	</a>
</p>

### Required Packages
- curl, systemd

### PPA Repository (for ubuntu)
1. `sudo add-apt-repository ppa:oguzhaninan/stacer -y`   
2. `sudo apt-get update`   
3. `sudo apt-get install stacer -y`


### Arch Linux (AUR)
1. Install the stacer package with a AUR helper of your choice eg.
2. `yay -Syyu stacer`
3. `paru -S stacer`
4. `pacaur -a stacer`

### Debian x64

1. Download `stacer_1.1.0_amd64.deb` from the [Stacer releases page](https://github.com/oguzhaninan/Stacer/releases).
2. Run `sudo dpkg -i stacer*.deb` on the downloaded package.
3. Launch Stacer using the installed `stacer` command.

### Debian sid / Ubuntu 20.04+

1. Run as root `apt install stacer`

### Fedora
1. Download `stacer_1.1.0_amd64.rpm` from the [Stacer releases page](https://github.com/oguzhaninan/Stacer/releases).
2. Run `sudo rpm --install stacer*.rpm --nodeps --force` on the downloaded package.
3. Launch Stacer using the installed `stacer` command.

### Fedora (with DNF)
1. Run: `sudo dnf install stacer`
2. Launch Stacer using the installed `stacer` command.

## Build from source with CMake (Qt Version Qt 5.x)
1. `mkdir build && cd build`
2. `cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/qt/path/bin ..`
3. `make -j $(nproc)`
4. `output/bin/stacer`

## Screenshots

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-1.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-2.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-3.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-4.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-5.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-6.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-7.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-8.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-9.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-10.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-11.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-12.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-13.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-14.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-15.png" width="700">
</p>

<p align="center">
    <img src="https://raw.githubusercontent.com/oguzhaninan/Stacer/native/screenshots/Screenshot-1.0.9-16.png" width="700">
</p>

## Contributors

### Code Contributors

This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/oguzhaninan/Stacer/graphs/contributors"><img src="https://opencollective.com/Stacer/contributors.svg?width=890&button=false" /></a>

### Financial Contributors

Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/Stacer/contribute)]

#### Individuals

<a href="https://opencollective.com/Stacer"><img src="https://opencollective.com/Stacer/individuals.svg?width=890"></a>

#### Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/Stacer/contribute)]

<a href="https://opencollective.com/Stacer/organization/0/website"><img src="https://opencollective.com/Stacer/organization/0/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/1/website"><img src="https://opencollective.com/Stacer/organization/1/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/2/website"><img src="https://opencollective.com/Stacer/organization/2/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/3/website"><img src="https://opencollective.com/Stacer/organization/3/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/4/website"><img src="https://opencollective.com/Stacer/organization/4/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/5/website"><img src="https://opencollective.com/Stacer/organization/5/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/6/website"><img src="https://opencollective.com/Stacer/organization/6/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/7/website"><img src="https://opencollective.com/Stacer/organization/7/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/8/website"><img src="https://opencollective.com/Stacer/organization/8/avatar.svg"></a>
<a href="https://opencollective.com/Stacer/organization/9/website"><img src="https://opencollective.com/Stacer/organization/9/avatar.svg"></a>


================================================
FILE: Stacer.pro
================================================
TEMPLATE = subdirs

SUBDIRS += \
    stacer-core \
    stacer


================================================
FILE: applications/stacer.desktop
================================================
[Desktop Entry]
Name=Stacer
Exec=stacer
Comment=Linux System Optimizer and Monitoring
Icon=stacer
Type=Application
Terminal=false
Categories=Utility;


================================================
FILE: cmake/cxxbasics/CXXBasics.cmake
================================================
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")

# Variables necessary in every module
include(InitCXXBasics)

# Set reasonable CMake defaults
include(DefaultSettings)

# Activate faster linkers by default
include(accelerators/UseFasterLinkers)

# Activate the compiler cache tool
include(accelerators/UseCompilerCacheTool)

# Allow the user to extend CXXBasics
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/../cxxbasics-extension.cmake")
  include("${CMAKE_CURRENT_LIST_DIR}/../cxxbasics-extension.cmake")
endif()


================================================
FILE: cmake/cxxbasics/DefaultSettings.cmake
================================================
# This module sets reasonable defaults that probably every C/C++ CMake project should

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

# Default build type "Debug"
opt_ifndef("Build Type(Debug, Release, RelWithDebInfo, MinSizeRel)"  STRING  "Debug"  CMAKE_BUILD_TYPE)

# Generate "compile_commands.json" - tools like clang-tidy can be run on this file
set(CMAKE_EXPORT_COMPILE_COMMANDS  ON)


================================================
FILE: cmake/cxxbasics/InitCXXBasics.cmake
================================================
## This module defines common functions and variables that should be accessible in every module

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

# Enable C and CXX by default. This allows to run some commands in script mode, or using "-C"
enable_language(C)
enable_language(CXX)

# Project custom messaging macros
include(helpers/MacroCustomMessages)

# Widely-used macros to handle the cache variables
include(helpers/MacroOpt)


================================================
FILE: cmake/cxxbasics/UNLICENSE
================================================
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>


================================================
FILE: cmake/cxxbasics/accelerators/UseCCache.cmake
================================================
# This module activates "ccache" support on Unix
# This module is supposed to be used only from "UseCompilerCacheTool.cmake"

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

find_program(__cxxbasics_ccache_found  ccache)
if(__cxxbasics_ccache_found)
  if(NOT CMAKE_C_COMPILER_LAUNCHER)
    set(CMAKE_C_COMPILER_LAUNCHER    ccache)
  endif()

  if(NOT CMAKE_CXX_COMPILER_LAUNCHER)
    set(CMAKE_CXX_COMPILER_LAUNCHER  ccache)
  endif()
endif()


================================================
FILE: cmake/cxxbasics/accelerators/UseCompilerCacheTool.cmake
================================================
# This module activates a compiler cache

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

opt_ifndef("Use a compiler cache tool, if supported"  BOOL  ON  CXXBASICS_ACTIVATE_COMPILER_CACHE)
if(CXXBASICS_ACTIVATE_COMPILER_CACHE)
  if(CMAKE_HOST_UNIX)
    include(accelerators/UseCCache)
  endif()

  if(NOT CMAKE_C_COMPILER_LAUNCHER OR NOT CMAKE_CXX_COMPILER_LAUNCHER)
    include(accelerators/UseSCCache)
  endif()

  if(CMAKE_C_COMPILER_LAUNCHER)
    cbok("Compiler cache tool \"${CMAKE_C_COMPILER_LAUNCHER}\" set for the C compiler")
  else()
    cbnok("Could not set a compiler cache tool for the C compiler")
  endif()

  if(CMAKE_CXX_COMPILER_LAUNCHER)
    cbok("Compiler cache tool \"${CMAKE_CXX_COMPILER_LAUNCHER}\" set for the CXX compiler")
  else()
    cbnok("Could not set a compiler cache tool for the CXX compiler")
  endif()
endif()


================================================
FILE: cmake/cxxbasics/accelerators/UseFasterLinkers.cmake
================================================
# This module activates faster linkers, if these are available and supported.
# It prefers the fastest linker available(as of this writing LLD -> GNU gold -> ...)
# The linker is handled separately per compiler, so, you can do something like this:
# -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=clang++

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)


cmake_policy(PUSH)
if(POLICY CMP0054)
  cmake_policy(SET CMP0054 NEW)
endif(POLICY CMP0054)

opt_ifndef("Use faster linkers(LLD, GNU gold...) if supported"  BOOL  ON  CXXBASICS_USE_FASTER_LINKERS)
if(CXXBASICS_USE_FASTER_LINKERS)
  macro(__cxxbasics_set_linker  compiler)
    # Lets check if the default linker is not actually LLD or GNU gold(ex: a symbolic link)
    execute_process(COMMAND ${compiler} -Wl,--version
        OUTPUT_VARIABLE __cxxbasics_ld_version
        ERROR_QUIET)

    if("${__cxxbasics_ld_version}" MATCHES "LLD")
      set(__cxxbasics_using_lld_linker ON)
    elseif("${__cxxbasics_ld_version}" MATCHES "GNU gold")
      set(__cxxbasics_using_gold_linker ON)
    else()
      set(__cxxbasics_using_default_linker ON)
    endif()

    # We don't do anything if the system linker already is the LLD linker, or links to it
    if(NOT __cxxbasics_using_lld_linker)
      # We try to set LLD first because it's the fastest linker currently
      if(NOT __cxxbasics_using_lld_linker)
        # LLD is currently production quality only on "x86_64"
        include(compiler_detection/GetTargetArch)
        if("${compiler}" STREQUAL "${CMAKE_C_COMPILER}")
          set(__cxxbasics_target_arch "${CXXBASICS_C_COMPILER_TARGET_ARCH}")
          set(__cxxbasics_current_compiler "CMAKE_C_COMPILER")
        elseif("${compiler}" STREQUAL "${CMAKE_CXX_COMPILER}")
          set(__cxxbasics_target_arch "${CXXBASICS_CXX_COMPILER_TARGET_ARCH}")
          set(__cxxbasics_current_compiler "CMAKE_CXX_COMPILER")
        else()
          cberror("Could not obtain CMAKE_C_COMPILER nor CMAKE_CXX_COMPILER")
        endif()

        if("${__cxxbasics_target_arch}" STREQUAL "x86_64")
          # Lets check if the compiler supports the LLD linker
          execute_process(COMMAND ${compiler} -fuse-ld=lld -Wl,--version
              OUTPUT_VARIABLE __cxxbasics_ld_version
              ERROR_QUIET)

          if("${__cxxbasics_ld_version}" MATCHES "LLD")
            if("${__cxxbasics_current_compiler}" STREQUAL "CMAKE_C_COMPILER")
              set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -fuse-ld=lld")
            else()
              set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -fuse-ld=lld")
            endif()

            set(__cxxbasics_using_lld_linker ON)
            cbok("${__cxxbasics_current_compiler}(${compiler})'s linker set to: LLD linker")
          endif()
        endif("${__cxxbasics_target_arch}" STREQUAL "x86_64")
      endif()

      # We set the GNU gold linker if we failed to set LLD
      if(NOT __cxxbasics_using_lld_linker AND NOT __cxxbasics_using_gold_linker)
        execute_process(COMMAND ${compiler} -fuse-ld=gold -Wl,--version
            OUTPUT_VARIABLE __cxxbasics_ld_version
            ERROR_QUIET)

        if("${__cxxbasics_ld_version}" MATCHES "GNU gold")
          if("${__cxxbasics_current_compiler}" STREQUAL "CMAKE_C_COMPILER")
            set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -fuse-ld=gold")
          else()
            set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -fuse-ld=gold")
          endif()

          set(__cxxbasics_using_gold_linker ON)
          cbok("${__cxxbasics_current_compiler}(${compiler})'s linker is set to: GNU gold linker")
        endif()
      endif()

      # If we failed to set LLD or the GNU gold linker, we fallback to the default linker
      if(NOT __cxxbasics_using_lld_linker AND NOT __cxxbasics_using_gold_linker)
        set(__cxxbasics_using_default_linker ON)
        cbnok("${__cxxbasics_current_compiler}(${compiler})'s linker set to the fallback: default linker")
      endif()
    endif(NOT __cxxbasics_using_lld_linker)

    unset(__cxxbasics_using_lld_linker)
    unset(__cxxbasics_using_gold_linker)
    unset(__cxxbasics_using_default_linker)
    unset(__cxxbasics_ld_version)
    unset(__cxxbasics_target_arch)
    unset(__cxxbasics_current_compiler)
  endmacro()

  # Set the linker for the C compiler
  __cxxbasics_set_linker("${CMAKE_C_COMPILER}")

  # Set the linker for the CXX compiler
  __cxxbasics_set_linker("${CMAKE_CXX_COMPILER}")
endif()

cmake_policy(POP)


================================================
FILE: cmake/cxxbasics/accelerators/UseSCCache.cmake
================================================
# This module activates "sccache" support on Unix and Windows if
# another compiler cache tool was not found.
# This module is supposed to be used only from "UseCompilerCacheTool.cmake"

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

find_program(__cxxbasics_sccache_found  sccache)
if(__cxxbasics_sccache_found)
  if(NOT CMAKE_C_COMPILER_LAUNCHER)
    set(CMAKE_C_COMPILER_LAUNCHER    sccache)
  endif()

  if(NOT CMAKE_CXX_COMPILER_LAUNCHER)
    set(CMAKE_CXX_COMPILER_LAUNCHER  sccache)
  endif()
endif()


================================================
FILE: cmake/cxxbasics/compiler_detection/GetTargetArch.cmake
================================================
# This module identifies the target architecture of the C and CXX compilers

# ARM("armv8" includes AArch64, "arm" is all the old ARM processors + Cortex-M): armv8, armv7, armv6, armv5, arm
# Itanium:                                                                       ia64
# Traditional PC architectures:                                                  x86, x86_64
# MIPS(RISC):                                                                    mipsI, mipsII, mipsIII, mipsIV, mipsV, mips32, mips64, mips
# PowerPC:                                                                       ppc64, ppc
# IBM System z:                                                                  s390, s390x
# SPARC:                                                                         sparcv9, sparc64, sparc

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

cmake_policy(PUSH)
if(POLICY CMP0054)
  cmake_policy(SET CMP0054 NEW)
endif(POLICY CMP0054)

opt_ifndef("C compiler target architecture"    STRING  ""  CXXBASICS_C_COMPILER_TARGET_ARCH)
opt_ifndef("CXX compiler target architecture"  STRING  ""  CXXBASICS_CXX_COMPILER_TARGET_ARCH)
if("${CXXBASICS_C_COMPILER_TARGET_ARCH}" STREQUAL ""
    OR "${CXXBASICS_CXX_COMPILER_TARGET_ARCH}" STREQUAL "")
  include(helpers/FnMktemp)

  mktemp()
  if("${mktemp_result}" STREQUAL "")
    opt_overwrite(CXXBASICS_TMP_FOLDER "${CMAKE_BINARY_DIR}")
    mktemp()
  endif()

  ## Based on Qt 5.9 processor detection: https://github.com/qt/qtbase/blob/dev/src/corelib/global/qprocessordetection.h
  file(WRITE "${mktemp_result}"
      "
      // ARM
      #if defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM) || defined(__aarch64__)
      #  if defined(__ARM64_ARCH_8__) \\
            || defined(__aarch64__) \\
            || defined(__CORE_CORTEXAV8__) // GHS-specific for INTEGRITY
      #    define Q_PROCESSOR_ARM 8
      #  elif defined(__ARM_ARCH_7__) \\
            || defined(__ARM_ARCH_7A__) \\
            || defined(__ARM_ARCH_7R__) \\
            || defined(__ARM_ARCH_7M__) \\
            || defined(__ARM_ARCH_7S__) \\
            || defined(_ARM_ARCH_7) \\
            || defined(__CORE_CORTEXA__) // GHS-specific for INTEGRITY
      #    define Q_PROCESSOR_ARM 7
      #  elif defined(__ARM_ARCH_6__) \\
            || defined(__ARM_ARCH_6J__) \\
            || defined(__ARM_ARCH_6T2__) \\
            || defined(__ARM_ARCH_6Z__) \\
            || defined(__ARM_ARCH_6K__) \\
            || defined(__ARM_ARCH_6ZK__) \\
            || defined(__ARM_ARCH_6M__)
      #    define Q_PROCESSOR_ARM 6
      #  elif defined(__ARM_ARCH_5TEJ__) \\
              || defined(__ARM_ARCH_5TE__)
      #    define Q_PROCESSOR_ARM 5
      #  else
      #    define Q_PROCESSOR_ARM 0
      #  endif
      #  if Q_PROCESSOR_ARM >= 8
      #    error CMAKE_TARGET_ARCH armv8
      #  endif
      #  if Q_PROCESSOR_ARM >= 7
      #    error CMAKE_TARGET_ARCH armv7
      #  endif
      #  if Q_PROCESSOR_ARM >= 6
      #    error CMAKE_TARGET_ARCH armv6
      #  endif
      #  if Q_PROCESSOR_ARM >= 5
      #    error CMAKE_TARGET_ARCH armv5
      #  endif
      #  error CMAKE_TARGET_ARCH arm // old ARM, Cortex-M...
      #elif defined(__i386) || defined(__i386__) || defined(_M_IX86) // x86
      #  error CMAKE_TARGET_ARCH x86
      #elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64) // x86_64
      #  error CMAKE_TARGET_ARCH x86_64
      #elif defined(__ia64) || defined(__ia64__) || defined(_M_IA64) // Itanium
      #  error CMAKE_TARGET_ARCH ia64
      #elif defined(__mips) || defined(__mips__) || defined(_M_MRX000) // MIPS(RISC)
      #  if defined(_MIPS_ARCH_MIPS1) || (defined(__mips) && __mips - 0 >= 1)
      #    error CMAKE_TARGET_ARCH mipsI
      #  endif
      #  if defined(_MIPS_ARCH_MIPS2) || (defined(__mips) && __mips - 0 >= 2)
      #    error CMAKE_TARGET_ARCH mipsII
      #  endif
      #  if defined(_MIPS_ARCH_MIPS3) || (defined(__mips) && __mips - 0 >= 3)
      #    error CMAKE_TARGET_ARCH mipsIII
      #  endif
      #  if defined(_MIPS_ARCH_MIPS4) || (defined(__mips) && __mips - 0 >= 4)
      #    error CMAKE_TARGET_ARCH mipsIV
      #  endif
      #  if defined(_MIPS_ARCH_MIPS5) || (defined(__mips) && __mips - 0 >= 5)
      #    error CMAKE_TARGET_ARCH mipsV
      #  endif
      #  if defined(_MIPS_ARCH_MIPS32) || defined(__mips32) || (defined(__mips) && __mips - 0 >= 32)
      #    error CMAKE_TARGET_ARCH mips32
      #  endif
      #  if defined(_MIPS_ARCH_MIPS64) || defined(__mips64)
      #    error CMAKE_TARGET_ARCH mips64
      #  endif
      #  error CMAKE_TARGET_ARCH mips // Unknown MIPS
      #elif defined(__ppc__) || defined(__ppc) || defined(__powerpc__) \\
            || defined(_ARCH_COM) || defined(_ARCH_PWR) || defined(_ARCH_PPC)  \\
            || defined(_M_MPPC) || defined(_M_PPC)
      #  if defined(__ppc64__) || defined(__powerpc64__) || defined(__64BIT__)
      #    error CMAKE_TARGET_ARCH ppc64 // PowerPC 64
      #  endif
      #  error CMAKE_TARGET_ARCH ppc // PowerPC
      #elif defined(__s390__) // IBM System z(s390/s390x)
      #  if defined(__s390x__)
      #    error CMAKE_TARGET_ARCH s390x
      #  endif
      #  error CMAKE_TARGET_ARCH s390
      #elif defined(__sparc__) // SPARC
      #  if defined(__sparc_v9__)
      #    error CMAKE_TARGET_ARCH sparcv9
      #  endif
      #  if defined(__sparc64__)
      #    error CMAKE_TARGET_ARCH sparc64
      #  endif
      #  error CMAKE_TARGET_ARCH sparc
      #endif

      #error CMAKE_TARGET_ARCH unknown
      ")

  macro(__cxxbasics_define_arch  suffix  variable)
    file(RENAME "${mktemp_result}" "${mktemp_result}${suffix}")
    set(mktemp_result "${mktemp_result}${suffix}")

    try_compile(run_unused_result
        "${CMAKE_CURRENT_BINARY_DIR}"
        SOURCES "${mktemp_result}"
        OUTPUT_VARIABLE TARGET_ARCH
    )

    if("${TARGET_ARCH}" MATCHES "CMAKE_TARGET_ARCH")
      # Extracting the first "CMAKE_TARGET_ARCH [arch]"
      string(REGEX MATCH "CMAKE_TARGET_ARCH ([A-Za-z0-9_]+)" TARGET_ARCH "${TARGET_ARCH}")

      # Remove "CMAKE_TARGET_ARCH" and leaving only the architecture
      string(REPLACE "CMAKE_TARGET_ARCH " "" TARGET_ARCH "${TARGET_ARCH}")

      # Lets see if it is not unknown, otherwise we know we have the correct architecture in TARGET_ARCH
      if("${TARGET_ARCH}" STREQUAL "unknown")
        opt_overwrite(${variable} "unknown")
      else()
        opt_overwrite(${variable} "${TARGET_ARCH}")
      endif()
    else()
      # If for some reason we didn't get the expected string, set the arch to "unknown"
      opt_overwrite(${variable} "unknown")
    endif()

    # Catching coding errors
    if("${variable}" STREQUAL "")
      opt_overwrite(${variable} "unknown")
    endif()

    cbmessage("`${variable}` set to \"${${variable}}\"")
  endmacro()

  __cxxbasics_define_arch(".c"    CXXBASICS_C_COMPILER_TARGET_ARCH)
  __cxxbasics_define_arch(".cxx"  CXXBASICS_CXX_COMPILER_TARGET_ARCH)
endif()

cmake_policy(POP)


================================================
FILE: cmake/cxxbasics/helpers/FnMktemp.cmake
================================================
## This module defines helper functions to create temporary files and folders in a system-agnostic way

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

opt_ifndef("CXXBasics temporary folder(uses system folder by default)"  PATH  ""  CXXBASICS_TMP_FOLDER)
macro(__cxxbasics_mktemp_helper)
  # Try to catch wrong usage
  if(NOT "${ARGV0}" STREQUAL "file" AND NOT "${ARGV0}" STREQUAL "directory")
    cberror("Wrong use of the macro")
  endif()

  # If `CXXBASICS_TMP_FOLDER` is not defined or set to an empty string, than we will try to set it to the system TMP
  if(NOT DEFINED CXXBASICS_TMP_FOLDER OR NOT IS_DIRECTORY "${CXXBASICS_TMP_FOLDER}")
    if(CMAKE_HOST_WIN32)
      opt_overwrite(CXXBASICS_TMP_FOLDER "$ENV{TMP}")
    elseif(CMAKE_HOST_UNIX)
      opt_overwrite(CXXBASICS_TMP_FOLDER "/tmp")
    else()
      cberror("Unsupported OS. Cannot set the temporary folder, please manually modify CXXBASICS_TMP_FOLDER in the cache")
    endif()
  endif(NOT DEFINED CXXBASICS_TMP_FOLDER OR NOT IS_DIRECTORY "${CXXBASICS_TMP_FOLDER}")

  # Lets make sure it's actually a directory
  if(NOT IS_DIRECTORY "${CXXBASICS_TMP_FOLDER}")
    cberror("`${CXXBASICS_TMP_FOLDER}` is not a folder. Please manually modify CXXBASICS_TMP_FOLDER in the cache")
  endif()

  # We will try to generate different random names until we are sure that it is unique for the path we try to use
  opt_ifndef("Project prefix to be used when creating files and folders"  STRING  "cxxbasics"  CXXBASICS_PROJECT_PREFIX)
  string(RANDOM LENGTH 16 random_generated_string)
  file(TO_NATIVE_PATH "${CXXBASICS_TMP_FOLDER}/${CXXBASICS_PROJECT_PREFIX}_${random_generated_string}" mktemp_result)
  while(EXISTS "${mktemp_result}")
    string(RANDOM LENGTH 16 random_generated_string)
    file(TO_NATIVE_PATH "${CXXBASICS_TMP_FOLDER}/${CXXBASICS_PROJECT_PREFIX}_${random_generated_string}" mktemp_result)
  endwhile(EXISTS "${mktemp_result}")

  # Here the behavior between `file` and `directory` splits, so we handle them separately
  if("${ARGV0}" STREQUAL "file")
    set(mktemp_result "${mktemp_result}" PARENT_SCOPE)
    file(WRITE "${mktemp_result}" "")

    # file(WRITE) should throw an error but we'll check anyway
    if(NOT EXISTS "${mktemp_result}" OR IS_DIRECTORY "${mktemp_result}")
      cbnok("Failed to create the temporary file")
      unset(mktemp_result PARENT_SCOPE)
    endif()
  else()
    set(mktemp_directory_result "${mktemp_result}")
    set(mktemp_directory_result "${mktemp_directory_result}" PARENT_SCOPE)
    file(MAKE_DIRECTORY "${mktemp_directory_result}")

    # file(MAKE_DIRECTORY) should throw an error but we'll check anyway
    if(NOT IS_DIRECTORY "${mktemp_directory_result}")
      cbnok("Failed to create the temporary folder")
      unset(mktemp_directory_result PARENT_SCOPE)
    endif()
  endif()
endmacro()

# @function mktemp
# @return mktemp_result - stores the path to the temporary file
function(mktemp)
  __cxxbasics_mktemp_helper("file")
endfunction()

# @function mktemp_directory
# @return mktemp_directory_result - stores the path to the temporary folder
function(mktemp_directory)
  __cxxbasics_mktemp_helper("directory")
endfunction()


================================================
FILE: cmake/cxxbasics/helpers/MacroCustomMessages.cmake
================================================
## This module contains project-wide custom CMake messagging macros.
## Does not adhere to the overall style because MacroCbmessage does not sound very well nor represent all macros...

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

# This does not work in Windows CMD(usually also CI)
if(CYGWIN OR NOT CMAKE_HOST_WIN32)
  string(ASCII 27 __cxxbasics_escape)
  set(__cxxbasics_prefix_color  "${__cxxbasics_escape}[36m") # Cyan
  set(__cxxbasics_success_color "${__cxxbasics_escape}[32m") # Green
  set(__cxxbasics_failure_color "${__cxxbasics_escape}[31m") # Red
  set(__cxxbasics_no_color      "${__cxxbasics_escape}[m")   # Reset color

  unset(__cxxbasics_escape)
endif()

set(__cxxbasics_prefix  "[${__cxxbasics_prefix_color}cxxbasics${__cxxbasics_no_color}]")
set(__cxxbasics_success "[${__cxxbasics_success_color}✓${__cxxbasics_no_color}]")
set(__cxxbasics_failure "[${__cxxbasics_failure_color}✗${__cxxbasics_no_color}]")

unset(__cxxbasics_prefix_color)
unset(__cxxbasics_success_color)
unset(__cxxbasics_failure_color)
unset(__cxxbasics_no_color)

#========================================================

# Use `_cbp` when displaying a simple message.
# `cbp` stands for [C]XX[B]asics [P]refix
set(_cbp   "${__cxxbasics_prefix}")

# Use `_cbok` when displaying a notification of success(ex: `cxxbasics` succeded to set up ccache)
# `cbok` stands for [C]XX[B]asics [OK]
set(_cbok  "${_cbp}${__cxxbasics_success}")

# Use `_cbnok` when displaying a notification of failure(ex: the user activated `ccache` but it was not found in the system)
# `cbnok` stands for [C]XX[B]asics [N]ot [OK]
set(_cbnok "${_cbp}${__cxxbasics_failure}")

macro(cbmessage)
  message(STATUS "${_cbp} " ${ARGV})
endmacro(cbmessage)

macro(cbok)
  message(STATUS "${_cbok} " ${ARGV})
endmacro(cbok)

macro(cbnok)
  message(STATUS "${_cbnok} " ${ARGV})
endmacro(cbnok)

macro(cberror)
  message(FATAL_ERROR "${_cbnok} " ${ARGV})
endmacro(cberror)

#========================================================

unset(__cxxbasics_prefix)
unset(__cxxbasics_success)
unset(__cxxbasics_failure)


================================================
FILE: cmake/cxxbasics/helpers/MacroOpt.cmake
================================================
## This module defines helper macros to set options(cached variables)

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

# @macro opt
# Macro helper to set a cache value.
# Does not overwrite the value if it was already cached.
#
# `description` - the description that will be displayed in CMake cache editor
# `var_type`    - the type of the variable(BOOL, FILEPATH, PATH, STRING, INTERNAL)
# `var_value`   - the value `var_name` will be set to
# `var_name`    - variable name
macro(opt  description  var_type  var_value  var_name)
  set(${var_name}  ${var_value} CACHE ${var_type}  "${description}")

  # Stores internally information about this variable's description and type
  # Will be reused in `opt_overwrite` to make the macro easy to use
  set(${var_name}_DESCRIPTION "${description}" CACHE INTERNAL "")
  set(${var_name}_TYPE        "${var_type}"    CACHE INTERNAL "")
endmacro()

# @macro opt_ifndef
# Macro helper to set a cache value.
# Sets the cache value only if the variable(including local variables) was not defined or it is set to an empty string.
macro(opt_ifndef  description  var_type  var_value  var_name)
  if(NOT DEFINED ${var_name} OR "${${var_name}}" STREQUAL "")
    set(${var_name}  ${var_value} CACHE ${var_type}  "${description}"  FORCE)

    set(${var_name}_DESCRIPTION "${description}" CACHE INTERNAL "")
    set(${var_name}_TYPE        "${var_type}"    CACHE INTERNAL "")
  endif()
endmacro()

# @macro opt_force
# Macro helper to set a cache value.
# Sets the cache value or overwrites the value if the variable already exists.
macro(opt_force  description  var_type  var_value  var_name)
  set(${var_name}  ${var_value} CACHE ${var_type}  "${description}"  FORCE)

  set(${var_name}_DESCRIPTION "${description}" CACHE INTERNAL "")
  set(${var_name}_TYPE        "${var_type}"    CACHE INTERNAL "")
endmacro()

# @macro opt_overwrite
# Macro helper to set a cache value.
# Overwrites the cache value only if the variable already exists in the cache(not local variables).
# The variable in the cache has to be registered with one of the `opt` macros
macro(opt_overwrite  var_name  var_value)
  # we do not check `if(NOT DEFINED ${var_name})` because local variables don't limit us from updating the
  # correct variable in the cache. We rely on _DESCRIPTION and _TYPE to find if the variable was
  # previously registered with `opt`
  if(NOT DEFINED ${var_name}_DESCRIPTION OR NOT DEFINED ${var_name}_TYPE)
    cberror("user-code logic error: `${var_name}` was not registered with an `opt` macro beforehand")
  endif()

  set(${var_name}  ${var_value} CACHE ${${var_name}_TYPE}  "${${var_name}_DESCRIPTION}"  FORCE)
endmacro()


================================================
FILE: debian/changelog
================================================
stacer (1.1.0-1) stable; urgency=medium

  * Snap package uninstaller.
  * Advanced file search.
  * Disk chart.
  * Host manager.

 -- Oguzhan Inan <oguzhan3488@gmail.com>  Sun, 13 May 2018 00:50:10 +0300


================================================
FILE: debian/compat
================================================
9


================================================
FILE: debian/control
================================================
Source: stacer
Section: utils
Priority: optional
Maintainer: Oguzhan INAN <oguzhan3488@gmail.com>
Build-Depends: debhelper (>=9)
Standards-Version: 3.9.6
Homepage: https://github.com/oguzhaninan/Stacer
Vcs-Browser: https://github.com/oguzhaninan/Stacer.git

Package: stacer
Architecture: all
Depends: ${misc:Depends}
Recommends: systemd, curl
Description: Linux System Optimizer and Monitoring


================================================
FILE: debian/copyright
================================================
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: stacer
Source: https://github.com/oguzhaninan/Stacer/

Files: *
Copyright: 2017-2019 Oguzhan INAN <oguzhan3488@gmail.com>
License: GPL-3.0

Files: debian/*
Copyright: 2017-2019 Oguzhan INAN <oguzhan3488@gmail.com>
License: GPL-3.0

GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    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 <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: debian/install
================================================
stacer/* usr/share/stacer/
applications/* usr/share/applications/
icons/* usr/share/icons/


================================================
FILE: debian/postinst
================================================
#!/bin/sh

ln -sf "/usr/share/stacer/stacer" "/usr/bin/stacer"

exit 0

================================================
FILE: debian/postrm
================================================
#!/bin/sh

unlink /usr/bin/stacer
rm -rf /usr/share/stacer

exit 0 


================================================
FILE: debian/rules
================================================
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@  --parallel


================================================
FILE: debian/source/format
================================================
3.0 (quilt)


================================================
FILE: release.sh
================================================
#!/bin/bash
VERSION=1.1.0
RELEASE=Release
DIR=stacer-$VERSION

mkdir $RELEASE
mkdir build ; cd build
cmake -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_COMPILER=g++ -DCMAKE_PREFIX_PATH=$QTDIR/bin ..
make -j `nproc`
cd ..

mkdir $RELEASE/$DIR/stacer -p
cp -r icons applications debian $RELEASE/$DIR
cp -r build/output/* $RELEASE/$DIR/stacer

# translations
lupdate stacer/stacer.pro -no-obsolete
lrelease stacer/stacer.pro
mkdir $RELEASE/$DIR/stacer/translations
mv translations/*.qm $RELEASE/$DIR/stacer/translations

# linuxdeployqt
wget -cO lqt "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod +x lqt
unset QTDIR; unset QT_PLUGIN_PATH; unset LD_LIBRARY_PATH
./lqt $RELEASE/$DIR/stacer/stacer -bundle-non-qt-libs -no-translations -unsupported-allow-new-glibc
rm lqt 

if [ $1 = "deb" ]; then
cd $RELEASE/$DIR
dh_make --createorig -i -c mit
debuild --no-lintian -us -uc
fi


================================================
FILE: stacer/CMakeLists.txt
================================================

cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(stacer)

set(MANAGERS_DIR  "${CMAKE_CURRENT_SOURCE_DIR}/Managers")
set(PAGES_DIR     "${CMAKE_CURRENT_SOURCE_DIR}/Pages")

include_directories(
  "${PROJECT_ROOT}/stacer-core"
  "${CMAKE_CURRENT_SOURCE_DIR}"
  "${MANAGERS_DIR}"
  "${PAGES_DIR}/Dashboard"
  "${PAGES_DIR}/Processes"
  "${PAGES_DIR}/Resources"
  "${PAGES_DIR}/Services"
  "${PAGES_DIR}/Settings"
  "${PAGES_DIR}/StartupApps"
  "${PAGES_DIR}/SystemCleaner"
  "${PAGES_DIR}/Uninstaller"
  "${CMAKE_CURRENT_BINARY_DIR}" # Necessary for CMake 3.7 and older
)

# Sources
file(GLOB_RECURSE ${PROJECT_NAME}_srcs         "${CMAKE_CURRENT_SOURCE_DIR}/**.cpp")
file(GLOB_RECURSE ${PROJECT_NAME}_translations "${PROJECT_ROOT}/translations/**.ts")

# Translations
find_package(Qt5LinguistTools)
qt5_create_translation(QM_FILES  ${PROJECT_NAME}_translations  ${${PROJECT_NAME}_srcs})
set_directory_properties(PROPERTIES  ADDITIONAL_MAKE_CLEAN_FILES  "${QM_FILES}")

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

add_executable(${PROJECT_NAME}
  ${${PROJECT_NAME}_srcs}
  "${CMAKE_CURRENT_SOURCE_DIR}/static.qrc"
  ${QM_FILES}
)

target_link_libraries(${PROJECT_NAME}
  stacer-core  Qt5::Core  Qt5::Gui  Qt5::Widgets  Qt5::Charts  Qt5::Svg  Qt5::Concurrent
)

# Running LTO in Release builds, if the C++ compiler is GNU GCC
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release"  AND  "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  target_compile_options(${PROJECT_NAME}  PRIVATE  "-flto")
  list(APPEND CMAKE_EXE_LINKER_FLAGS "-flto")
endif()

install(
  TARGETS  ${PROJECT_NAME}
  CONFIGURATIONS Release RelWithDebInfo MinSizeRel # Not allowing to install an unoptimized build
  RUNTIME  DESTINATION  bin
)

install(
  FILES           "${PROJECT_ROOT}/applications/stacer.desktop"
  DESTINATION     share/applications
  CONFIGURATIONS  Release RelWithDebInfo MinSizeRel
)

install(
  FILES           "${PROJECT_ROOT}/stacer/static/logo.png"
  DESTINATION     share/icons
  CONFIGURATIONS  Release RelWithDebInfo MinSizeRel
  RENAME          stacer.png
)


================================================
FILE: stacer/Managers/app_manager.cpp
================================================
#include "app_manager.h"
#include <QDebug>

AppManager *AppManager::instance = nullptr;

AppManager *AppManager::ins()
{
    if (! instance) {
        instance = new AppManager;
    }

    return instance;
}

AppManager::AppManager()
{
    mSettingManager = SettingManager::ins();

    mTrayIcon = new QSystemTrayIcon(QIcon(":/static/themes/default/img/sidebar-icons/dash.png"));

    loadLanguageList();

//    loadThemeList();

    if (mTranslator.load(QString("stacer_%1").arg(mSettingManager->getLanguage()), qApp->applicationDirPath() + "/translations")) {
        qApp->installTranslator(&mTranslator);
        (mSettingManager->getLanguage() == "ar") ? qApp->setLayoutDirection(Qt::RightToLeft) : qApp->setLayoutDirection(Qt::LeftToRight);
    }
}

QSystemTrayIcon *AppManager::getTrayIcon()
{
    return mTrayIcon;
}

QSettings *AppManager::getStyleValues() const
{
    return mStyleValues;
}

void AppManager::loadLanguageList()
{
    QByteArray lanuagesJson = FileUtil::readStringFromFile(":/static/languages.json").toUtf8();
    QJsonArray lanuages = QJsonDocument::fromJson(lanuagesJson).array();

    for (int i = 0; i < lanuages.count(); ++i) {

        QJsonObject ob = lanuages.at(i).toObject();

        mLanguageList.insert(ob["value"].toString(), ob["text"].toString());
    }
}

QMap<QString, QString> AppManager::getLanguageList() const
{
    return mLanguageList;
}

//void AppManager::loadThemeList()
//{
//    QByteArray themesJson = FileUtil::readStringFromFile(":/static/themes.json").toUtf8();
//    QJsonArray themes = QJsonDocument::fromJson(themesJson).array();

//    for (int i = 0; i < themes.count(); ++i) {

//        QJsonObject ob = themes.at(i).toObject();

//        mThemeList.insert(ob["value"].toString(), ob["text"].toString());
//    }
//}

//QMap<QString, QString> AppManager::getThemeList() const
//{
//    return mThemeList;
//}

void AppManager::updateStylesheet()
{
    QString appThemePath = QString(":/static/themes/%1/style").arg(mSettingManager->getThemeName());
    mStyleValues = new QSettings(QString("%1/values.ini").arg(appThemePath), QSettings::IniFormat);

    mStylesheetFileContent = FileUtil::readStringFromFile(QString("%1/style.qss").arg(appThemePath));

    // set values example: @color01 => #fff
    for (const QString &key : mStyleValues->allKeys()) {
        mStylesheetFileContent.replace(key, mStyleValues->value(key).toString());
    }

    qApp->setStyleSheet(mStylesheetFileContent);

    emit SignalMapper::ins()->sigChangedAppTheme();
}

QString AppManager::getStylesheetFileContent() const
{
    return mStylesheetFileContent;
}


================================================
FILE: stacer/Managers/app_manager.h
================================================
#ifndef APP_MANAGER_H
#define APP_MANAGER_H

#include <QApplication>
#include <QMap>
#include <QSettings>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QTranslator>
#include <QSystemTrayIcon>

#include "Utils/file_util.h"
#include "Managers/setting_manager.h"
#include "signal_mapper.h"

class AppManager
{

public:
    static AppManager *ins();

    QMap<QString, QString> getLanguageList() const;
    void loadLanguageList();

//    QMap<QString, QString> getThemeList() const;
//    void loadThemeList();

    void updateStylesheet();
    QString getStylesheetFileContent() const;

    QSettings *getStyleValues() const;

    QSystemTrayIcon *getTrayIcon();

private:
    static AppManager *instance;
    AppManager();

private:
    QTranslator mTranslator;
    QSystemTrayIcon *mTrayIcon;

    QSettings *mStyleValues;

    QMap<QString, QString> mLanguageList;
//    QMap<QString, QString> mThemeList;
    QString mStylesheetFileContent;

    SettingManager *mSettingManager;
};

#endif // APP_MANAGER_H


================================================
FILE: stacer/Managers/info_manager.cpp
================================================
#include "info_manager.h"

InfoManager *InfoManager::instance = nullptr;

InfoManager *InfoManager::ins()
{
    if(! instance){
        instance = new InfoManager;
    }

    return instance;
}

QString InfoManager::getUserName() const
{
    return si.getUsername();
}

QStringList InfoManager::getUserList() const
{
    return si.getUserList();
}

QStringList InfoManager::getGroupList() const
{
    return si.getGroupList();
}

/*
 * CPU Provider
 */
int InfoManager::getCpuCoreCount() const
{
    return ci.getCpuCoreCount();
}

QList<int> InfoManager::getCpuPercents() const
{
    return ci.getCpuPercents();
}

QList<double> InfoManager::getCpuLoadAvgs() const
{
    return ci.getLoadAvgs();
}

double InfoManager::getCpuClock() const
{
    return ci.getAvgClock();
}

/*
 * Memory Provider
 */
void InfoManager::updateMemoryInfo()
{
    mi.updateMemoryInfo();
}

quint64 InfoManager::getSwapUsed() const
{
    return mi.getSwapUsed();
}

quint64 InfoManager::getSwapTotal() const
{
    return mi.getSwapTotal();
}

quint64 InfoManager::getMemUsed() const
{
    return mi.getMemUsed();
}

quint64 InfoManager::getMemTotal() const
{
    return mi.getMemTotal();
}

/*
 * Disk Provider
 */
QList<Disk*> InfoManager::getDisks() const
{
    return di.getDisks();
}

void InfoManager::updateDiskInfo()
{
    di.updateDiskInfo();
}

QList<quint64> InfoManager::getDiskIO()
{
    return di.getDiskIO();
}

QList<QString> InfoManager::getFileSystemTypes()
{
    return di.fileSystemTypes();
}

QList<QString> InfoManager::getDevices()
{
    return di.devices();
}

/********************
 * Network Provider
 *******************/
quint64 InfoManager::getRXbytes() const
{
    return ni.getRXbytes();
}

quint64 InfoManager::getTXbytes() const
{
    return ni.getTXbytes();
}

/********************
 * System Provider
 *******************/
QFileInfoList InfoManager::getCrashReports() const
{
    return si.getCrashReports();
}

QFileInfoList InfoManager::getAppLogs() const
{
    return si.getAppLogs();
}

QFileInfoList InfoManager::getAppCaches() const
{
    return si.getAppCaches();
}

/********************
 * Process Provider
 *******************/
void InfoManager::updateProcesses()
{
    pi.updateProcesses();
}

QList<Process> InfoManager::getProcesses() const
{
    return pi.getProcessList();
}




================================================
FILE: stacer/Managers/info_manager.h
================================================
#ifndef INFO_MANAGER_H
#define INFO_MANAGER_H

#include <QObject>

#include <Info/cpu_info.h>
#include <Info/disk_info.h>
#include <Info/memory_info.h>
#include <Info/network_info.h>
#include <Info/system_info.h>
#include <Info/process_info.h>

class InfoManager
{
public:
    static InfoManager *ins();

    int getCpuCoreCount() const;
    QList<int> getCpuPercents() const;
    QList<double> getCpuLoadAvgs() const;
    double getCpuClock() const;

    quint64 getSwapUsed() const;
    quint64 getSwapTotal() const;
    quint64 getMemUsed() const;
    quint64 getMemTotal() const;
    void updateMemoryInfo();

    quint64 getRXbytes() const;
    quint64 getTXbytes() const;

    QList<Disk *> getDisks() const;
    QList<quint64> getDiskIO();
    void updateDiskInfo();

    QFileInfoList getCrashReports() const;
    QFileInfoList getAppLogs() const;
    QFileInfoList getAppCaches() const;

    void updateProcesses();
    QList<Process> getProcesses() const;
    QString getUserName() const;
    QStringList getUserList() const;
    QStringList getGroupList() const;

    QList<QString> getDevices();
    QList<QString> getFileSystemTypes();
private:
    static InfoManager *instance;

private:
    CpuInfo ci;
    DiskInfo di;
    MemoryInfo mi;
    NetworkInfo ni;
    SystemInfo si;
    ProcessInfo pi;
};

#endif // INFO_MANAGER_H


================================================
FILE: stacer/Managers/setting_manager.cpp
================================================
#include "setting_manager.h"

SettingManager::SettingManager()
{
    mConfigPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
    mSettings = new QSettings(QString("%1/settings.ini").arg(mConfigPath), QSettings::IniFormat);
}

SettingManager *SettingManager::instance = nullptr;

SettingManager* SettingManager::ins()
{
    if (! instance) {
        instance = new SettingManager;
    }
    return instance;
}

QString SettingManager::getConfigPath() const
{
    return mConfigPath;
}

void SettingManager::setLanguage(const QString &value)
{
    mSettings->setValue(SettingKeys::Language, value);
}

QString SettingManager::getLanguage() const
{
    return mSettings->value(SettingKeys::Language, "en").toString();
}

void SettingManager::setThemeName(const QString &value)
{
    mSettings->setValue(SettingKeys::ThemeName, value);
}

QString SettingManager::getThemeName() const
{
    return "default"; //mSettings->value(SettingKeys::ThemeName, "default").toString();
}

void SettingManager::setDiskName(const QString &value)
{
    mSettings->setValue(SettingKeys::DiskName, value);
}

QString SettingManager::getDiskName() const
{
    return mSettings->value(SettingKeys::DiskName, "").toString();
}

void SettingManager::setStartPage(const QString &value)
{
    mSettings->setValue(SettingKeys::StartPage, value);
}

QString SettingManager::getStartPage() const
{
    return mSettings->value(SettingKeys::StartPage, QObject::tr("Dashboard")).toString();
}

void SettingManager::setCpuAlertPercent(const int value)
{
    mSettings->setValue(SettingKeys::CPUAlertPercent, value);
}

int SettingManager::getCpuAlertPercent() const
{
    return mSettings->value(SettingKeys::CPUAlertPercent, 0).toInt();
}

void SettingManager::setMemoryAlertPercent(const int value)
{
    mSettings->setValue(SettingKeys::MemoryAlertPercent, value);
}

int SettingManager::getMemoryAlertPercent() const
{
    return mSettings->value(SettingKeys::MemoryAlertPercent, 0).toInt();
}

void SettingManager::setDiskAlertPercent(const int value)
{
    mSettings->setValue(SettingKeys::DiskAlertPercent, value);
}

int SettingManager::getDiskAlertPercent() const
{
    return mSettings->value(SettingKeys::DiskAlertPercent, 0).toInt();
}

void SettingManager::setAppQuitDialogDontAsk(const bool value)
{
    mSettings->setValue(SettingKeys::AppQuitDialogDontAsk, value);
}

bool SettingManager::getAppQuitDialogDontAsk() const
{
    return mSettings->value(SettingKeys::AppQuitDialogDontAsk, false).toBool();
}

void SettingManager::setAppQuitDialogChoice(const QString &value)
{
    mSettings->setValue(SettingKeys::AppQuitDialogChoice, value);
}

QString SettingManager::getAppQuitDialogChoice() const
{
    return mSettings->value(SettingKeys::AppQuitDialogChoice, "close").toString();
}


================================================
FILE: stacer/Managers/setting_manager.h
================================================
#ifndef SETTING_MANAGER_H
#define SETTING_MANAGER_H

#include <QSettings>
#include <QStandardPaths>

namespace SettingKeys {
    const QString ThemeName("ThemeName");
    const QString Language("Language");
    const QString DiskName("DiskName");
    const QString StartPage("StartPage");
    const QString CPUAlertPercent("CPUAlertPercent");
    const QString MemoryAlertPercent("MemoryAlertPercent");
    const QString DiskAlertPercent("DiskAlertPercent");
    const QString AppQuitDialogDontAsk("AppQuitDialogDontAsk");
    const QString AppQuitDialogChoice("AppQuitDialogChoice");
}

class SettingManager
{
public:
    static SettingManager *ins();

    QString getConfigPath() const;

    void setLanguage(const QString &value);
    QString getLanguage() const;

    void setThemeName(const QString &value);
    QString getThemeName() const;

    void setDiskName(const QString &value);
    QString getDiskName() const;

    void setStartPage(const QString &value);
    QString getStartPage() const;

    void setCpuAlertPercent(const int value);
    int getCpuAlertPercent() const;

    void setMemoryAlertPercent(const int value);
    int getMemoryAlertPercent() const;

    void setDiskAlertPercent(const int value);
    int getDiskAlertPercent() const;

    void setAppQuitDialogDontAsk(const bool value);
    bool getAppQuitDialogDontAsk() const;

    void setAppQuitDialogChoice(const QString &value);
    QString getAppQuitDialogChoice() const;

private:
    static SettingManager *instance;
    SettingManager();

    QSettings *mSettings;
    QString mConfigPath;
};

#endif // SETTING_MANAGER_H


================================================
FILE: stacer/Managers/tool_manager.cpp
================================================
#include "tool_manager.h"

ToolManager *ToolManager::instance = NULL;

ToolManager *ToolManager::ins()
{
    if(! instance) {
        instance = new ToolManager;
    }

    return instance;
}

/*
 * Services
 */
QList<Service> ToolManager::getServices() const
{
    return ServiceTool::getServicesWithSystemctl();
}

bool ToolManager::changeServiceStatus(const QString &sname, bool status) const
{
    return ServiceTool::changeServiceStatus(sname, status);
}

bool ToolManager::changeServiceActive(const QString &sname, bool status) const
{
    return ServiceTool::changeServiceActive(sname, status);
}

bool ToolManager::serviceIsActive(const QString &sname) const
{
    return ServiceTool::serviceIsActive(sname);
}

bool ToolManager::serviceIsEnabled(const QString &sname) const
{
    return ServiceTool::serviceIsEnabled(sname);
}

/*
 * Packages
 */
QStringList ToolManager::getPackages() const
{
    switch (PackageTool::currentPackageTool) {
    case PackageTool::PackageTools::APT:
        return PackageTool::getDpkgPackages();
        break;
    case PackageTool::PackageTools::YUM:
    case PackageTool::PackageTools::DNF:
        return PackageTool::getRpmPackages();
        break;
    case PackageTool::PackageTools::PACMAN:
        return PackageTool::getPacmanPackages();
        break;
    default:
        return QStringList();
        break;
    }
}

QStringList ToolManager::getSnapPackages() const
{
    return PackageTool::getSnapPackages();
}

bool ToolManager::uninstallSnapPackages(const QStringList packages)
{
    return PackageTool::snapRemovePackages(packages);
}

QFileInfoList ToolManager::getPackageCaches() const
{
    switch (PackageTool::currentPackageTool) {
    case PackageTool::PackageTools::APT:
        return PackageTool::getDpkgPackageCaches();
        break;
    case PackageTool::PackageTools::YUM:
    case PackageTool::PackageTools::DNF:
        return PackageTool::getPacmanPackageCaches();
        break;
    case PackageTool::PackageTools::PACMAN:
        return PackageTool::getPacmanPackageCaches();
        break;
    default:
        return QFileInfoList();
        break;
    }
}

void ToolManager::uninstallPackages(const QStringList &packages)
{
    switch (PackageTool::currentPackageTool) {
    case PackageTool::PackageTools::APT:
        PackageTool::dpkgRemovePackages(packages);
        break;
    case PackageTool::PackageTools::YUM:
        PackageTool::yumRemovePackages(packages);
        break;
    case PackageTool::PackageTools::DNF:
        PackageTool::dnfRemovePackages(packages);
        break;
    case PackageTool::PackageTools::PACMAN:
        PackageTool::pacmanRemovePackages(packages);
        break;
    default:
        break;
    }
}

/*
 * APT Source
 */
bool ToolManager::checkSourceRepository() const
{
    return AptSourceTool::checkSourceRepository();
}

QList<APTSourcePtr> ToolManager::getSourceList() const
{
    return AptSourceTool::getSourceList();
}

void ToolManager::removeAPTSource(const APTSourcePtr source)
{
    AptSourceTool::removeAPTSource(source);
}

void ToolManager::changeAPTStatus(const APTSourcePtr aptSource, const bool status)
{
    AptSourceTool::changeStatus(aptSource, status);
}

void ToolManager::changeAPTSource(const APTSourcePtr aptSource, const QString newSource)
{
    AptSourceTool::changeSource(aptSource, newSource);
}

void ToolManager::addAPTRepository(const QString &repository, const bool isSource)
{
    AptSourceTool::addRepository(repository, isSource);
}



================================================
FILE: stacer/Managers/tool_manager.h
================================================
#ifndef TOOL_MANAGER_H
#define TOOL_MANAGER_H

#include <Tools/service_tool.h>
#include <Tools/package_tool.h>
#include <Tools/apt_source_tool.h>

class ToolManager
{
public:
    static ToolManager *ins();

    QList<Service> getServices() const;
    QStringList getPackages() const;
    QStringList getSnapPackages() const;
    QFileInfoList getPackageCaches() const;

    bool changeServiceStatus(const QString &sname, bool status) const;
    bool changeServiceActive(const QString &sname, bool status) const;
    bool serviceIsActive(const QString &sname) const;
    bool serviceIsEnabled(const QString &sname) const;

    void uninstallPackages(const QStringList &packages);    
    bool uninstallSnapPackages(const QStringList packages);

    bool checkSourceRepository() const;
    QList<APTSourcePtr> getSourceList() const;
    void removeAPTSource(const APTSourcePtr source);
    void changeAPTStatus(const APTSourcePtr aptSource, const bool status);
    void changeAPTSource(const APTSourcePtr aptSource, const QString newSource);
    void addAPTRepository(const QString &repository, const bool isSource);

private:
    static ToolManager *instance;
};

#endif // TOOL_MANAGER_H


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_edit.cpp
================================================
#include "apt_source_edit.h"
#include "ui_apt_source_edit.h"

#include <QDebug>

APTSourceEdit::~APTSourceEdit()
{
    delete ui;
}

APTSourcePtr APTSourceEdit::selectedAptSource = nullptr;

APTSourceEdit::APTSourceEdit(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::APTSourceEdit)
{
    ui->setupUi(this);

    init();
}

void APTSourceEdit::init()
{
    ui->lblErrorMsg->hide();
}

void APTSourceEdit::show()
{
    clearElements();

    // example 'deb [arch=amd64 lang=en] http://packages.microsoft.com/repos/vscode stable main'

    // set values to elements
    ui->radioBinary->setChecked(! selectedAptSource->isSource);
    ui->radioSource->setChecked(selectedAptSource->isSource);
    ui->txtOptions->setText(selectedAptSource->options);
    ui->txtUri->setText(selectedAptSource->uri);
    ui->txtDistribution->setText(selectedAptSource->distribution);
    ui->txtComponents->setText(selectedAptSource->components);

    QDialog::show();
}

void APTSourceEdit::clearElements()
{
    ui->lblErrorMsg->hide();
    ui->txtOptions->clear();
    ui->txtUri->clear();
    ui->txtDistribution->clear();
    ui->txtComponents->clear();
}

void APTSourceEdit::on_btnSave_clicked()
{
    if (! ui->txtUri->text().isEmpty() &&
        ! ui->txtDistribution->text().isEmpty())
    {
        QString sourceType = ui->radioBinary->isChecked() ? "deb" : "deb-src";
        QString updatedAptSource = QString("%1 %2 %3 %4 %5")
                .arg(sourceType)
                .arg(ui->txtOptions->text())
                .arg(ui->txtUri->text())
                .arg(ui->txtDistribution->text())
                .arg(ui->txtComponents->text());

        ToolManager::ins()->changeAPTSource(selectedAptSource, updatedAptSource);

        emit saved();

        close();
    } else {
        ui->lblErrorMsg->show();
    }
}

void APTSourceEdit::on_btnCancel_clicked()
{
    close();
}


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_edit.h
================================================
#ifndef APT_SOURCE_EDIT_H
#define APT_SOURCE_EDIT_H

#include <QDialog>
#include "Managers/tool_manager.h"

namespace Ui {
class APTSourceEdit;
}

class APTSourceEdit : public QDialog
{
    Q_OBJECT

public:
    explicit APTSourceEdit(QWidget *parent = 0);
    ~APTSourceEdit();

public:
    static APTSourcePtr selectedAptSource;
    void show();

signals:
    void saved();

private slots:
    void clearElements();
    void on_btnSave_clicked();
    void on_btnCancel_clicked();

private:
    void init();

private:
    Ui::APTSourceEdit *ui;
};

#endif // APT_SOURCE_EDIT_H


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_edit.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>APTSourceEdit</class>
 <widget class="QDialog" name="APTSourceEdit">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>452</width>
    <height>295</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>APT Repository Edit</string>
  </property>
  <layout class="QGridLayout" name="gridLayout">
   <property name="leftMargin">
    <number>30</number>
   </property>
   <property name="topMargin">
    <number>10</number>
   </property>
   <property name="rightMargin">
    <number>30</number>
   </property>
   <property name="bottomMargin">
    <number>15</number>
   </property>
   <property name="spacing">
    <number>15</number>
   </property>
   <item row="0" column="0" colspan="4">
    <widget class="QLabel" name="lblTitle">
     <property name="accessibleName">
      <string notr="true">dialog-title</string>
     </property>
     <property name="text">
      <string>APT Repository</string>
     </property>
     <property name="alignment">
      <set>Qt::AlignCenter</set>
     </property>
    </widget>
   </item>
   <item row="6" column="0" colspan="4">
    <widget class="QLineEdit" name="txtComponents">
     <property name="placeholderText">
      <string>Components</string>
     </property>
    </widget>
   </item>
   <item row="3" column="0" colspan="4">
    <widget class="QLineEdit" name="txtOptions">
     <property name="placeholderText">
      <string>Options</string>
     </property>
    </widget>
   </item>
   <item row="7" column="2" alignment="Qt::AlignRight">
    <widget class="QPushButton" name="btnCancel">
     <property name="cursor">
      <cursorShape>PointingHandCursor</cursorShape>
     </property>
     <property name="focusPolicy">
      <enum>Qt::NoFocus</enum>
     </property>
     <property name="accessibleName">
      <string notr="true">danger</string>
     </property>
     <property name="text">
      <string>Cancel</string>
     </property>
     <property name="default">
      <bool>false</bool>
     </property>
    </widget>
   </item>
   <item row="7" column="0">
    <widget class="QLabel" name="lblErrorMsg">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="text">
      <string>Fields cannot be left blank. </string>
     </property>
    </widget>
   </item>
   <item row="4" column="0" colspan="4">
    <widget class="QLineEdit" name="txtUri">
     <property name="placeholderText">
      <string>URI</string>
     </property>
    </widget>
   </item>
   <item row="7" column="3" alignment="Qt::AlignRight">
    <widget class="QPushButton" name="btnSave">
     <property name="cursor">
      <cursorShape>PointingHandCursor</cursorShape>
     </property>
     <property name="focusPolicy">
      <enum>Qt::NoFocus</enum>
     </property>
     <property name="accessibleName">
      <string notr="true">primary</string>
     </property>
     <property name="text">
      <string>Save</string>
     </property>
     <property name="default">
      <bool>false</bool>
     </property>
    </widget>
   </item>
   <item row="8" column="0" colspan="4">
    <spacer name="verticalSpacer">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>347</width>
       <height>4</height>
      </size>
     </property>
    </spacer>
   </item>
   <item row="5" column="0" colspan="4">
    <widget class="QLineEdit" name="txtDistribution">
     <property name="placeholderText">
      <string>Distribution</string>
     </property>
    </widget>
   </item>
   <item row="1" column="0" colspan="2">
    <widget class="QRadioButton" name="radioSource">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="cursor">
      <cursorShape>PointingHandCursor</cursorShape>
     </property>
     <property name="focusPolicy">
      <enum>Qt::NoFocus</enum>
     </property>
     <property name="text">
      <string>Source</string>
     </property>
     <property name="checked">
      <bool>true</bool>
     </property>
     <attribute name="buttonGroup">
      <string notr="true">debTypeGroup</string>
     </attribute>
    </widget>
   </item>
   <item row="1" column="2" colspan="2">
    <widget class="QRadioButton" name="radioBinary">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="cursor">
      <cursorShape>PointingHandCursor</cursorShape>
     </property>
     <property name="focusPolicy">
      <enum>Qt::NoFocus</enum>
     </property>
     <property name="text">
      <string>Binary</string>
     </property>
     <attribute name="buttonGroup">
      <string notr="true">debTypeGroup</string>
     </attribute>
    </widget>
   </item>
   <item row="7" column="1">
    <spacer name="horizontalSpacer">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>40</width>
       <height>20</height>
      </size>
     </property>
    </spacer>
   </item>
  </layout>
 </widget>
 <tabstops>
  <tabstop>txtOptions</tabstop>
  <tabstop>txtUri</tabstop>
  <tabstop>txtDistribution</tabstop>
  <tabstop>txtComponents</tabstop>
 </tabstops>
 <resources/>
 <connections/>
 <buttongroups>
  <buttongroup name="debTypeGroup"/>
 </buttongroups>
</ui>


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_manager_page.cpp
================================================
#include "apt_source_manager_page.h"
#include "ui_apt_source_manager_page.h"
#include <QDebug>
#include "utilities.h"
#include "Managers/tool_manager.h"

APTSourceManagerPage::~APTSourceManagerPage()
{
    delete ui;
}

APTSourcePtr APTSourceManagerPage::selectedAptSource = nullptr;

APTSourceManagerPage::APTSourceManagerPage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::APTSourceManagerPage)
{
    ui->setupUi(this);

    init();
}

void APTSourceManagerPage::init()
{
    ui->txtAptSource->setPlaceholderText(tr("example %1")
                                         .arg("'deb http://archive.ubuntu.com/ubuntu xenial main'"));

    loadAptSources();

    on_btnCancel_clicked();

    QList<QWidget*> widgets = {
        ui->btnAddAPTSourceRepository, ui->btnCancel, ui->btnDeleteAptSource, ui->btnEditAptSource,
        ui->txtSearchAptSource, ui->txtSearchAptSource
    };
    Utilities::addDropShadow(widgets, 40);
}

void APTSourceManagerPage::loadAptSources()
{
    ui->listWidgetAptSources->clear();

    QList<APTSourcePtr> aptSourceList = ToolManager::ins()->getSourceList();

    for (APTSourcePtr &aptSource: aptSourceList) {

        QListWidgetItem *listItem = new QListWidgetItem(ui->listWidgetAptSources);
        listItem->setData(5, aptSource->source); // for search

        APTSourceRepositoryItem *aptSourceItem = new APTSourceRepositoryItem(aptSource, ui->listWidgetAptSources);

        listItem->setSizeHint(aptSourceItem->sizeHint() + QSize(0, 1));

        ui->listWidgetAptSources->setItemWidget(listItem, aptSourceItem);
    }

    ui->notFoundWidget->setVisible(aptSourceList.isEmpty());

    ui->lblAptSourceTitle->setText(tr("APT Repositories (%1)")
                                   .arg(aptSourceList.count()));
}

void APTSourceManagerPage::on_btnAddAPTSourceRepository_clicked(bool checked)
{
    if (checked) {
        ui->btnAddAPTSourceRepository->setText(tr("Save"));
        changeElementsVisible(checked);
    } else {
        QString aptSourceRepository = ui->txtAptSource->text().trimmed();

        if (! aptSourceRepository.isEmpty()) {
            ToolManager::ins()->addAPTRepository(aptSourceRepository, ui->checkEnableSource->isChecked());

            ui->txtAptSource->clear();
            ui->checkEnableSource->setChecked(false);
            on_btnCancel_clicked();
            loadAptSources();
        }
    }
}

void APTSourceManagerPage::on_btnCancel_clicked()
{
    ui->btnAddAPTSourceRepository->setChecked(false);
    changeElementsVisible(false);
    ui->btnAddAPTSourceRepository->setText(tr("Add Repository"));
}

void APTSourceManagerPage::changeElementsVisible(const bool checked)
{
    ui->txtAptSource->setVisible(checked);
    ui->checkEnableSource->setVisible(checked);
    ui->btnCancel->setVisible(checked);
    ui->btnEditAptSource->setVisible(!checked);
    ui->btnDeleteAptSource->setVisible(!checked);
    ui->bottomSectionHorizontalSpacer->changeSize(0, 0, checked ? QSizePolicy::Minimum : QSizePolicy::Expanding);
}

void APTSourceManagerPage::on_listWidgetAptSources_itemClicked(QListWidgetItem *item)
{
    QWidget *widget = ui->listWidgetAptSources->itemWidget(item);
    if (widget) {
        APTSourceRepositoryItem *aptSourceItem = dynamic_cast<APTSourceRepositoryItem*>(widget);
        if (aptSourceItem) {
            selectedAptSource = aptSourceItem->aptSource();
        }
    } else {
        selectedAptSource.clear();
    }
}

void APTSourceManagerPage::on_listWidgetAptSources_itemDoubleClicked(QListWidgetItem *item)
{
    on_listWidgetAptSources_itemClicked(item);
    on_btnEditAptSource_clicked();
}

void APTSourceManagerPage::on_btnDeleteAptSource_clicked()
{
    if (! selectedAptSource.isNull()) {
        ToolManager::ins()->removeAPTSource(selectedAptSource);
        loadAptSources();
    }
}

void APTSourceManagerPage::on_txtSearchAptSource_textChanged(const QString &val)
{
    for (int i = 0; i < ui->listWidgetAptSources->count(); ++i) {
        QListWidgetItem *item = ui->listWidgetAptSources->item(i);
        if (item) {
            bool isContain = item->data(5).toString().contains(val, Qt::CaseInsensitive);
            ui->listWidgetAptSources->setItemHidden(item, ! isContain);
        }
    }
}

void APTSourceManagerPage::on_btnEditAptSource_clicked()
{
    if (! selectedAptSource.isNull()) {
        if (mAptSourceEditDialog.isNull()) {
            mAptSourceEditDialog = QSharedPointer<APTSourceEdit>(new APTSourceEdit(this));
            connect(mAptSourceEditDialog.data(), &APTSourceEdit::saved, this, &APTSourceManagerPage::loadAptSources);
        }
        APTSourceEdit::selectedAptSource = selectedAptSource;
        mAptSourceEditDialog->show();
    }
}


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_manager_page.h
================================================
#ifndef APTSourceManagerPage_PAGE_H
#define APTSourceManagerPage_PAGE_H

#include <QWidget>
#include <QListWidgetItem>

#include "apt_source_repository_item.h"
#include "apt_source_edit.h"
#include "Managers/info_manager.h"

namespace Ui {
class APTSourceManagerPage;
}

class APTSourceManagerPage : public QWidget
{
    Q_OBJECT

public:
    explicit APTSourceManagerPage(QWidget *parent = 0);
    ~APTSourceManagerPage();

public:
    static APTSourcePtr selectedAptSource;

private slots:
    void loadAptSources();
    void changeElementsVisible(const bool checked);
    void on_btnAddAPTSourceRepository_clicked(bool checked);
    void on_listWidgetAptSources_itemClicked(QListWidgetItem *item);
    void on_listWidgetAptSources_itemDoubleClicked(QListWidgetItem *item);
    void on_txtSearchAptSource_textChanged(const QString &val);
    void on_btnDeleteAptSource_clicked();
    void on_btnEditAptSource_clicked();
    void on_btnCancel_clicked();

private:
    void init();

private:
    Ui::APTSourceManagerPage *ui;

    QSharedPointer<APTSourceEdit> mAptSourceEditDialog;
};

#endif


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_manager_page.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>APTSourceManagerPage</class>
 <widget class="QWidget" name="APTSourceManagerPage">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>836</width>
    <height>582</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>APT Repository Manager</string>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_2">
   <property name="spacing">
    <number>0</number>
   </property>
   <property name="leftMargin">
    <number>0</number>
   </property>
   <property name="topMargin">
    <number>0</number>
   </property>
   <property name="rightMargin">
    <number>0</number>
   </property>
   <property name="bottomMargin">
    <number>0</number>
   </property>
   <item>
    <widget class="QWidget" name="verticalWidget" native="true">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="cursor">
      <cursorShape>ArrowCursor</cursorShape>
     </property>
     <property name="styleSheet">
      <string notr="true"/>
     </property>
     <layout class="QGridLayout" name="gridLayout_2">
      <property name="leftMargin">
       <number>30</number>
      </property>
      <property name="topMargin">
       <number>5</number>
      </property>
      <property name="rightMargin">
       <number>30</number>
      </property>
      <property name="bottomMargin">
       <number>20</number>
      </property>
      <property name="horizontalSpacing">
       <number>10</number>
      </property>
      <property name="verticalSpacing">
       <number>5</number>
      </property>
      <item row="1" column="0" colspan="7">
       <widget class="QWidget" name="verticalWidget_2" native="true">
        <layout class="QVBoxLayout" name="verticalLayout">
         <property name="spacing">
          <number>0</number>
         </property>
         <property name="leftMargin">
          <number>0</number>
         </property>
         <property name="topMargin">
          <number>0</number>
         </property>
         <property name="rightMargin">
          <number>0</number>
         </property>
         <property name="bottomMargin">
          <number>0</number>
         </property>
         <item>
          <widget class="QWidget" name="notFoundWidget" native="true">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="minimumSize">
            <size>
             <width>0</width>
             <height>200</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>16777215</width>
             <height>200</height>
            </size>
           </property>
           <property name="styleSheet">
            <string notr="true"/>
           </property>
           <layout class="QVBoxLayout" name="notFoundLayout">
            <property name="spacing">
             <number>0</number>
            </property>
            <property name="leftMargin">
             <number>0</number>
            </property>
            <property name="topMargin">
             <number>0</number>
            </property>
            <property name="rightMargin">
             <number>0</number>
            </property>
            <property name="bottomMargin">
             <number>0</number>
            </property>
            <item alignment="Qt::AlignHCenter|Qt::AlignBottom">
             <widget class="QLabel" name="lblNotFound">
              <property name="text">
               <string>Not Found APT Repositories</string>
              </property>
             </widget>
            </item>
           </layout>
          </widget>
         </item>
         <item>
          <widget class="QListWidget" name="listWidgetAptSources">
           <property name="focusPolicy">
            <enum>Qt::NoFocus</enum>
           </property>
           <property name="frameShape">
            <enum>QFrame::NoFrame</enum>
           </property>
           <property name="horizontalScrollBarPolicy">
            <enum>Qt::ScrollBarAlwaysOff</enum>
           </property>
           <property name="editTriggers">
            <set>QAbstractItemView::NoEditTriggers</set>
           </property>
           <property name="selectionMode">
            <enum>QAbstractItemView::SingleSelection</enum>
           </property>
           <property name="selectionBehavior">
            <enum>QAbstractItemView::SelectRows</enum>
           </property>
           <property name="resizeMode">
            <enum>QListView::Adjust</enum>
           </property>
           <property name="layoutMode">
            <enum>QListView::Batched</enum>
           </property>
           <property name="spacing">
            <number>4</number>
           </property>
           <property name="uniformItemSizes">
            <bool>true</bool>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
      <item row="4" column="0" colspan="7">
       <spacer name="verticalSpacer_2">
        <property name="orientation">
         <enum>Qt::Vertical</enum>
        </property>
        <property name="sizeType">
         <enum>QSizePolicy::Fixed</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>20</width>
          <height>15</height>
         </size>
        </property>
       </spacer>
      </item>
      <item row="0" column="6">
       <widget class="QLineEdit" name="txtSearchAptSource">
        <property name="placeholderText">
         <string>Search...</string>
        </property>
       </widget>
      </item>
      <item row="5" column="0" colspan="7">
       <layout class="QHBoxLayout" name="horizontalLayout_2">
        <property name="spacing">
         <number>10</number>
        </property>
        <property name="bottomMargin">
         <number>0</number>
        </property>
        <item>
         <widget class="QPushButton" name="btnEditAptSource">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="font">
           <font>
            <family>Ubuntu</family>
           </font>
          </property>
          <property name="cursor">
           <cursorShape>PointingHandCursor</cursorShape>
          </property>
          <property name="focusPolicy">
           <enum>Qt::NoFocus</enum>
          </property>
          <property name="accessibleName">
           <string notr="true">primary</string>
          </property>
          <property name="styleSheet">
           <string notr="true"/>
          </property>
          <property name="text">
           <string>Edit</string>
          </property>
          <property name="icon">
           <iconset resource="../../static.qrc">
            <normaloff>:/static/themes/default/img/edit.png</normaloff>:/static/themes/default/img/edit.png</iconset>
          </property>
          <property name="iconSize">
           <size>
            <width>16</width>
            <height>16</height>
           </size>
          </property>
          <property name="checkable">
           <bool>false</bool>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QPushButton" name="btnDeleteAptSource">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="font">
           <font>
            <family>Ubuntu</family>
           </font>
          </property>
          <property name="cursor">
           <cursorShape>PointingHandCursor</cursorShape>
          </property>
          <property name="focusPolicy">
           <enum>Qt::NoFocus</enum>
          </property>
          <property name="accessibleName">
           <string notr="true">danger</string>
          </property>
          <property name="styleSheet">
           <string notr="true"/>
          </property>
          <property name="text">
           <string>Delete</string>
          </property>
          <property name="icon">
           <iconset resource="../../static.qrc">
            <normaloff>:/static/themes/default/img/trash.png</normaloff>:/static/themes/default/img/trash.png</iconset>
          </property>
          <property name="iconSize">
           <size>
            <width>16</width>
            <height>16</height>
           </size>
          </property>
          <property name="checkable">
           <bool>false</bool>
          </property>
         </widget>
        </item>
        <item>
         <spacer name="bottomSectionHorizontalSpacer">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>0</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item>
         <widget class="QLineEdit" name="txtAptSource"/>
        </item>
        <item>
         <widget class="QCheckBox" name="checkEnableSource">
          <property name="accessibleName">
           <string notr="true">circle</string>
          </property>
          <property name="text">
           <string>Enable Source</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QPushButton" name="btnAddAPTSourceRepository">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="font">
           <font>
            <family>Ubuntu</family>
           </font>
          </property>
          <property name="cursor">
           <cursorShape>PointingHandCursor</cursorShape>
          </property>
          <property name="focusPolicy">
           <enum>Qt::NoFocus</enum>
          </property>
          <property name="accessibleName">
           <string notr="true">primary</string>
          </property>
          <property name="styleSheet">
           <string notr="true"/>
          </property>
          <property name="text">
           <string>Add Repository</string>
          </property>
          <property name="checkable">
           <bool>true</bool>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QPushButton" name="btnCancel">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="font">
           <font>
            <family>Ubuntu</family>
           </font>
          </property>
          <property name="cursor">
           <cursorShape>PointingHandCursor</cursorShape>
          </property>
          <property name="focusPolicy">
           <enum>Qt::NoFocus</enum>
          </property>
          <property name="accessibleName">
           <string notr="true">danger</string>
          </property>
          <property name="styleSheet">
           <string notr="true"/>
          </property>
          <property name="text">
           <string>Cancel</string>
          </property>
          <property name="iconSize">
           <size>
            <width>16</width>
            <height>16</height>
           </size>
          </property>
          <property name="checkable">
           <bool>false</bool>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item row="0" column="5">
       <spacer name="horizontalSpacer">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>40</width>
          <height>20</height>
         </size>
        </property>
       </spacer>
      </item>
      <item row="0" column="0" colspan="5">
       <widget class="QLabel" name="lblAptSourceTitle">
        <property name="font">
         <font>
          <family>Ubuntu</family>
          <pointsize>11</pointsize>
          <italic>false</italic>
         </font>
        </property>
        <property name="styleSheet">
         <string notr="true"/>
        </property>
        <property name="text">
         <string notr="true"/>
        </property>
       </widget>
      </item>
      <item row="2" column="0" colspan="7">
       <widget class="QLabel" name="lblAptSourceSelectInfo">
        <property name="text">
         <string>Select to delete or edit.</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
  </layout>
 </widget>
 <resources>
  <include location="../../static.qrc"/>
 </resources>
 <connections/>
</ui>


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_repository_item.cpp
================================================
#include "apt_source_repository_item.h"
#include "ui_apt_source_repository_item.h"
#include "utilities.h"
#include "Utils/command_util.h"
#include <QDebug>

APTSourceRepositoryItem::~APTSourceRepositoryItem()
{
    delete ui;
}

APTSourceRepositoryItem::APTSourceRepositoryItem(APTSourcePtr aptSource, QWidget *parent) :
    QWidget(parent),
    ui(new Ui::APTSourceRepositoryItem),
    mAptSource(aptSource)
{
    init();
}

void APTSourceRepositoryItem::init()
{
    ui->setupUi(this);

    Utilities::addDropShadow(this, 30, 10);

    ui->checkAptSource->setChecked(mAptSource->isActive);

    // example "deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main"
    QString source = mAptSource->source;

    source.remove(QRegExp("\\s[\\[]+.*[\\]]+"));

    if (mAptSource->isSource) {
        ui->lblAptSourceName->setText(tr("%1 (Source Code)").arg(source));
    } else {
        ui->lblAptSourceName->setText(source);
    }

    ui->lblAptSourceName->setToolTip(ui->lblAptSourceName->text());
}

APTSourcePtr APTSourceRepositoryItem::aptSource() const
{
    return mAptSource;
}

void APTSourceRepositoryItem::on_checkAptSource_clicked(bool checked)
{
    ToolManager::ins()->changeAPTStatus(mAptSource, checked);
}


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_repository_item.h
================================================
#ifndef APTSourceRepositoryItem_H
#define APTSourceRepositoryItem_H

#include <QWidget>
#include "Managers/tool_manager.h"

namespace Ui {
class APTSourceRepositoryItem;
}

class APTSourceRepositoryItem : public QWidget
{
    Q_OBJECT

public:
    explicit APTSourceRepositoryItem(APTSourcePtr aptSource, QWidget *parent = 0);
    ~APTSourceRepositoryItem();

public:
    APTSourcePtr aptSource() const;

private slots:
    void on_checkAptSource_clicked(bool checked);

private:
    void init();

private:
    Ui::APTSourceRepositoryItem *ui;

    APTSourcePtr mAptSource;
};

#endif


================================================
FILE: stacer/Pages/AptSourceManager/apt_source_repository_item.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>APTSourceRepositoryItem</class>
 <widget class="QWidget" name="APTSourceRepositoryItem">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>727</width>
    <height>45</height>
   </rect>
  </property>
  <property name="sizePolicy">
   <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
   </sizepolicy>
  </property>
  <property name="minimumSize">
   <size>
    <width>0</width>
    <height>45</height>
   </size>
  </property>
  <property name="maximumSize">
   <size>
    <width>16777215</width>
    <height>45</height>
   </size>
  </property>
  <property name="windowTitle">
   <string/>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <property name="spacing">
    <number>0</number>
   </property>
   <property name="leftMargin">
    <number>0</number>
   </property>
   <property name="topMargin">
    <number>0</number>
   </property>
   <property name="rightMargin">
    <number>0</number>
   </property>
   <property name="bottomMargin">
    <number>0</number>
   </property>
   <item>
    <widget class="QWidget" name="aptSourceRepositoryItemWidget" native="true">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="cursor">
      <cursorShape>PointingHandCursor</cursorShape>
     </property>
     <layout class="QHBoxLayout" name="startupAppLayout">
      <property name="spacing">
       <number>15</number>
      </property>
      <property name="leftMargin">
       <number>15</number>
      </property>
      <property name="topMargin">
       <number>10</number>
      </property>
      <property name="rightMargin">
       <number>10</number>
      </property>
      <property name="bottomMargin">
       <number>10</number>
      </property>
      <item>
       <widget class="QLabel" name="lblAptSourceIcon">
        <property name="minimumSize">
         <size>
          <width>26</width>
          <height>26</height>
         </size>
        </property>
        <property name="maximumSize">
         <size>
          <width>26</width>
          <height>26</height>
         </size>
        </property>
        <property name="text">
         <string/>
        </property>
        <property name="scaledContents">
         <bool>true</bool>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QLabel" name="lblAptSourceName">
        <property name="accessibleName">
         <string notr="true"/>
        </property>
        <property name="text">
         <string notr="true">APT Source Repository</string>
        </property>
       </widget>
      </item>
      <item>
       <spacer name="horizontalSpacer">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>0</width>
          <height>20</height>
         </size>
        </property>
       </spacer>
      </item>
      <item>
       <widget class="QCheckBox" name="checkAptSource">
        <property name="cursor">
         <cursorShape>PointingHandCursor</cursorShape>
        </property>
        <property name="focusPolicy">
         <enum>Qt::NoFocus</enum>
        </property>
        <property name="styleSheet">
         <string notr="true"/>
        </property>
        <property name="iconSize">
         <size>
          <width>45</width>
          <height>23</height>
         </size>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
  </layout>
 </widget>
 <resources/>
 <connections/>
</ui>


================================================
FILE: stacer/Pages/Dashboard/circlebar.cpp
================================================
#include "circlebar.h"
#include "ui_circlebar.h"

CircleBar::~CircleBar()
{
    delete ui;
    delete mChart;
}

CircleBar::CircleBar(const QString &title, const QStringList &colors, QWidget *parent) :
    QWidget(parent),
    ui(new Ui::CircleBar),
    mColors(colors),
    mChart(new QChart),
    mChartView(new QChartView(mChart)),
    mSeries(new QPieSeries(this))
{
    ui->setupUi(this);

    ui->lblCircleChartTitle->setText(title);

    init();
}

void CircleBar::init()
{
    QColor transparent("transparent");

    // series settings
    mSeries->setHoleSize(0.67);
    mSeries->setPieSize(165);
    mSeries->setPieStartAngle(-115);
    mSeries->setPieEndAngle(115);
    mSeries->setLabelsVisible(false);
    mSeries->append("Used", 0);
    mSeries->append("Free", 0);
    mSeries->slices().first()->setBorderColor(transparent);
    mSeries->slices().last()->setBorderColor(transparent);
    QConicalGradient gradient;
    gradient.setAngle(115);
    for (int i = 0; i < mColors.count(); ++i) {
        gradient.setColorAt(i, QColor(mColors.at(i)));
    }
    mSeries->slices().first()->setBrush(gradient);

    // chart settings
    mChart->setBackgroundBrush(QBrush(transparent));
    mChart->setContentsMargins(-20, -20, -20, -65);
    mChart->addSeries(mSeries);
    mChart->legend()->hide();

    // chartview settings
    mChartView->setRenderHint(QPainter::Antialiasing);

    ui->layoutCircleBar->insertWidget(1, mChartView);

    connect(SignalMapper::ins(), &SignalMapper::sigChangedAppTheme, [=] {
        QSettings *styleValues = AppManager::ins()->getStyleValues();
        mChartView->setBackgroundBrush(QColor(styleValues->value("@circleChartBackgroundColor").toString()));
        mSeries->slices().last()->setColor(styleValues->value("@pageContent").toString()); // trail color
    });
}

void CircleBar::setValue(const int &value, const QString &valueText)
{
    mSeries->slices().first()->setValue(value);
    mSeries->slices().last()->setValue(100 - value);

    ui->lblCircleChartValue->setText(valueText);
}



================================================
FILE: stacer/Pages/Dashboard/circlebar.h
================================================
#ifndef CIRCLEBAR_H
#define CIRCLEBAR_H

#include <QWidget>
#include <QtCharts>
#include "Managers/app_manager.h"
#include "signal_mapper.h"

namespace Ui {
    class CircleBar;
}

class CircleBar : public QWidget
{
    Q_OBJECT

public:
    explicit CircleBar(const QString &title, const QStringList &colors, QWidget *parent = 0);
    ~CircleBar();

public slots:
    void setValue(const int &value, const QString &valueText);

private slots:
    void init();

private:
    Ui::CircleBar *ui;

private:
    QStringList mColors;

    QChart *mChart;
    QChartView *mChartView;
    QPieSeries *mSeries;
};

#endif // CIRCLEBAR_H


================================================
FILE: stacer/Pages/Dashboard/circlebar.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>CircleBar</class>
 <widget class="QWidget" name="CircleBar">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>383</width>
    <height>317</height>
   </rect>
  </property>
  <property name="sizePolicy">
   <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
   </sizepolicy>
  </property>
  <property name="windowTitle">
   <string notr="true"/>
  </property>
  <property name="styleSheet">
   <string notr="true"/>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_2">
   <property name="spacing">
    <number>0</number>
   </property>
   <property name="leftMargin">
    <number>0</number>
   </property>
   <property name="topMargin">
    <number>0</number>
   </property>
   <property name="rightMargin">
    <number>0</number>
   </property>
   <property name="bottomMargin">
    <number>0</number>
   </property>
   <item>
    <widget class="QWidget" name="widgetCircleBar" native="true">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <layout class="QVBoxLayout" name="layoutCircleBar">
      <property name="spacing">
       <number>2</number>
      </property>
      <property name="leftMargin">
       <number>20</number>
      </property>
      <property name="topMargin">
       <number>10</number>
      </property>
      <property name="rightMargin">
       <number>20</number>
      </property>
      <property name="bottomMargin">
       <number>10</number>
      </property>
      <item alignment="Qt::AlignTop">
       <widget class="QLabel" name="lblCircleChartTitle">
        <property name="styleSheet">
         <string notr="true"/>
        </property>
        <property name="text">
         <string notr="true">Title</string>
        </property>
        <property name="alignment">
         <set>Qt::AlignCenter</set>
        </property>
       </widget>
      </item>
      <item alignment="Qt::AlignBottom">
       <widget class="QLabel" name="lblCircleChartValue">
        <property name="text">
         <string notr="true">Value</string>
        </property>
        <property name="alignment">
         <set>Qt::AlignCenter</set>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
  </layout>
 </widget>
 <resources/>
 <connections/>
</ui>


================================================
FILE: stacer/Pages/Dashboard/dashboard_page.cpp
================================================
#include "dashboard_page.h"
#include "ui_dashboard_page.h"

#include "utilities.h"

#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>

DashboardPage::~DashboardPage()
{
    delete ui;
}

DashboardPage::DashboardPage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::DashboardPage),
    mCpuBar(new CircleBar(tr("CPU"), {"#A8E063", "#56AB2F"}, this)),
    mMemBar(new CircleBar(tr("MEMORY"), {"#FFB75E", "#ED8F03"}, this)),
    mDiskBar(new CircleBar(tr("DISK"), {"#DC2430", "#7B4397"}, this)),
    mDownloadBar(new LineBar(tr("DOWNLOAD"), this)),
    mUploadBar(new LineBar(tr("UPLOAD"), this)),
    mTimer(new QTimer(this)),
    im(InfoManager::ins()),
    mSettingManager(SettingManager::ins())
{
    ui->setupUi(this);

    init();

    systemInformationInit();
}

void DashboardPage::init()
{
    // Circle bars
    ui->circleBarsLayout->addWidget(mCpuBar);
    ui->circleBarsLayout->addWidget(mMemBar);
    ui->circleBarsLayout->addWidget(mDiskBar);

    // line bars
    ui->lineBarsLayout->addWidget(mDownloadBar);
    ui->lineBarsLayout->addWidget(mUploadBar);

    // connections
    connect(mTimer, &QTimer::timeout, this, &DashboardPage::updateCpuBar);
    connect(mTimer, &QTimer::timeout, this, &DashboardPage::updateMemoryBar);
    connect(mTimer, &QTimer::timeout, this, &DashboardPage::updateNetworkBar);

    QTimer *timerDisk = new QTimer(this);
    connect(timerDisk, &QTimer::timeout, this, &DashboardPage::updateDiskBar);
    timerDisk->start(5 * 1000);

    mTimer->start(1 * 1000);

    // initialization
    updateCpuBar();
    updateMemoryBar();
    updateDiskBar();
    updateNetworkBar();

    ui->widgetUpdateBar->hide();

    // check update
    checkUpdate();
    connect(this, &DashboardPage::sigShowUpdateBar, ui->widgetUpdateBar, &QWidget::show);

    QList<QWidget*> widgets = {
        mCpuBar, mMemBar, mDiskBar, mDownloadBar, mUploadBar
    };

    Utilities::addDropShadow(widgets, 60);
}

void DashboardPage::checkUpdate()
{
    QNetworkAccessManager * nam = new QNetworkAccessManager(this);
    const QNetworkRequest updateCheckRequest(QUrl("https://api.github.com/repos/oguzhaninan/Stacer/releases/latest"));
    connect(nam,&QNetworkAccessManager::finished,this,[this](QNetworkReply * reply){
        if(reply->error()==QNetworkReply::NoError)
        {
            const QString requestResult= reply->readAll();
            const QJsonDocument result = QJsonDocument::fromJson(requestResult.toUtf8());
            const QRegExp ex("([0-9].[0-9].[0-9])");
            ex.indexIn(result.object().value("tag_name").toString());

            if (ex.matchedLength() > 0)
            {
                const QString version = ex.cap();

                if (qApp->applicationVersion() != version) {
                    emit sigShowUpdateBar();
                }
            }
        }

    });
    nam->get(updateCheckRequest);
}

void DashboardPage::on_btnDownloadUpdate_clicked()
{
    QDesktopServices::openUrl(QUrl("https://github.com/oguzhaninan/Stacer/releases/latest"));
}

void DashboardPage::systemInformationInit()
{
    // get system information
    SystemInfo sysInfo;

    QStringList infos;
    infos
        << tr("Hostname: %1").arg(sysInfo.getHostname())
        << tr("Platform: %1").arg(sysInfo.getPlatform())
        << tr("Distribution: %1").arg(sysInfo.getDistribution())
        << tr("Kernel Release: %1").arg(sysInfo.getKernel())
        << tr("CPU Model: %1").arg(sysInfo.getCpuModel())
        << tr("CPU Core: %1").arg(sysInfo.getCpuCore())
        << tr("CPU Speed: %1").arg(sysInfo.getCpuSpeed());

    QStringListModel *systemInfoModel = new QStringListModel(infos,ui->listViewSystemInfo);
    const auto oldModel = ui->listViewSystemInfo->selectionModel();
    delete  oldModel;
    ui->listViewSystemInfo->setModel(systemInfoModel);
}

void DashboardPage::updateCpuBar()
{
    int cpuUsedPercent = im->getCpuPercents().at(0);
    double cpuCurrentClockGHz = im->getCpuClock()/1000.0;

    // alert message
    int cpuAlerPercent = mSettingManager->getCpuAlertPercent();
    if (cpuAlerPercent > 0) {
        static bool isShow = true;
        if (cpuUsedPercent > cpuAlerPercent && isShow) {
            AppManager::ins()->getTrayIcon()->showMessage(tr("High CPU Usage"),
                                                          tr("The amount of CPU used is over %1%.").arg(cpuAlerPercent),
                                                          QSystemTrayIcon::Warning);
            isShow = false;
        } else if (cpuUsedPercent < cpuAlerPercent) {
            isShow = true;
        }
    }

    mCpuBar->setValue(cpuUsedPercent, QString("%1 GHz\n%2%").arg(cpuCurrentClockGHz, 0, 'f', 2).arg(cpuUsedPercent));
}

void DashboardPage::updateMemoryBar()
{
    im->updateMemoryInfo();

    int memUsedPercent = 0;
    if (im->getMemTotal()) {
        memUsedPercent = ((double)im->getMemUsed() / (double)im->getMemTotal()) * 100.0;
    }

    QString f_memUsed  = FormatUtil::formatBytes(im->getMemUsed());
    QString f_memTotal = FormatUtil::formatBytes(im->getMemTotal());

    // alert message
    int memoryAlertPercent = mSettingManager->getMemoryAlertPercent();
    if (memoryAlertPercent > 0) {
        static bool isShow = true;
        if (memUsedPercent > memoryAlertPercent && isShow) {
            AppManager::ins()->getTrayIcon()->showMessage(tr("High Memory Usage"),
                                                          tr("The amount of memory used is over %1%.").arg(memoryAlertPercent),
                                                          QSystemTrayIcon::Warning);
            isShow = false;
        } else if (memUsedPercent < memoryAlertPercent) {
            isShow = true;
        }
    }

    mMemBar->setValue(memUsedPercent, QString("%1 / %2")
                     .arg(f_memUsed)
                     .arg(f_memTotal));
}

void DashboardPage::updateDiskBar()
{
    im->updateDiskInfo();

    if(! im->getDisks().isEmpty()) {
        Disk *disk = nullptr;
        QString selectedDiskName = mSettingManager->getDiskName();
        for (Disk *d: im->getDisks()) {
            if (d->name.trimmed() == selectedDiskName.trimmed())
                disk = d;
        }

        if (! disk) {
            for (Disk *d: im->getDisks())
                if (d->name.trimmed() == QStorageInfo::root().displayName().trimmed())
                    disk = d;
            if (! disk)
                disk = im->getDisks().at(0);
        }

        int diskPercent = 0;
        if (disk->size > 0) {
            diskPercent = ((double) disk->used / (double) disk->size) * 100.0;
        }

        // alert message
        int diskAlertPercent = mSettingManager->getDiskAlertPercent();
        if (diskAlertPercent > 0) {
            static bool isShow = true;
            if (diskPercent > diskAlertPercent && isShow) {
                AppManager::ins()->getTrayIcon()->showMessage(tr("High Disk Usage"),
                                                              tr("The amount of disk used is over %1%.").arg(diskAlertPercent),
                                                              QSystemTrayIcon::Warning);
                isShow = false;
            } else if (diskPercent < diskAlertPercent) {
                isShow = true;
            }
        }

        QString sizeText = FormatUtil::formatBytes(disk->size);
        QString usedText = FormatUtil::formatBytes(disk->used);

        mDiskBar->setValue(diskPercent, QString("%1 / %2")
                          .arg(usedText)
                          .arg(sizeText));
    }
}

void DashboardPage::updateNetworkBar()
{
    static quint64 l_RXbytes = im->getRXbytes();
    static quint64 l_TXbytes = im->getTXbytes();
    static quint64 max_RXbytes = 1L << 20; // 1 MEBI
    static quint64 max_TXbytes = 1L << 20; // 1 MEBI

    quint64 RXbytes = im->getRXbytes();
    quint64 TXbytes = im->getTXbytes();

    quint64 d_RXbytes = (RXbytes - l_RXbytes);
    quint64 d_TXbytes = (TXbytes - l_TXbytes);

    QString downText = FormatUtil::formatBytes(d_RXbytes);
    QString upText   = FormatUtil::formatBytes(d_TXbytes);

    int downPercent = ((double) d_RXbytes / (double) max_RXbytes) * 100.0;
    int upPercent   = ((double) d_TXbytes / (double) max_TXbytes) * 100.0;

    mDownloadBar->setValue(downPercent,
                          QString("%1/s").arg(downText),
                          tr("Total: %1").arg(FormatUtil::formatBytes(RXbytes)));

    mUploadBar->setValue(upPercent,
                        QString("%1/s").arg(upText),
                        tr("Total: %1").arg(FormatUtil::formatBytes(TXbytes)));

    max_RXbytes = qMax(max_RXbytes, d_RXbytes);
    max_TXbytes = qMax(max_TXbytes, d_TXbytes);

    l_RXbytes = RXbytes;
    l_TXbytes = TXbytes;
}



================================================
FILE: stacer/Pages/Dashboard/dashboard_page.h
================================================
#ifndef DASHBOARDPAGE_H
#define DASHBOARDPAGE_H

#include <QWidget>
#include <QTimer>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QDesktopServices>
#include <QtConcurrent>

#include "Managers/info_manager.h"
#include "circlebar.h"
#include "linebar.h"

#include "Managers/setting_manager.h"

namespace Ui {
    class DashboardPage;
}

class DashboardPage : public QWidget
{
    Q_OBJECT

public:
    explicit DashboardPage(QWidget *parent = 0);
    ~DashboardPage();

private slots:
    void init();
    void checkUpdate();
    void systemInformationInit();

    void updateCpuBar();
    void updateMemoryBar();
    void updateDiskBar();
    void updateNetworkBar();

    void on_btnDownloadUpdate_clicked();

signals:
    void sigShowUpdateBar();

private:
    Ui::DashboardPage *ui;

private:
    CircleBar* mCpuBar;
    CircleBar* mMemBar;
    CircleBar* mDiskBar;

    LineBar *mDownloadBar;
    LineBar *mUploadBar;

    QTimer *mTimer;
    InfoManager *im;

    SettingManager *mSettingManager;
};

#endif // DASHBOARDPAGE_H


================================================
FILE: stacer/Pages/Dashboard/dashboard_page.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>DashboardPage</class>
 <widget class="QWidget" name="DashboardPage">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>811</width>
    <height>583</height>
   </rect>
  </property>
  <property name="sizePolicy">
   <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
   </sizepolicy>
  </property>
  <property name="windowTitle">
   <string>Dashboard</string>
  </property>
  <layout class="QGridLayout" name="gridLayout">
   <property name="leftMargin">
    <number>5</number>
   </property>
   <property name="topMargin">
    <number>5</number>
   </property>
   <property name="rightMargin">
    <number>5</number>
   </property>
   <property name="bottomMargin">
    <number>5</number>
   </property>
   <property name="spacing">
    <number>0</number>
   </property>
   <item row="0" column="0" colspan="2">
    <widget class="QWidget" name="circleBars" native="true">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="minimumSize">
      <size>
       <width>0</width>
       <height>200</height>
      </size>
     </property>
     <layout class="QHBoxLayout" name="circleBarsLayout">
      <property name="spacing">
       <number>20</number>
      </property>
      <property name="leftMargin">
       <number>10</number>
      </property>
      <property name="topMargin">
       <number>5</number>
      </property>
      <property name="rightMargin">
       <number>10</number>
      </property>
      <property name="bottomMargin">
       <number>5</number>
      </property>
     </layout>
    </widget>
   </item>
   <item row="2" column="1">
    <widget class="QWidget" name="lineBars" native="true">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="minimumSize">
      <size>
       <width>150</width>
       <height>0</height>
      </size>
     </property>
     <layout class="QVBoxLayout" name="lineBarsLayout">
      <property name="spacing">
       <number>20</number>
      </property>
      <property name="leftMargin">
       <number>10</number>
      </property>
      <property name="topMargin">
       <number>10</number>
      </property>
      <property name="rightMargin">
       <number>10</number>
      </property>
      <property name="bottomMargin">
       <number>10</number>
      </property>
     </layout>
    </widget>
   </item>
   <item row="2" column="0">
    <widget class="QWidget" name="systemInfo" native="true">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="minimumSize">
      <size>
       <width>200</width>
       <height>0</height>
      </size>
     </property>
     <property name="focusPolicy">
      <enum>Qt::WheelFocus</enum>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout">
      <property name="spacing">
       <number>5</number>
      </property>
      <property name="leftMargin">
       <number>15</number>
      </property>
      <property name="topMargin">
       <number>0</number>
      </property>
      <property name="rightMargin">
       <number>10</number>
      </property>
      <property name="bottomMargin">
       <number>0</number>
      </property>
      <item>
       <spacer name="verticalSpacer_2">
        <property name="orientation">
         <enum>Qt::Vertical</enum>
        </property>
        <property name="sizeType">
         <enum>QSizePolicy::Fixed</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>20</width>
          <height>15</height>
         </size>
        </property>
       </spacer>
      </item>
      <item>
       <widget class="QLabel" name="lblSystemInfoTitle">
        <property name="text">
         <string>SYSTEM INFO</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QListView" name="listViewSystemInfo">
        <property name="focusPolicy">
         <enum>Qt::NoFocus</enum>
        </property>
        <property name="verticalScrollBarPolicy">
         <enum>Qt::ScrollBarAlwaysOff</enum>
        </property>
        <property name="horizontalScrollBarPolicy">
         <enum>Qt::ScrollBarAlwaysOff</enum>
        </property>
        <property name="autoScroll">
         <bool>false</bool>
        </property>
        <property name="editTriggers">
         <set>QAbstractItemView::NoEditTriggers</set>
        </property>
        <property name="selectionMode">
         <enum>QAbstractItemView::NoSelection</enum>
        </property>
        <property name="selectionBehavior">
         <enum>QAbstractItemView::SelectRows</enum>
        </property>
        <property name="spacing">
         <number>5</number>
        </property>
        <property name="wordWrap">
         <bool>true</bool>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item row="3" column="0" colspan="2">
    <widget class="QWidget" name="widgetUpdateBar" native="true">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="minimumSize">
      <size>
       <width>0</width>
       <height>31</height>
      </size>
     </property>
     <property name="styleSheet">
      <string notr="true"/>
     </property>
     <layout class="QHBoxLayout" name="updateBarLayout">
      <property name="spacing">
       <number>0</number>
      </property>
      <property name="leftMargin">
       <number>15</number>
      </property>
      <property name="topMargin">
       <number>0</number>
      </property>
      <property name="rightMargin">
       <number>5</number>
      </property>
      <property name="bottomMargin">
       <number>0</number>
      </property>
      <item alignment="Qt::AlignLeft|Qt::AlignVCenter">
       <widget class="QLabel" name="lblUpdateBarText">
        <property name="text">
         <string>There are update currently available.</string>
        </property>
       </widget>
      </item>
      <item alignment="Qt::AlignRight|Qt::AlignVCenter">
       <widget class="QPushButton" name="btnDownloadUpdate">
        <property name="cursor">
         <cursorShape>PointingHandCursor</cursorShape>
        </property>
        <property name="focusPolicy">
         <enum>Qt::NoFocus</enum>
        </property>
        <property name="accessibleName">
         <string notr="true">primary</string>
        </property>
        <property name="text">
         <string>Download</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
  </layout>
 </widget>
 <resources/>
 <connections/>
</ui>


================================================
FILE: stacer/Pages/Dashboard/linebar.cpp
================================================
#include "linebar.h"
#include "ui_linebar.h"

LineBar::~LineBar()
{
    delete ui;
}

LineBar::LineBar(const QString &title, QWidget *parent) :
    QWidget(parent),
    ui(new Ui::LineBar)
{
    ui->setupUi(this);

    ui->lblLineChartTitle->setText(title);
}

void LineBar::setValue(const int &value, const QString &text, const QString &totalText)
{
    ui->lineChartProgress->setValue(value);
    ui->lblLineChartValue->setText(text);
    ui->lblLineChartTotal->setText(totalText);
}


================================================
FILE: stacer/Pages/Dashboard/linebar.h
================================================
#ifndef LINEBAR_H
#define LINEBAR_H

#include <QWidget>

namespace Ui {
    class LineBar;
}

class LineBar : public QWidget
{
    Q_OBJECT

public:
    explicit LineBar(const QString &title, QWidget *parent = 0);
    ~LineBar();

public slots:
    void setValue(const int &value, const QString &text, const QString &totalText);

private:
    Ui::LineBar *ui;
};

#endif // LINEBAR_H


================================================
FILE: stacer/Pages/Dashboard/linebar.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>LineBar</class>
 <widget class="QWidget" name="LineBar">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>474</width>
    <height>114</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string notr="true"/>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_2">
   <property name="spacing">
    <number>0</number>
   </property>
   <property name="leftMargin">
    <number>0</number>
   </property>
   <property name="topMargin">
    <number>0</number>
   </property>
   <property name="rightMargin">
    <number>0</number>
   </property>
   <property name="bottomMargin">
    <number>0</number>
   </property>
   <item>
    <widget class="QWidget" name="lineChartWidget" native="true">
     <layout class="QGridLayout" name="gridLayout_2">
      <property name="leftMargin">
       <number>25</number>
      </property>
      <property name="topMargin">
       <number>15</number>
      </property>
      <property name="rightMargin">
       <number>25</number>
      </property>
      <property name="bottomMargin">
       <number>15</number>
      </property>
      <property name="horizontalSpacing">
       <number>0</number>
      </property>
      <property name="verticalSpacing">
       <number>15</number>
      </property>
      <item row="3" column="0" alignment="Qt::AlignLeft|Qt::AlignBottom">
       <widget class="QLabel" name="lblLineChartTotal">
        <property name="text">
         <string notr="true">Total</string>
        </property>
       </widget>
      </item>
      <item row="2" column="0" colspan="2" alignment="Qt::AlignVCenter">
       <widget class="QProgressBar" name="lineChartProgress">
        <property name="minimumSize">
         <size>
          <width>0</width>
          <height>20</height>
         </size>
        </property>
        <property name="maximumSize">
         <size>
          <width>16777215</width>
          <height>20</height>
         </size>
        </property>
        <property name="styleSheet">
         <string notr="true"/>
        </property>
        <property name="value">
         <number>0</number>
        </property>
        <property name="textVisible">
         <bool>false</bool>
        </property>
       </widget>
      </item>
      <item row="3" column="1" alignment="Qt::AlignRight|Qt::AlignBottom">
       <widget class="QLabel" name="lblLineChartValue">
        <property name="text">
         <string notr="true">Value</string>
        </property>
       </widget>
      </item>
      <item row="1" column="0" colspan="2" alignment="Qt::AlignTop">
       <widget class="QLabel" name="lblLineChartTitle">
        <property name="text">
         <string notr="true">Title</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
  </layout>
 </widget>
 <resources/>
 <connections/>
</ui>


================================================
FILE: stacer/Pages/GnomeSettings/appearance_settings.cpp
================================================
#include "appearance_settings.h"
#include "ui_appearance_settings.h"
#include <QDebug>
AppearanceSettings::~AppearanceSettings()
{
    delete ui;
}

AppearanceSettings::AppearanceSettings(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::AppearanceSettings),
    gsettings(GnomeSettingsTool::ins())
{
    ui->setupUi(this);

    loadDatas();

    init();

    initConnects();
}

void AppearanceSettings::init()
{
    bool showDesktopIcons = gsettings.getValueB(GSchemas::Appearance::Background, GSchemaKeys::Appearance::ShowDesktopIcons);

    bool showHomeIcon = gsettings.getValueB(GSchemas::Appearance::Desktop, GSchemaKeys::Appearance::ShowHomeIcon);

    bool showNetworkIcon = gsettings.getValueB(GSchemas::Appearance::Desktop, GSchemaKeys::Appearance::ShowNetworkIcon);

    bool showTrashIcon = gsettings.getValueB(GSchemas::Appearance::Desktop, GSchemaKeys::Appearance::ShowTrashIcon);

    bool showVolumesIcon = gsettings.getValueB(GSchemas::Appearance::Desktop, GSchemaKeys::Appearance::ShowVolumesIcon);

    QString desktopBackMode = gsettings.getValueS(GSchemas::Appearance::Background, GSchemaKeys::Appearance::PictureOptions).replace("'","");

    QString loginBackMode = gsettings.getValueS(GSchemas::Appearance::Screensaver, GSchemaKeys::Appearance::PictureOptions).replace("'","");

    bool screenKeyboardEnabled = gsettings.getValueB(GSchemas::Appearance::Applications, GSchemaKeys::Appearance::ScreenKeyboard);

    bool screenReaderEnabled = gsettings.getValueB(GSchemas::Appearance::Applications, GSchemaKeys::Appearance::ScreenReader);

    ui->checkShowDesktopIcons->setChecked(showDesktopIcons);

    ui->checkHomeIcon->setChecked(showHomeIcon);

    ui->checkNetworkIcon->setChecked(showNetworkIcon);

    ui->checkTrashIcon->setChecked(showTrashIcon);

    ui->checkMountedVulmesIcon->setChecked(showVolumesIcon);

    ui->cmbDesktopBackMode->setCurrentIndex(ui->cmbDesktopBackMode->findData(desktopBackMode));

    ui->cmbLoginBackMode->setCurrentIndex(ui->cmbLoginBackMode->findData(loginBackMode));

    ui->checkScreenKeyboard->setChecked(screenKeyboardEnabled);

    ui->checkScreenReader->setChecked(screenReaderEnabled);
}

void AppearanceSettings::initConnects()
{
    connect(ui->cmbDesktopBackMode, SIGNAL(currentIndexChanged(int)), this, SLOT(cmbDesktopBackMode_currentIndexChanged(int)));
    connect(ui->cmbLoginBackMode, SIGNAL(currentIndexChanged(int)), this, SLOT(cmbLoginBackMode_currentIndexChanged(int)));
}

void AppearanceSettings::loadDatas()
{
    QList<QPair<QString, QString>> backgroundModes = {
        {tr("None"), "none"}, {tr("Wallpaper"), "wallpaper"}, {tr("Centered"), "centered"},
        {tr("Scaled"), "scaled"}, {tr("Stretched"), "stretched"}, {tr("Zoom"), "zoom"}, {tr("Spanned"), "spanned"}
    };

    for (const QPair<QString, QString> &mode : backgroundModes) {
        ui->cmbDesktopBackMode->addItem(mode.first, mode.second);
        ui->cmbLoginBackMode->addItem(mode.first, mode.second);
    }
}

void AppearanceSettings::on_checkShowDesktopIcons_clicked(bool checked)
{
    if (! checked) {
        ui->checkHomeIcon->setChecked(checked);
        ui->checkNetworkIcon->setChecked(checked);
        ui->checkMountedVulmesIcon->setChecked(checked);
        ui->checkTrashIcon->setChecked(checked);
    }
    gsettings.setValueB(GSchemas::Appearance::Background, GSchemaKeys::Appearance::ShowDesktopIcons, checked);
}

void AppearanceSettings::on_checkHomeIcon_clicked(bool checked)
{
    gsettings.setValueB(GSchemas::Appearance::Desktop, GSchemaKeys::Appearance::ShowHomeIcon, checked);
}

void AppearanceSettings::on_checkTrashIcon_clicked(bool checked)
{
    gsettings.setValueB(GSchemas::Appearance::Desktop, GSchemaKeys::Appearance::ShowTrashIcon, checked);
}

void AppearanceSettings::on_checkMountedVulmesIcon_clicked(bool checked)
{
    gsettings.setValueB(GSchemas::Appearance::Desktop, GSchemaKeys::Appearance::ShowVolumesIcon, checked);
}

void AppearanceSettings::on_checkNetworkIcon_clicked(bool checked)
{
    gsettings.setValueB(GSchemas::Appearance::Desktop, GSchemaKeys::Appearance::ShowNetworkIcon, checked);
}

void AppearanceSettings::cmbDesktopBackMode_currentIndexChanged(int index)
{
    QString data = ui->cmbDesktopBackMode->itemData(index).toString();
    gsettings.setValueS(GSchemas::Appearance::Background, GSchemaKeys::Appearance::PictureOptions, data);
}

void AppearanceSettings::cmbLoginBackMode_currentIndexChanged(int index)
{
    QString data = ui->cmbLoginBackMode->itemData(index).toString();
    gsettings.setValueS(GSchemas::Appearance::Screensaver, GSchemaKeys::Appearance::PictureOptions, data);
}

void AppearanceSettings::on_checkScreenKeyboard_clicked(bool checked)
{
    gsettings.setValueB(GSchemas::Appearance::Applications, GSchemaKeys::Appearance::ScreenKeyboard, checked);
}

void AppearanceSettings::on_checkScreenReader_clicked(bool checked)
{
    gsettings.setValueB(GSchemas::Appearance::Applications, GSchemaKeys::Appearance::ScreenReader, checked);
}


================================================
FILE: stacer/Pages/GnomeSettings/appearance_settings.h
================================================
#ifndef APPEARANCE_SETTINGS_H
#define APPEARANCE_SETTINGS_H

#include <QWidget>
#include "Tools/gnome_settings_tool.h"

namespace Ui {
class AppearanceSettings;
}

class AppearanceSettings : public QWidget
{
    Q_OBJECT

public:
    explicit AppearanceSettings(QWidget *parent = 0);
    ~AppearanceSettings();

private slots:
    void on_checkShowDesktopIcons_clicked(bool checked);
    void on_checkHomeIcon_clicked(bool checked);
    void on_checkTrashIcon_clicked(bool checked);
    void on_checkMountedVulmesIcon_clicked(bool checked);
    void on_checkNetworkIcon_clicked(bool checked);
    void cmbDesktopBackMode_currentIndexChanged(int index);
    void cmbLoginBackMode_currentIndexChanged(int index);
    void on_checkScreenKeyboard_clicked(bool checked);
    void on_checkScreenReader_clicked(bool checked);

private:
    void init();
    void initConnects();
    void loadDatas();

private:
    Ui::AppearanceSettings *ui;

    GnomeSettingsTool gsettings;
};

#endif // APPEARANCE_SETTINGS_H


================================================
FILE: stacer/Pages/GnomeSettings/appearance_settings.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>AppearanceSettings</class>
 <widget class="QWidget" name="AppearanceSettings">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>801</width>
    <height>438</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string notr="true"/>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <property name="spacing">
    <number>0</number>
   </property>
   <property name="leftMargin">
    <number>0</number>
   </property>
   <property name="topMargin">
    <number>0</number>
   </property>
   <property name="rightMargin">
    <number>0</number>
   </property>
   <property name="bottomMargin">
    <number>0</number>
   </property>
   <item>
    <widget class="QWidget" name="widgetAppearance" native="true">
     <layout class="QGridLayout" name="gridLayout">
      <property name="horizontalSpacing">
       <number>20</number>
      </property>
      <property name="verticalSpacing">
       <number>10</number>
      </property>
      <item row="2" column="0" colspan="5">
       <widget class="QGroupBox" name="grpScreenApps">
        <property name="title">
         <string>Screen Applications</string>
        </property>
        <layout class="QGridLayout" name="gridLayout_4">
         <property name="leftMargin">
          <number>5</number>
         </property>
         <property name="topMargin">
          <number>5</number>
         </property>
         <property name="rightMargin">
          <number>5</number>
         </property>
         <property name="bottomMargin">
          <number>5</number>
         </property>
         <property name="horizontalSpacing">
          <number>30</num
Download .txt
gitextract_zr7tsmtq/

├── .github/
│   └── FUNDING.yml
├── .gitignore
├── .travis.yml
├── CMakeLists.txt
├── LICENSE
├── README.md
├── Stacer.pro
├── applications/
│   └── stacer.desktop
├── cmake/
│   └── cxxbasics/
│       ├── CXXBasics.cmake
│       ├── DefaultSettings.cmake
│       ├── InitCXXBasics.cmake
│       ├── UNLICENSE
│       ├── accelerators/
│       │   ├── UseCCache.cmake
│       │   ├── UseCompilerCacheTool.cmake
│       │   ├── UseFasterLinkers.cmake
│       │   └── UseSCCache.cmake
│       ├── compiler_detection/
│       │   └── GetTargetArch.cmake
│       └── helpers/
│           ├── FnMktemp.cmake
│           ├── MacroCustomMessages.cmake
│           └── MacroOpt.cmake
├── debian/
│   ├── changelog
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── install
│   ├── postinst
│   ├── postrm
│   ├── rules
│   └── source/
│       └── format
├── release.sh
├── stacer/
│   ├── CMakeLists.txt
│   ├── Managers/
│   │   ├── app_manager.cpp
│   │   ├── app_manager.h
│   │   ├── info_manager.cpp
│   │   ├── info_manager.h
│   │   ├── setting_manager.cpp
│   │   ├── setting_manager.h
│   │   ├── tool_manager.cpp
│   │   └── tool_manager.h
│   ├── Pages/
│   │   ├── AptSourceManager/
│   │   │   ├── apt_source_edit.cpp
│   │   │   ├── apt_source_edit.h
│   │   │   ├── apt_source_edit.ui
│   │   │   ├── apt_source_manager_page.cpp
│   │   │   ├── apt_source_manager_page.h
│   │   │   ├── apt_source_manager_page.ui
│   │   │   ├── apt_source_repository_item.cpp
│   │   │   ├── apt_source_repository_item.h
│   │   │   └── apt_source_repository_item.ui
│   │   ├── Dashboard/
│   │   │   ├── circlebar.cpp
│   │   │   ├── circlebar.h
│   │   │   ├── circlebar.ui
│   │   │   ├── dashboard_page.cpp
│   │   │   ├── dashboard_page.h
│   │   │   ├── dashboard_page.ui
│   │   │   ├── linebar.cpp
│   │   │   ├── linebar.h
│   │   │   └── linebar.ui
│   │   ├── GnomeSettings/
│   │   │   ├── appearance_settings.cpp
│   │   │   ├── appearance_settings.h
│   │   │   ├── appearance_settings.ui
│   │   │   ├── gnome_settings_page.cpp
│   │   │   ├── gnome_settings_page.h
│   │   │   ├── gnome_settings_page.ui
│   │   │   ├── unity_settings.cpp
│   │   │   ├── unity_settings.h
│   │   │   ├── unity_settings.ui
│   │   │   ├── window_manager_settings.cpp
│   │   │   ├── window_manager_settings.h
│   │   │   └── window_manager_settings.ui
│   │   ├── Helpers/
│   │   │   ├── helpers_page.cpp
│   │   │   ├── helpers_page.h
│   │   │   ├── helpers_page.ui
│   │   │   ├── host_manage.cpp
│   │   │   ├── host_manage.h
│   │   │   └── host_manage.ui
│   │   ├── Processes/
│   │   │   ├── processes_page.cpp
│   │   │   ├── processes_page.h
│   │   │   └── processes_page.ui
│   │   ├── Resources/
│   │   │   ├── history_chart.cpp
│   │   │   ├── history_chart.h
│   │   │   ├── history_chart.ui
│   │   │   ├── resources_page.cpp
│   │   │   ├── resources_page.h
│   │   │   └── resources_page.ui
│   │   ├── Search/
│   │   │   ├── search_page.cpp
│   │   │   ├── search_page.h
│   │   │   └── search_page.ui
│   │   ├── Services/
│   │   │   ├── service_item.cpp
│   │   │   ├── service_item.h
│   │   │   ├── service_item.ui
│   │   │   ├── services_page.cpp
│   │   │   ├── services_page.h
│   │   │   └── services_page.ui
│   │   ├── Settings/
│   │   │   ├── settings_page.cpp
│   │   │   ├── settings_page.h
│   │   │   └── settings_page.ui
│   │   ├── StartupApps/
│   │   │   ├── startup_app.cpp
│   │   │   ├── startup_app.h
│   │   │   ├── startup_app.ui
│   │   │   ├── startup_app_edit.cpp
│   │   │   ├── startup_app_edit.h
│   │   │   ├── startup_app_edit.ui
│   │   │   ├── startup_apps_page.cpp
│   │   │   ├── startup_apps_page.h
│   │   │   └── startup_apps_page.ui
│   │   ├── SystemCleaner/
│   │   │   ├── byte_tree_widget.cpp
│   │   │   ├── byte_tree_widget.h
│   │   │   ├── system_cleaner_page.cpp
│   │   │   ├── system_cleaner_page.h
│   │   │   └── system_cleaner_page.ui
│   │   └── Uninstaller/
│   │       ├── uninstaller_page.cpp
│   │       ├── uninstaller_page.h
│   │       └── uninstallerpage.ui
│   ├── app.cpp
│   ├── app.h
│   ├── app.ui
│   ├── feedback.cpp
│   ├── feedback.h
│   ├── feedback.ui
│   ├── main.cpp
│   ├── signal_mapper.cpp
│   ├── signal_mapper.h
│   ├── sliding_stacked_widget.cpp
│   ├── sliding_stacked_widget.h
│   ├── stacer.pro
│   ├── static/
│   │   ├── languages.json
│   │   ├── themes/
│   │   │   ├── default/
│   │   │   │   └── style/
│   │   │   │       ├── style.qss
│   │   │   │       └── values.ini
│   │   │   └── light/
│   │   │       └── style/
│   │   │           ├── style.qss
│   │   │           └── values.ini
│   │   └── themes.json
│   ├── static.qrc
│   └── utilities.h
├── stacer-core/
│   ├── CMakeLists.txt
│   ├── Info/
│   │   ├── cpu_info.cpp
│   │   ├── cpu_info.h
│   │   ├── disk_info.cpp
│   │   ├── disk_info.h
│   │   ├── memory_info.cpp
│   │   ├── memory_info.h
│   │   ├── network_info.cpp
│   │   ├── network_info.h
│   │   ├── process.cpp
│   │   ├── process.h
│   │   ├── process_info.cpp
│   │   ├── process_info.h
│   │   ├── system_info.cpp
│   │   └── system_info.h
│   ├── Tools/
│   │   ├── apt_source_tool.cpp
│   │   ├── apt_source_tool.h
│   │   ├── gnome_schema.h
│   │   ├── gnome_settings_tool.cpp
│   │   ├── gnome_settings_tool.h
│   │   ├── package_tool.cpp
│   │   ├── package_tool.h
│   │   ├── service_tool.cpp
│   │   └── service_tool.h
│   ├── Utils/
│   │   ├── command_util.cpp
│   │   ├── command_util.h
│   │   ├── file_util.cpp
│   │   ├── file_util.h
│   │   ├── format_util.cpp
│   │   └── format_util.h
│   ├── stacer-core.pro
│   └── stacer-core_global.h
└── translations/
    ├── stacer_ar.ts
    ├── stacer_ca-es.ts
    ├── stacer_cs.ts
    ├── stacer_de.ts
    ├── stacer_en.ts
    ├── stacer_es.ts
    ├── stacer_fr.ts
    ├── stacer_gl.ts
    ├── stacer_hi.ts
    ├── stacer_hu.ts
    ├── stacer_it.ts
    ├── stacer_kn.ts
    ├── stacer_ko.ts
    ├── stacer_ml.ts
    ├── stacer_nl.ts
    ├── stacer_oc.ts
    ├── stacer_pl.ts
    ├── stacer_pt.ts
    ├── stacer_ro.ts
    ├── stacer_ru.ts
    ├── stacer_sv.ts
    ├── stacer_tr.ts
    ├── stacer_ua.ts
    ├── stacer_vn.ts
    ├── stacer_zh-cn.ts
    └── stacer_zh-tw.ts
Download .txt
SYMBOL INDEX (173 symbols across 72 files)

FILE: stacer-core/Info/cpu_info.h
  function class (line 16) | class STACERCORESHARED_EXPORT CpuInfo

FILE: stacer-core/Info/disk_info.cpp
  function QStringList (line 80) | QStringList DiskInfo::getDiskNames() const

FILE: stacer-core/Info/disk_info.h
  function class (line 14) | class STACERCORESHARED_EXPORT DiskInfo
  type Disk (line 29) | struct Disk {

FILE: stacer-core/Info/memory_info.cpp
  function quint64 (line 41) | quint64 MemoryInfo::getSwapUsed() const
  function quint64 (line 46) | quint64 MemoryInfo::getSwapFree() const
  function quint64 (line 51) | quint64 MemoryInfo::getSwapTotal() const
  function quint64 (line 56) | quint64 MemoryInfo::getMemUsed() const
  function quint64 (line 61) | quint64 MemoryInfo::getMemFree() const
  function quint64 (line 66) | quint64 MemoryInfo::getMemTotal() const

FILE: stacer-core/Info/memory_info.h
  function class (line 10) | class STACERCORESHARED_EXPORT MemoryInfo

FILE: stacer-core/Info/network_info.cpp
  function QString (line 29) | QString NetworkInfo::getDefaultNetworkInterface() const
  function quint64 (line 34) | quint64 NetworkInfo::getRXbytes() const
  function quint64 (line 43) | quint64 NetworkInfo::getTXbytes() const

FILE: stacer-core/Info/network_info.h
  function class (line 10) | class STACERCORESHARED_EXPORT NetworkInfo

FILE: stacer-core/Info/process.cpp
  function pid_t (line 3) | pid_t Process::getPid() const
  function quint64 (line 13) | quint64 Process::getRss() const
  function quint64 (line 33) | quint64 Process::getVsize() const
  function QString (line 43) | QString Process::getUname() const
  function QString (line 63) | QString Process::getCmd() const
  function QString (line 73) | QString Process::getStartTime() const
  function QString (line 83) | QString Process::getState() const
  function QString (line 93) | QString Process::getGroup() const
  function QString (line 113) | QString Process::getCpuTime() const
  function QString (line 123) | QString Process::getSession() const

FILE: stacer-core/Info/process.h
  function class (line 8) | class STACERCORESHARED_EXPORT Process {

FILE: stacer-core/Info/system_info.cpp
  function QString (line 61) | QString SystemInfo::getUsername() const
  function QString (line 66) | QString SystemInfo::getHostname() const
  function QStringList (line 71) | QStringList SystemInfo::getUserList() const
  function QStringList (line 83) | QStringList SystemInfo::getGroupList() const
  function QString (line 95) | QString SystemInfo::getPlatform() const
  function QString (line 102) | QString SystemInfo::getDistribution() const
  function QString (line 107) | QString SystemInfo::getKernel() const
  function QString (line 112) | QString SystemInfo::getCpuModel() const
  function QString (line 117) | QString SystemInfo::getCpuSpeed() const
  function QString (line 122) | QString SystemInfo::getCpuCore() const
  function QFileInfoList (line 127) | QFileInfoList SystemInfo::getCrashReports() const
  function QFileInfoList (line 134) | QFileInfoList SystemInfo::getAppLogs() const
  function QFileInfoList (line 142) | QFileInfoList SystemInfo::getAppCaches() const

FILE: stacer-core/Info/system_info.h
  function class (line 13) | class STACERCORESHARED_EXPORT SystemInfo

FILE: stacer-core/Tools/apt_source_tool.h
  function class (line 14) | class APTSource {
  type QSharedPointer (line 27) | typedef QSharedPointer<APTSource> APTSourcePtr;
  function class (line 29) | class AptSourceTool

FILE: stacer-core/Tools/gnome_schema.h
  function namespace (line 4) | namespace GSchemaPaths {
  function namespace (line 11) | namespace GSchemas {
  function namespace (line 35) | namespace GSchemaKeys {
  function namespace (line 84) | namespace GValues {

FILE: stacer-core/Tools/gnome_settings_tool.cpp
  function QVariant (line 35) | QVariant GnomeSettingsTool::getValue(const QString schema, const QString...
  function QString (line 56) | QString GnomeSettingsTool::getValueS(const QString schema, const QString...

FILE: stacer-core/Tools/gnome_settings_tool.h
  function class (line 9) | class STACERCORESHARED_EXPORT GnomeSettingsTool

FILE: stacer-core/Tools/package_tool.cpp
  function QFileInfoList (line 16) | QFileInfoList PackageTool::getDpkgPackageCaches()
  function QStringList (line 23) | QStringList PackageTool::getDpkgPackages()
  function QStringList (line 63) | QStringList PackageTool::getRpmPackages()
  function QFileInfoList (line 116) | QFileInfoList PackageTool::getPacmanPackageCaches()
  function QStringList (line 123) | QStringList PackageTool::getPacmanPackages()
  function QStringList (line 162) | QStringList PackageTool::getSnapPackages()

FILE: stacer-core/Tools/package_tool.h
  function class (line 11) | class STACERCORESHARED_EXPORT PackageTool

FILE: stacer-core/Tools/service_tool.cpp
  function QString (line 46) | QString ServiceTool::getServiceDescription(const QString &serviceName)

FILE: stacer-core/Tools/service_tool.h
  function class (line 8) | class STACERCORESHARED_EXPORT Service
  function class (line 19) | class STACERCORESHARED_EXPORT ServiceTool

FILE: stacer-core/Utils/command_util.cpp
  function QString (line 10) | QString CommandUtil::sudoExec(const QString &cmd, QStringList args, QByt...
  function QString (line 25) | QString CommandUtil::exec(const QString &cmd, QStringList args, QByteArr...

FILE: stacer-core/Utils/command_util.h
  function class (line 8) | class STACERCORESHARED_EXPORT CommandUtil

FILE: stacer-core/Utils/file_util.cpp
  function QString (line 8) | QString FileUtil::readStringFromFile(const QString &path, const QIODevic...
  function QStringList (line 24) | QStringList FileUtil::readListFromFile(const QString &path, const QIODev...
  function QStringList (line 48) | QStringList FileUtil::directoryList(const QString &path)
  function quint64 (line 60) | quint64 FileUtil::getFileSize(const QString &path)

FILE: stacer-core/Utils/file_util.h
  function class (line 15) | class STACERCORESHARED_EXPORT FileUtil

FILE: stacer-core/Utils/format_util.cpp
  function QString (line 5) | QString FormatUtil::formatBytes(const quint64 &bytes)

FILE: stacer-core/Utils/format_util.h
  function class (line 6) | class STACERCORESHARED_EXPORT FormatUtil

FILE: stacer/Managers/app_manager.cpp
  function AppManager (line 6) | AppManager *AppManager::ins()
  function QSystemTrayIcon (line 31) | QSystemTrayIcon *AppManager::getTrayIcon()
  function QSettings (line 36) | QSettings *AppManager::getStyleValues() const
  function QString (line 94) | QString AppManager::getStylesheetFileContent() const

FILE: stacer/Managers/app_manager.h
  function class (line 17) | class AppManager

FILE: stacer/Managers/info_manager.cpp
  function InfoManager (line 5) | InfoManager *InfoManager::ins()
  function QString (line 14) | QString InfoManager::getUserName() const
  function QStringList (line 19) | QStringList InfoManager::getUserList() const
  function QStringList (line 24) | QStringList InfoManager::getGroupList() const
  function quint64 (line 60) | quint64 InfoManager::getSwapUsed() const
  function quint64 (line 65) | quint64 InfoManager::getSwapTotal() const
  function quint64 (line 70) | quint64 InfoManager::getMemUsed() const
  function quint64 (line 75) | quint64 InfoManager::getMemTotal() const
  function quint64 (line 111) | quint64 InfoManager::getRXbytes() const
  function quint64 (line 116) | quint64 InfoManager::getTXbytes() const
  function QFileInfoList (line 124) | QFileInfoList InfoManager::getCrashReports() const
  function QFileInfoList (line 129) | QFileInfoList InfoManager::getAppLogs() const
  function QFileInfoList (line 134) | QFileInfoList InfoManager::getAppCaches() const

FILE: stacer/Managers/info_manager.h
  function class (line 13) | class InfoManager

FILE: stacer/Managers/setting_manager.cpp
  function SettingManager (line 11) | SettingManager* SettingManager::ins()
  function QString (line 19) | QString SettingManager::getConfigPath() const
  function QString (line 29) | QString SettingManager::getLanguage() const
  function QString (line 39) | QString SettingManager::getThemeName() const
  function QString (line 49) | QString SettingManager::getDiskName() const
  function QString (line 59) | QString SettingManager::getStartPage() const
  function QString (line 109) | QString SettingManager::getAppQuitDialogChoice() const

FILE: stacer/Managers/setting_manager.h
  function namespace (line 7) | namespace SettingKeys {
  function class (line 19) | class SettingManager

FILE: stacer/Managers/tool_manager.cpp
  function ToolManager (line 5) | ToolManager *ToolManager::ins()
  function QStringList (line 45) | QStringList ToolManager::getPackages() const
  function QStringList (line 64) | QStringList ToolManager::getSnapPackages() const
  function QFileInfoList (line 74) | QFileInfoList ToolManager::getPackageCaches() const

FILE: stacer/Managers/tool_manager.h
  function class (line 8) | class ToolManager

FILE: stacer/Pages/AptSourceManager/apt_source_edit.h
  function namespace (line 7) | namespace Ui {
  function class (line 11) | class APTSourceEdit : public QDialog

FILE: stacer/Pages/AptSourceManager/apt_source_manager_page.h
  function namespace (line 11) | namespace Ui {
  function class (line 15) | class APTSourceManagerPage : public QWidget

FILE: stacer/Pages/AptSourceManager/apt_source_repository_item.cpp
  function APTSourcePtr (line 42) | APTSourcePtr APTSourceRepositoryItem::aptSource() const

FILE: stacer/Pages/AptSourceManager/apt_source_repository_item.h
  function namespace (line 7) | namespace Ui {
  function class (line 11) | class APTSourceRepositoryItem : public QWidget

FILE: stacer/Pages/Dashboard/circlebar.h
  function namespace (line 9) | namespace Ui {
  function class (line 13) | class CircleBar : public QWidget

FILE: stacer/Pages/Dashboard/dashboard_page.h
  function namespace (line 18) | namespace Ui {
  function class (line 22) | class DashboardPage : public QWidget

FILE: stacer/Pages/Dashboard/linebar.h
  function namespace (line 6) | namespace Ui {
  function class (line 10) | class LineBar : public QWidget

FILE: stacer/Pages/GnomeSettings/appearance_settings.h
  function namespace (line 7) | namespace Ui {
  function class (line 11) | class AppearanceSettings : public QWidget

FILE: stacer/Pages/GnomeSettings/gnome_settings_page.h
  function namespace (line 11) | namespace Ui {
  function class (line 15) | class GnomeSettingsPage : public QWidget

FILE: stacer/Pages/GnomeSettings/unity_settings.h
  function namespace (line 7) | namespace Ui {
  function class (line 11) | class UnitySettings : public QWidget

FILE: stacer/Pages/GnomeSettings/window_manager_settings.h
  function namespace (line 7) | namespace Ui {
  function class (line 11) | class WindowManagerSettings : public QWidget

FILE: stacer/Pages/Helpers/helpers_page.h
  function namespace (line 8) | namespace Ui {
  function class (line 12) | class HelpersPage : public QWidget

FILE: stacer/Pages/Helpers/host_manage.h
  function namespace (line 13) | namespace Ui {
  function class (line 17) | class HostItem
  function class (line 25) | class HostManage : public QWidget

FILE: stacer/Pages/Processes/processes_page.h
  function namespace (line 15) | namespace Ui {
  function class (line 19) | class ProcessesPage : public QWidget

FILE: stacer/Pages/Resources/history_chart.cpp
  function QCategoryAxis (line 85) | QCategoryAxis *HistoryChart::getAxisY()

FILE: stacer/Pages/Resources/history_chart.h
  function namespace (line 12) | namespace Ui {
  function class (line 16) | class HistoryChart : public QWidget

FILE: stacer/Pages/Resources/resources_page.h
  function namespace (line 12) | namespace Ui {
  function class (line 16) | class ResourcesPage : public QWidget

FILE: stacer/Pages/Search/search_page.h
  function namespace (line 19) | namespace Ui {
  function class (line 23) | class SearchPage : public QWidget

FILE: stacer/Pages/Services/service_item.h
  function namespace (line 8) | namespace Ui {
  function class (line 12) | class ServiceItem : public QWidget

FILE: stacer/Pages/Services/services_page.h
  function namespace (line 7) | namespace Ui {
  function class (line 11) | class ServicesPage : public QWidget

FILE: stacer/Pages/Settings/settings_page.h
  function namespace (line 11) | namespace Ui {
  function class (line 15) | class SettingsPage : public QWidget

FILE: stacer/Pages/StartupApps/startup_app.cpp
  function QString (line 65) | QString StartupApp::getAppName() const
  function QString (line 85) | QString StartupApp::getFilePath() const

FILE: stacer/Pages/StartupApps/startup_app.h
  function namespace (line 11) | namespace Ui {
  function class (line 15) | class StartupApp : public QWidget

FILE: stacer/Pages/StartupApps/startup_app_edit.h
  function namespace (line 15) | namespace Ui {
  function class (line 19) | class StartupAppEdit : public QDialog

FILE: stacer/Pages/StartupApps/startup_apps_page.h
  function namespace (line 15) | namespace Ui {
  function class (line 19) | class StartupAppsPage : public QWidget

FILE: stacer/Pages/SystemCleaner/byte_tree_widget.h
  function class (line 9) | class ByteTreeWidget : public QTreeWidgetItem

FILE: stacer/Pages/SystemCleaner/system_cleaner_page.cpp
  function quint64 (line 56) | quint64 SystemCleanerPage::addTreeRoot(const CleanCategories &cat, const...

FILE: stacer/Pages/SystemCleaner/system_cleaner_page.h
  function namespace (line 17) | namespace Ui {
  function class (line 21) | class SystemCleanerPage : public QWidget

FILE: stacer/Pages/Uninstaller/uninstaller_page.cpp
  function QStringList (line 107) | QStringList UninstallerPage::getSelectedPackages()
  function QStringList (line 122) | QStringList UninstallerPage::getSelectedSnapPackages()

FILE: stacer/Pages/Uninstaller/uninstaller_page.h
  function namespace (line 12) | namespace Ui {
  function class (line 16) | class UninstallerPage : public QWidget

FILE: stacer/app.cpp
  function QWidget (line 189) | QWidget* App::getPageByTitle(const QString &title)

FILE: stacer/app.h
  function namespace (line 25) | namespace Ui {
  function class (line 29) | class App : public QMainWindow

FILE: stacer/feedback.h
  function namespace (line 6) | namespace Ui {
  function class (line 10) | class Feedback : public QDialog

FILE: stacer/main.cpp
  function messageHandler (line 9) | void messageHandler(QtMsgType type, const QMessageLogContext &context, c...
  function main (line 52) | int main(int argc, char *argv[])

FILE: stacer/signal_mapper.cpp
  function SignalMapper (line 5) | SignalMapper* SignalMapper::ins()

FILE: stacer/signal_mapper.h
  function class (line 6) | class SignalMapper : public QObject

FILE: stacer/sliding_stacked_widget.cpp
  type t_direction (line 67) | enum t_direction

FILE: stacer/sliding_stacked_widget.h
  function class (line 11) | class SlidingStackedWidget : public QStackedWidget

FILE: stacer/utilities.h
  function class (line 7) | class Utilities
  function QString (line 28) | static QString
Condensed preview — 191 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2,079K chars).
[
  {
    "path": ".github/FUNDING.yml",
    "chars": 365,
    "preview": "# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [u"
  },
  {
    "path": ".gitignore",
    "chars": 54,
    "preview": "Stacer.pro.*\ndist/\nbuild/\n#*.AppImage\n.vscode\nRelease/"
  },
  {
    "path": ".travis.yml",
    "chars": 585,
    "preview": "language: cpp\ncompiler: clang\nsudo: require\ndist: trusty\nbefore_install:\n- sudo add-apt-repository ppa:beineri/opt-qt591"
  },
  {
    "path": "CMakeLists.txt",
    "chars": 968,
    "preview": "cmake_minimum_required(VERSION 3.1 FATAL_ERROR)\nproject(Stacer)\n\n# Adding features(build cache + faster linkers) and rea"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 7624,
    "preview": "\n<p align=\"center\">\n⚠️ <b>This project has been abandoned. There will be no further releases </b>⚠️\n</p>\n\n<p align=\"cent"
  },
  {
    "path": "Stacer.pro",
    "chars": 62,
    "preview": "TEMPLATE = subdirs\n\nSUBDIRS += \\\n    stacer-core \\\n    stacer\n"
  },
  {
    "path": "applications/stacer.desktop",
    "chars": 150,
    "preview": "[Desktop Entry]\nName=Stacer\nExec=stacer\nComment=Linux System Optimizer and Monitoring\nIcon=stacer\nType=Application\nTermi"
  },
  {
    "path": "cmake/cxxbasics/CXXBasics.cmake",
    "chars": 566,
    "preview": "cmake_minimum_required(VERSION 3.0 FATAL_ERROR)\n\nlist(APPEND CMAKE_MODULE_PATH \"${CMAKE_CURRENT_LIST_DIR}\")\n\n# Variables"
  },
  {
    "path": "cmake/cxxbasics/DefaultSettings.cmake",
    "chars": 392,
    "preview": "# This module sets reasonable defaults that probably every C/C++ CMake project should\n\ncmake_minimum_required(VERSION 3."
  },
  {
    "path": "cmake/cxxbasics/InitCXXBasics.cmake",
    "chars": 430,
    "preview": "## This module defines common functions and variables that should be accessible in every module\n\ncmake_minimum_required("
  },
  {
    "path": "cmake/cxxbasics/UNLICENSE",
    "chars": 1211,
    "preview": "This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, c"
  },
  {
    "path": "cmake/cxxbasics/accelerators/UseCCache.cmake",
    "chars": 444,
    "preview": "# This module activates \"ccache\" support on Unix\n# This module is supposed to be used only from \"UseCompilerCacheTool.cm"
  },
  {
    "path": "cmake/cxxbasics/accelerators/UseCompilerCacheTool.cmake",
    "chars": 847,
    "preview": "# This module activates a compiler cache\n\ncmake_minimum_required(VERSION 3.0 FATAL_ERROR)\n\nopt_ifndef(\"Use a compiler ca"
  },
  {
    "path": "cmake/cxxbasics/accelerators/UseFasterLinkers.cmake",
    "chars": 4451,
    "preview": "# This module activates faster linkers, if these are available and supported.\n# It prefers the fastest linker available("
  },
  {
    "path": "cmake/cxxbasics/accelerators/UseSCCache.cmake",
    "chars": 510,
    "preview": "# This module activates \"sccache\" support on Unix and Windows if\n# another compiler cache tool was not found.\n# This mod"
  },
  {
    "path": "cmake/cxxbasics/compiler_detection/GetTargetArch.cmake",
    "chars": 6989,
    "preview": "# This module identifies the target architecture of the C and CXX compilers\n\n# ARM(\"armv8\" includes AArch64, \"arm\" is al"
  },
  {
    "path": "cmake/cxxbasics/helpers/FnMktemp.cmake",
    "chars": 3157,
    "preview": "## This module defines helper functions to create temporary files and folders in a system-agnostic way\n\ncmake_minimum_re"
  },
  {
    "path": "cmake/cxxbasics/helpers/MacroCustomMessages.cmake",
    "chars": 2070,
    "preview": "## This module contains project-wide custom CMake messagging macros.\n## Does not adhere to the overall style because Mac"
  },
  {
    "path": "cmake/cxxbasics/helpers/MacroOpt.cmake",
    "chars": 2661,
    "preview": "## This module defines helper macros to set options(cached variables)\n\ncmake_minimum_required(VERSION 3.0 FATAL_ERROR)\n\n"
  },
  {
    "path": "debian/changelog",
    "chars": 206,
    "preview": "stacer (1.1.0-1) stable; urgency=medium\n\n  * Snap package uninstaller.\n  * Advanced file search.\n  * Disk chart.\n  * Hos"
  },
  {
    "path": "debian/compat",
    "chars": 2,
    "preview": "9\n"
  },
  {
    "path": "debian/control",
    "chars": 394,
    "preview": "Source: stacer\nSection: utils\nPriority: optional\nMaintainer: Oguzhan INAN <oguzhan3488@gmail.com>\nBuild-Depends: debhelp"
  },
  {
    "path": "debian/copyright",
    "chars": 35451,
    "preview": "Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: stacer\nSource: https://github."
  },
  {
    "path": "debian/install",
    "chars": 91,
    "preview": "stacer/* usr/share/stacer/\napplications/* usr/share/applications/\nicons/* usr/share/icons/\n"
  },
  {
    "path": "debian/postinst",
    "chars": 70,
    "preview": "#!/bin/sh\n\nln -sf \"/usr/share/stacer/stacer\" \"/usr/bin/stacer\"\n\nexit 0"
  },
  {
    "path": "debian/postrm",
    "chars": 68,
    "preview": "#!/bin/sh\n\nunlink /usr/bin/stacer\nrm -rf /usr/share/stacer\n\nexit 0 \n"
  },
  {
    "path": "debian/rules",
    "chars": 125,
    "preview": "#!/usr/bin/make -f\n# -*- makefile -*-\n\n# Uncomment this to turn on verbose mode.\n#export DH_VERBOSE=1\n\n%:\n\tdh $@  --para"
  },
  {
    "path": "debian/source/format",
    "chars": 12,
    "preview": "3.0 (quilt)\n"
  },
  {
    "path": "release.sh",
    "chars": 937,
    "preview": "#!/bin/bash\nVERSION=1.1.0\nRELEASE=Release\nDIR=stacer-$VERSION\n\nmkdir $RELEASE\nmkdir build ; cd build\ncmake -DCMAKE_BUILD"
  },
  {
    "path": "stacer/CMakeLists.txt",
    "chars": 2050,
    "preview": "\ncmake_minimum_required(VERSION 3.1 FATAL_ERROR)\nproject(stacer)\n\nset(MANAGERS_DIR  \"${CMAKE_CURRENT_SOURCE_DIR}/Manager"
  },
  {
    "path": "stacer/Managers/app_manager.cpp",
    "chars": 2607,
    "preview": "#include \"app_manager.h\"\n#include <QDebug>\n\nAppManager *AppManager::instance = nullptr;\n\nAppManager *AppManager::ins()\n{"
  },
  {
    "path": "stacer/Managers/app_manager.h",
    "chars": 1043,
    "preview": "#ifndef APP_MANAGER_H\n#define APP_MANAGER_H\n\n#include <QApplication>\n#include <QMap>\n#include <QSettings>\n#include <QJso"
  },
  {
    "path": "stacer/Managers/info_manager.cpp",
    "chars": 2304,
    "preview": "#include \"info_manager.h\"\n\nInfoManager *InfoManager::instance = nullptr;\n\nInfoManager *InfoManager::ins()\n{\n    if(! ins"
  },
  {
    "path": "stacer/Managers/info_manager.h",
    "chars": 1342,
    "preview": "#ifndef INFO_MANAGER_H\n#define INFO_MANAGER_H\n\n#include <QObject>\n\n#include <Info/cpu_info.h>\n#include <Info/disk_info.h"
  },
  {
    "path": "stacer/Managers/setting_manager.cpp",
    "chars": 2794,
    "preview": "#include \"setting_manager.h\"\n\nSettingManager::SettingManager()\n{\n    mConfigPath = QStandardPaths::writableLocation(QSta"
  },
  {
    "path": "stacer/Managers/setting_manager.h",
    "chars": 1610,
    "preview": "#ifndef SETTING_MANAGER_H\n#define SETTING_MANAGER_H\n\n#include <QSettings>\n#include <QStandardPaths>\n\nnamespace SettingKe"
  },
  {
    "path": "stacer/Managers/tool_manager.cpp",
    "chars": 3490,
    "preview": "#include \"tool_manager.h\"\n\nToolManager *ToolManager::instance = NULL;\n\nToolManager *ToolManager::ins()\n{\n    if(! instan"
  },
  {
    "path": "stacer/Managers/tool_manager.h",
    "chars": 1188,
    "preview": "#ifndef TOOL_MANAGER_H\n#define TOOL_MANAGER_H\n\n#include <Tools/service_tool.h>\n#include <Tools/package_tool.h>\n#include "
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_edit.cpp",
    "chars": 1885,
    "preview": "#include \"apt_source_edit.h\"\n#include \"ui_apt_source_edit.h\"\n\n#include <QDebug>\n\nAPTSourceEdit::~APTSourceEdit()\n{\n    d"
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_edit.h",
    "chars": 578,
    "preview": "#ifndef APT_SOURCE_EDIT_H\n#define APT_SOURCE_EDIT_H\n\n#include <QDialog>\n#include \"Managers/tool_manager.h\"\n\nnamespace Ui"
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_edit.ui",
    "chars": 5821,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>APTSourceEdit</class>\n <widget class=\"QDialog\" name=\"A"
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_manager_page.cpp",
    "chars": 4699,
    "preview": "#include \"apt_source_manager_page.h\"\n#include \"ui_apt_source_manager_page.h\"\n#include <QDebug>\n#include \"utilities.h\"\n#i"
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_manager_page.h",
    "chars": 1094,
    "preview": "#ifndef APTSourceManagerPage_PAGE_H\n#define APTSourceManagerPage_PAGE_H\n\n#include <QWidget>\n#include <QListWidgetItem>\n\n"
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_manager_page.ui",
    "chars": 13499,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>APTSourceManagerPage</class>\n <widget class=\"QWidget\" "
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_repository_item.cpp",
    "chars": 1239,
    "preview": "#include \"apt_source_repository_item.h\"\n#include \"ui_apt_source_repository_item.h\"\n#include \"utilities.h\"\n#include \"Util"
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_repository_item.h",
    "chars": 585,
    "preview": "#ifndef APTSourceRepositoryItem_H\n#define APTSourceRepositoryItem_H\n\n#include <QWidget>\n#include \"Managers/tool_manager."
  },
  {
    "path": "stacer/Pages/AptSourceManager/apt_source_repository_item.ui",
    "chars": 3841,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>APTSourceRepositoryItem</class>\n <widget class=\"QWidge"
  },
  {
    "path": "stacer/Pages/Dashboard/circlebar.cpp",
    "chars": 2041,
    "preview": "#include \"circlebar.h\"\n#include \"ui_circlebar.h\"\n\nCircleBar::~CircleBar()\n{\n    delete ui;\n    delete mChart;\n}\n\nCircleB"
  },
  {
    "path": "stacer/Pages/Dashboard/circlebar.h",
    "chars": 629,
    "preview": "#ifndef CIRCLEBAR_H\n#define CIRCLEBAR_H\n\n#include <QWidget>\n#include <QtCharts>\n#include \"Managers/app_manager.h\"\n#inclu"
  },
  {
    "path": "stacer/Pages/Dashboard/circlebar.ui",
    "chars": 2545,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>CircleBar</class>\n <widget class=\"QWidget\" name=\"Circl"
  },
  {
    "path": "stacer/Pages/Dashboard/dashboard_page.cpp",
    "chars": 8782,
    "preview": "#include \"dashboard_page.h\"\n#include \"ui_dashboard_page.h\"\n\n#include \"utilities.h\"\n\n#include <QNetworkAccessManager>\n#in"
  },
  {
    "path": "stacer/Pages/Dashboard/dashboard_page.h",
    "chars": 1067,
    "preview": "#ifndef DASHBOARDPAGE_H\n#define DASHBOARDPAGE_H\n\n#include <QWidget>\n#include <QTimer>\n#include <QJsonDocument>\n#include "
  },
  {
    "path": "stacer/Pages/Dashboard/dashboard_page.ui",
    "chars": 7281,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>DashboardPage</class>\n <widget class=\"QWidget\" name=\"D"
  },
  {
    "path": "stacer/Pages/Dashboard/linebar.cpp",
    "chars": 486,
    "preview": "#include \"linebar.h\"\n#include \"ui_linebar.h\"\n\nLineBar::~LineBar()\n{\n    delete ui;\n}\n\nLineBar::LineBar(const QString &ti"
  },
  {
    "path": "stacer/Pages/Dashboard/linebar.h",
    "chars": 384,
    "preview": "#ifndef LINEBAR_H\n#define LINEBAR_H\n\n#include <QWidget>\n\nnamespace Ui {\n    class LineBar;\n}\n\nclass LineBar : public QWi"
  },
  {
    "path": "stacer/Pages/Dashboard/linebar.ui",
    "chars": 2945,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>LineBar</class>\n <widget class=\"QWidget\" name=\"LineBar"
  },
  {
    "path": "stacer/Pages/GnomeSettings/appearance_settings.cpp",
    "chars": 4987,
    "preview": "#include \"appearance_settings.h\"\n#include \"ui_appearance_settings.h\"\n#include <QDebug>\nAppearanceSettings::~AppearanceSe"
  },
  {
    "path": "stacer/Pages/GnomeSettings/appearance_settings.h",
    "chars": 1005,
    "preview": "#ifndef APPEARANCE_SETTINGS_H\n#define APPEARANCE_SETTINGS_H\n\n#include <QWidget>\n#include \"Tools/gnome_settings_tool.h\"\n\n"
  },
  {
    "path": "stacer/Pages/GnomeSettings/appearance_settings.ui",
    "chars": 14361,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>AppearanceSettings</class>\n <widget class=\"QWidget\" na"
  },
  {
    "path": "stacer/Pages/GnomeSettings/gnome_settings_page.cpp",
    "chars": 1602,
    "preview": "#include \"gnome_settings_page.h\"\n#include \"ui_gnome_settings_page.h\"\n#include \"utilities.h\"\n\nGnomeSettingsPage::~GnomeSe"
  },
  {
    "path": "stacer/Pages/GnomeSettings/gnome_settings_page.h",
    "chars": 818,
    "preview": "#ifndef GNOME_SETTINGS_PAGE_H\n#define GNOME_SETTINGS_PAGE_H\n\n#include <QWidget>\n#include \"sliding_stacked_widget.h\"\n\n#in"
  },
  {
    "path": "stacer/Pages/GnomeSettings/gnome_settings_page.ui",
    "chars": 4108,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>GnomeSettingsPage</class>\n <widget class=\"QWidget\" nam"
  },
  {
    "path": "stacer/Pages/GnomeSettings/unity_settings.cpp",
    "chars": 9700,
    "preview": "#include \"unity_settings.h\"\n#include \"ui_unity_settings.h\"\n#include <QDebug>\n\nUnitySettings::~UnitySettings()\n{\n    dele"
  },
  {
    "path": "stacer/Pages/GnomeSettings/unity_settings.h",
    "chars": 1735,
    "preview": "#ifndef UNITY_SETTINGS_H\n#define UNITY_SETTINGS_H\n\n#include <QWidget>\n#include \"Tools/gnome_settings_tool.h\"\n\nnamespace "
  },
  {
    "path": "stacer/Pages/GnomeSettings/unity_settings.ui",
    "chars": 36105,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>UnitySettings</class>\n <widget class=\"QWidget\" name=\"U"
  },
  {
    "path": "stacer/Pages/GnomeSettings/window_manager_settings.cpp",
    "chars": 6882,
    "preview": "#include \"window_manager_settings.h\"\n#include \"ui_window_manager_settings.h\"\n#include <QDebug>\n\nWindowManagerSettings::~"
  },
  {
    "path": "stacer/Pages/GnomeSettings/window_manager_settings.h",
    "chars": 1055,
    "preview": "#ifndef WINDOW_MANAGER_SETTINGS_H\n#define WINDOW_MANAGER_SETTINGS_H\n\n#include <QWidget>\n#include \"Tools/gnome_settings_t"
  },
  {
    "path": "stacer/Pages/GnomeSettings/window_manager_settings.ui",
    "chars": 18578,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>WindowManagerSettings</class>\n <widget class=\"QWidget\""
  },
  {
    "path": "stacer/Pages/Helpers/helpers_page.cpp",
    "chars": 558,
    "preview": "#include \"helpers_page.h\"\n#include \"ui_helpers_page.h\"\n\nHelpersPage::~HelpersPage()\n{\n    delete ui;\n}\n\nHelpersPage::Hel"
  },
  {
    "path": "stacer/Pages/Helpers/helpers_page.h",
    "chars": 447,
    "preview": "#ifndef HELPERS_PAGE_H\n#define HELPERS_PAGE_H\n\n#include <QWidget>\n#include \"host_manage.h\"\n#include \"utilities.h\"\n\nnames"
  },
  {
    "path": "stacer/Pages/Helpers/helpers_page.ui",
    "chars": 2591,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>HelpersPage</class>\n <widget class=\"QWidget\" name=\"Hel"
  },
  {
    "path": "stacer/Pages/Helpers/host_manage.cpp",
    "chars": 6978,
    "preview": "#include \"host_manage.h\"\n#include \"ui_host_manage.h\"\n#include <qdebug.h>\n\nHostManage::~HostManage()\n{\n    delete ui;\n}\n\n"
  },
  {
    "path": "stacer/Pages/Helpers/host_manage.h",
    "chars": 1198,
    "preview": "#ifndef HOST_MANAGE_H\n#define HOST_MANAGE_H\n\n#include <QWidget>\n#include <QStandardItemModel>\n#include <QSortFilterProxy"
  },
  {
    "path": "stacer/Pages/Helpers/host_manage.ui",
    "chars": 6411,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>HostManage</class>\n <widget class=\"QWidget\" name=\"Host"
  },
  {
    "path": "stacer/Pages/Processes/processes_page.cpp",
    "chars": 7979,
    "preview": "#include \"processes_page.h\"\n#include \"ui_processes_page.h\"\n#include \"utilities.h\"\n\nProcessesPage::~ProcessesPage()\n{\n   "
  },
  {
    "path": "stacer/Pages/Processes/processes_page.h",
    "chars": 1080,
    "preview": "#ifndef PROCESSESPAGE_H\n#define PROCESSESPAGE_H\n\n#include <QWidget>\n#include <QStandardItemModel>\n#include <QSortFilterP"
  },
  {
    "path": "stacer/Pages/Processes/processes_page.ui",
    "chars": 6366,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>ProcessesPage</class>\n <widget class=\"QWidget\" name=\"P"
  },
  {
    "path": "stacer/Pages/Resources/history_chart.cpp",
    "chars": 3612,
    "preview": "#include \"history_chart.h\"\n#include \"ui_history_chart.h\"\n\nHistoryChart::~HistoryChart()\n{\n    delete ui;\n}\n\nHistoryChart"
  },
  {
    "path": "stacer/Pages/Resources/history_chart.h",
    "chars": 991,
    "preview": "#ifndef HISTORYCHART_H\n#define HISTORYCHART_H\n\n#include <QWidget>\n#include <QDebug>\n#include <QtCharts>\n#include <QTimer"
  },
  {
    "path": "stacer/Pages/Resources/history_chart.ui",
    "chars": 2562,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>HistoryChart</class>\n <widget class=\"QWidget\" name=\"Hi"
  },
  {
    "path": "stacer/Pages/Resources/resources_page.cpp",
    "chars": 13901,
    "preview": " #include \"resources_page.h\"\n#include \"ui_resources_page.h\"\n#include \"utilities.h\"\n\nResourcesPage::~ResourcesPage()\n{\n  "
  },
  {
    "path": "stacer/Pages/Resources/resources_page.h",
    "chars": 1095,
    "preview": "#ifndef RESOURCESPAGE_H\n#define RESOURCESPAGE_H\n\n#include <QWidget>\n#include <QTimer>\n\n#include \"history_chart.h\"\n#inclu"
  },
  {
    "path": "stacer/Pages/Resources/resources_page.ui",
    "chars": 1907,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>ResourcesPage</class>\n <widget class=\"QWidget\" name=\"R"
  },
  {
    "path": "stacer/Pages/Search/search_page.cpp",
    "chars": 16890,
    "preview": "#include \"search_page.h\"\n#include \"ui_search_page.h\"\n#include <qdebug.h>\n#include <QClipboard>\n\nSearchPage::SearchPage(Q"
  },
  {
    "path": "stacer/Pages/Search/search_page.h",
    "chars": 1493,
    "preview": "#ifndef SEARCH_PAGE_H\n#define SEARCH_PAGE_H\n\n#include <QWidget>\n#include <QFileDialog>\n#include \"Managers/info_manager.h"
  },
  {
    "path": "stacer/Pages/Search/search_page.ui",
    "chars": 20460,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>SearchPage</class>\n <widget class=\"QWidget\" name=\"Sear"
  },
  {
    "path": "stacer/Pages/Services/service_item.cpp",
    "chars": 1262,
    "preview": "#include \"service_item.h\"\n#include \"ui_service_item.h\"\n#include \"utilities.h\"\n\nServiceItem::~ServiceItem()\n{\n    delete "
  },
  {
    "path": "stacer/Pages/Services/service_item.h",
    "chars": 592,
    "preview": "#ifndef SERVICE_ITEM_H\n#define SERVICE_ITEM_H\n\n#include <QWidget>\n#include <QDebug>\n#include \"Managers/tool_manager.h\"\n\n"
  },
  {
    "path": "stacer/Pages/Services/service_item.ui",
    "chars": 4785,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>ServiceItem</class>\n <widget class=\"QWidget\" name=\"Ser"
  },
  {
    "path": "stacer/Pages/Services/services_page.cpp",
    "chars": 2370,
    "preview": "#include \"services_page.h\"\n#include \"ui_services_page.h\"\n#include \"service_item.h\"\n\n#include \"utilities.h\"\n#include <QtC"
  },
  {
    "path": "stacer/Pages/Services/services_page.h",
    "chars": 653,
    "preview": "#ifndef SERVICESPAGE_H\n#define SERVICESPAGE_H\n\n#include <QWidget>\n#include \"Managers/tool_manager.h\"\n\nnamespace Ui {\n   "
  },
  {
    "path": "stacer/Pages/Services/services_page.ui",
    "chars": 7868,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>ServicesPage</class>\n <widget class=\"QWidget\" name=\"Se"
  },
  {
    "path": "stacer/Pages/Settings/settings_page.cpp",
    "chars": 5504,
    "preview": "#include \"settings_page.h\"\n#include \"ui_settings_page.h\"\n#include \"Managers/info_manager.h\"\n#include \"utilities.h\"\n#incl"
  },
  {
    "path": "stacer/Pages/Settings/settings_page.h",
    "chars": 1049,
    "preview": "#ifndef SETTINGS_PAGE_H\n#define SETTINGS_PAGE_H\n\n#include <QWidget>\n#include <QMapIterator>\n\n#include \"Managers/app_mana"
  },
  {
    "path": "stacer/Pages/Settings/settings_page.ui",
    "chars": 13024,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>SettingsPage</class>\n <widget class=\"QWidget\" name=\"Se"
  },
  {
    "path": "stacer/Pages/StartupApps/startup_app.cpp",
    "chars": 1985,
    "preview": "#include \"startup_app.h\"\n#include \"ui_startup_app.h\"\n#include \"utilities.h\"\n\nStartupApp::~StartupApp()\n{\n    delete ui;\n"
  },
  {
    "path": "stacer/Pages/StartupApps/startup_app.h",
    "chars": 1010,
    "preview": "#ifndef STARTUP_APP_H\n#define STARTUP_APP_H\n\n#include <QWidget>\n#include <QDebug>\n#include <QSharedPointer>\n#include <Ut"
  },
  {
    "path": "stacer/Pages/StartupApps/startup_app.ui",
    "chars": 5100,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>StartupApp</class>\n <widget class=\"QWidget\" name=\"Star"
  },
  {
    "path": "stacer/Pages/StartupApps/startup_app_edit.cpp",
    "chars": 3554,
    "preview": "#include \"startup_app_edit.h\"\n#include \"ui_startup_app_edit.h\"\n#include \"utilities.h\"\n#include <QDebug>\n#include <QStyle"
  },
  {
    "path": "stacer/Pages/StartupApps/startup_app_edit.h",
    "chars": 969,
    "preview": "#ifndef STARTUP_APP_EDIT_H\n#define STARTUP_APP_EDIT_H\n\n#include <QDialog>\n#include <QDesktopWidget>\n\n#include \"Managers/"
  },
  {
    "path": "stacer/Pages/StartupApps/startup_app_edit.ui",
    "chars": 3299,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>StartupAppEdit</class>\n <widget class=\"QDialog\" name=\""
  },
  {
    "path": "stacer/Pages/StartupApps/startup_apps_page.cpp",
    "chars": 4030,
    "preview": "#include \"startup_apps_page.h\"\n#include \"ui_startup_apps_page.h\"\n#include \"utilities.h\"\n\nStartupAppsPage::~StartupAppsPa"
  },
  {
    "path": "stacer/Pages/StartupApps/startup_apps_page.h",
    "chars": 860,
    "preview": "#ifndef STARTUPAPPSPAGE_H\n#define STARTUPAPPSPAGE_H\n\n#include <QWidget>\n#include <QDebug>\n#include <QSharedPointer>\n#inc"
  },
  {
    "path": "stacer/Pages/StartupApps/startup_apps_page.ui",
    "chars": 7678,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>StartupAppsPage</class>\n <widget class=\"QWidget\" name="
  },
  {
    "path": "stacer/Pages/SystemCleaner/byte_tree_widget.cpp",
    "chars": 638,
    "preview": "#include \"byte_tree_widget.h\"\n\nvoid ByteTreeWidget::setValues(const QString &text, const quint64 &size, const QVariant &"
  },
  {
    "path": "stacer/Pages/SystemCleaner/byte_tree_widget.h",
    "chars": 515,
    "preview": "#ifndef BYTE_TREE_WIDGET_H\n#define BYTE_TREE_WIDGET_H\n\n#include <QTreeWidgetItem>\n#include <QWidget>\n\n#include <Utils/fo"
  },
  {
    "path": "stacer/Pages/SystemCleaner/system_cleaner_page.cpp",
    "chars": 11608,
    "preview": "#include \"system_cleaner_page.h\"\n#include \"ui_system_cleaner_page.h\"\n#include \"byte_tree_widget.h\"\n\nSystemCleanerPage::"
  },
  {
    "path": "stacer/Pages/SystemCleaner/system_cleaner_page.h",
    "chars": 1672,
    "preview": "#ifndef SYSTEMCLEANERPAGE_H\n#define SYSTEMCLEANERPAGE_H\n\n#include <QWidget>\n#include <QTreeWidgetItem>\n#include <QMap>\n#"
  },
  {
    "path": "stacer/Pages/SystemCleaner/system_cleaner_page.ui",
    "chars": 26797,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>SystemCleanerPage</class>\n <widget class=\"QWidget\" nam"
  },
  {
    "path": "stacer/Pages/Uninstaller/uninstaller_page.cpp",
    "chars": 6468,
    "preview": "#include \"uninstaller_page.h\"\n#include \"ui_uninstallerpage.h\"\n#include <QMovie>\n#include \"utilities.h\"\n\nUninstallerPage:"
  },
  {
    "path": "stacer/Pages/Uninstaller/uninstaller_page.h",
    "chars": 1061,
    "preview": "#ifndef UNINSTALLERPAGE_H\n#define UNINSTALLERPAGE_H\n\n#include <QWidget>\n#include <QListWidgetItem>\n#include <QtConcurren"
  },
  {
    "path": "stacer/Pages/Uninstaller/uninstallerpage.ui",
    "chars": 13596,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>UninstallerPage</class>\n <widget class=\"QWidget\" name="
  },
  {
    "path": "stacer/app.cpp",
    "chars": 7322,
    "preview": "#include \"app.h\"\n#include \"ui_app.h\"\n#include \"utilities.h\"\n#include <QStyle>\n#include <QDebug>\n\nApp::~App()\n{\n    delet"
  },
  {
    "path": "stacer/app.h",
    "chars": 2551,
    "preview": "#ifndef APP_H\n#define APP_H\n\n#include <QMainWindow>\n\n#include \"sliding_stacked_widget.h\"\n#include \"Managers/app_manager."
  },
  {
    "path": "stacer/app.ui",
    "chars": 16248,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>App</class>\n <widget class=\"QMainWindow\" name=\"App\">\n "
  },
  {
    "path": "stacer/feedback.cpp",
    "chars": 3290,
    "preview": "#include \"feedback.h\"\n#include \"ui_feedback.h\"\n#include \"Utils/command_util.h\"\n\n#include <QJsonDocument>\n#include <QJson"
  },
  {
    "path": "stacer/feedback.h",
    "chars": 690,
    "preview": "#ifndef FEEDBACK_H\n#define FEEDBACK_H\n\n#include <QDialog>\n\nnamespace Ui {\nclass Feedback;\n}\n\nclass Feedback : public QDi"
  },
  {
    "path": "stacer/feedback.ui",
    "chars": 3429,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>Feedback</class>\n <widget class=\"QDialog\" name=\"Feedba"
  },
  {
    "path": "stacer/main.cpp",
    "chars": 2684,
    "preview": "\n#include <QApplication>\n#include <QSplashScreen>\n#include <QDebug>\n#include <QFontDatabase>\n\n#include \"app.h\"\n\nvoid mes"
  },
  {
    "path": "stacer/signal_mapper.cpp",
    "chars": 201,
    "preview": "#include \"signal_mapper.h\"\n\nSignalMapper *SignalMapper::instance = nullptr;\n\nSignalMapper* SignalMapper::ins()\n{\n    if "
  },
  {
    "path": "stacer/signal_mapper.h",
    "chars": 343,
    "preview": "#ifndef SIGNAL_MAPPER_H\n#define SIGNAL_MAPPER_H\n\n#include <QObject>\n\nclass SignalMapper : public QObject\n{\n    Q_OBJECT\n"
  },
  {
    "path": "stacer/sliding_stacked_widget.cpp",
    "chars": 3940,
    "preview": "#include \"sliding_stacked_widget.h\"\n\nSlidingStackedWidget::SlidingStackedWidget(QWidget *parent)\n    : QStackedWidget(pa"
  },
  {
    "path": "stacer/sliding_stacked_widget.h",
    "chars": 1200,
    "preview": "#ifndef SLIDINGSTACKEDWIDGET_H\n#define SLIDINGSTACKEDWIDGET_H\n\n#include <QStackedWidget>\n\n#include <QtGui>\n#include <QWi"
  },
  {
    "path": "stacer/stacer.pro",
    "chars": 5451,
    "preview": "\nQT       += core gui charts svg concurrent\n\ngreaterThan(QT_MAJOR_VERSION, 4): QT += widgets\n\nTARGET = stacer\nTEMPLATE ="
  },
  {
    "path": "stacer/static/languages.json",
    "chars": 927,
    "preview": "[\n\t{\"value\" : \"ar\", \"text\": \"العربية\"},\n\t{\"value\" : \"ca-es\", \"text\": \"Català\"},\n\t{\"value\" : \"cs\", \"text\": \"Čeština\"},\n\t{"
  },
  {
    "path": "stacer/static/themes/default/style/style.qss",
    "chars": 19631,
    "preview": "/****** DEFAULT THEME ******/\n\n/*****************\n    QScrollArea\n******************/\nQScrollArea {\n    border: 0;\n}\n\nQS"
  },
  {
    "path": "stacer/static/themes/default/style/values.ini",
    "chars": 432,
    "preview": "@pageContent=#1b252f\n@sidebar=#15191c\n@circleChartBackgroundColor=#212f3c\n@historyChartBackgroundColor=#212f3c\n@chartLab"
  },
  {
    "path": "stacer/static/themes/light/style/style.qss",
    "chars": 19070,
    "preview": "/****** LIGHT THEME ******/\n\n/****************\n    SCROLL BAR\n*****************/\nQScrollArea {\n    border: 0;\n}\n\nQScroll"
  },
  {
    "path": "stacer/static/themes/light/style/values.ini",
    "chars": 347,
    "preview": "@pageContent=#ecf0f1\n@sidebar=#15191c\n@circleChartBackgroundColor=#ffffff\n@historyChartBackgroundColor=#ffffff\n@chartLab"
  },
  {
    "path": "stacer/static/themes.json",
    "chars": 85,
    "preview": "[\n\t{\"value\" : \"default\", \"text\": \"Default\"},\n\t{\"value\" : \"light\", \"text\": \"Light\"}\n]\n"
  },
  {
    "path": "stacer/static.qrc",
    "chars": 4731,
    "preview": "<RCC>\n    <qresource prefix=\"/\">\n        <file>static/themes/default/style/style.qss</file>\n        <file>static/themes/"
  },
  {
    "path": "stacer/utilities.h",
    "chars": 1156,
    "preview": "#ifndef UTILITIES_H\n#define UTILITIES_H\n\n#include <QWidget>\n#include <QGraphicsDropShadowEffect>\n\nclass Utilities\n{\npubl"
  },
  {
    "path": "stacer-core/CMakeLists.txt",
    "chars": 534,
    "preview": "cmake_minimum_required(VERSION 3.1 FATAL_ERROR)\nproject(stacer-core)\n\ninclude_directories(\n  \"${CMAKE_CURRENT_SOURCE_DIR"
  },
  {
    "path": "stacer-core/Info/cpu_info.cpp",
    "chars": 4487,
    "preview": "#include \"cpu_info.h\"\n\n#include \"command_util.h\"\n\nint CpuInfo::getCpuPhysicalCoreCount() const\n{\n    static int count = "
  },
  {
    "path": "stacer-core/Info/cpu_info.h",
    "chars": 683,
    "preview": "#ifndef CPUINFO_H\n#define CPUINFO_H\n\n#include <QDebug>\n#include <QVector>\n\n#include \"Utils/file_util.h\"\n\n#define PROC_CP"
  },
  {
    "path": "stacer-core/Info/disk_info.cpp",
    "chars": 2290,
    "preview": "#include \"disk_info.h\"\n#include <QDebug>\n\nQList<Disk*> DiskInfo::getDisks() const\n{\n    return disks;\n}\n\nvoid DiskInfo::"
  },
  {
    "path": "stacer-core/Info/disk_info.h",
    "chars": 692,
    "preview": "#ifndef DISKINFO_H\n#define DISKINFO_H\n\n#include \"Utils/command_util.h\"\n#include \"Utils/file_util.h\"\n#include <QStorageIn"
  },
  {
    "path": "stacer-core/Info/memory_info.cpp",
    "chars": 1558,
    "preview": "#include \"memory_info.h\"\n#include <QDebug>\n\nMemoryInfo::MemoryInfo():\n    memTotal(0),\n    memFree(0),\n    memUsed(0)\n{ "
  },
  {
    "path": "stacer-core/Info/memory_info.h",
    "chars": 723,
    "preview": "#ifndef MEMORYINFO_H\n#define MEMORYINFO_H\n\n#include \"Utils/file_util.h\"\n\n#define PROC_MEMINFO \"/proc/meminfo\"\n\n#include "
  },
  {
    "path": "stacer-core/Info/network_info.cpp",
    "chars": 1166,
    "preview": "#include \"network_info.h\"\n#include <QDebug>\n\nNetworkInfo::NetworkInfo()\n{\n    for (const QNetworkInterface &net: QNetwor"
  },
  {
    "path": "stacer-core/Info/network_info.h",
    "chars": 532,
    "preview": "#ifndef NETWORK_INFO_H\n#define NETWORK_INFO_H\n\n#include <QtNetwork/QNetworkInterface>\n#include \"Utils/file_util.h\"\n#incl"
  },
  {
    "path": "stacer-core/Info/process.cpp",
    "chars": 1639,
    "preview": "#include \"process.h\"\n\npid_t Process::getPid() const\n{\n    return pid;\n}\n\nvoid Process::setPid(const pid_t &value)\n{\n    "
  },
  {
    "path": "stacer-core/Info/process.h",
    "chars": 1339,
    "preview": "#ifndef PROCESS_H\n#define PROCESS_H\n\n#include \"Utils/file_util.h\"\n\n#include \"stacer-core_global.h\"\n\nclass STACERCORESHAR"
  },
  {
    "path": "stacer-core/Info/process_info.cpp",
    "chars": 1786,
    "preview": "#include \"process_info.h\"\n\n#include <QDebug>\n\nvoid ProcessInfo::updateProcesses()\n{\n    processList.clear();\n\n    try {\n"
  },
  {
    "path": "stacer-core/Info/process_info.h",
    "chars": 423,
    "preview": "#ifndef PROCESS_INFO_H\n#define PROCESS_INFO_H\n\n#include <QObject>\n\n#include <Utils/file_util.h>\n#include <Utils/command_"
  },
  {
    "path": "stacer-core/Info/system_info.cpp",
    "chars": 3644,
    "preview": "#include \"system_info.h\"\n\n#include <QObject>\n#include <iostream>\n\nSystemInfo::SystemInfo()\n{\n    QString unknown(QObject"
  },
  {
    "path": "stacer-core/Info/system_info.h",
    "chars": 916,
    "preview": "#ifndef SYSTEMINFO_H\n#define SYSTEMINFO_H\n\n#include \"Utils/file_util.h\"\n#include \"Utils/format_util.h\"\n#include \"Utils/c"
  },
  {
    "path": "stacer-core/Tools/apt_source_tool.cpp",
    "chars": 3657,
    "preview": "#include \"apt_source_tool.h\"\n#include \"Utils/command_util.h\"\n#include \"Utils/file_util.h\"\n#include <QDebug>\n\nbool AptSou"
  },
  {
    "path": "stacer-core/Tools/apt_source_tool.h",
    "chars": 1097,
    "preview": "#ifndef AptSourceTool_H\n#define AptSourceTool_H\n\n#include \"Utils/command_util.h\"\n#include \"Utils/file_util.h\"\n#include <"
  },
  {
    "path": "stacer-core/Tools/gnome_schema.h",
    "chars": 4265,
    "preview": "#ifndef GNOMESCHEMA_H\n#define GNOMESCHEMA_H\n\nnamespace GSchemaPaths {\n    const QString Unity         = \"/org/compiz/pro"
  },
  {
    "path": "stacer-core/Tools/gnome_settings_tool.cpp",
    "chars": 3276,
    "preview": "#include \"gnome_settings_tool.h\"\n#include \"Utils/command_util.h\"\n#include <QDebug>\n\nbool GnomeSettingsTool::checkGSettin"
  },
  {
    "path": "stacer-core/Tools/gnome_settings_tool.h",
    "chars": 1502,
    "preview": "#ifndef GNOME_SETTINGS_TOOL_H\n#define GNOME_SETTINGS_TOOL_H\n\n#include <QVariant>\n#include \"gnome_schema.h\"\n\n#include \"st"
  },
  {
    "path": "stacer-core/Tools/package_tool.cpp",
    "chars": 4313,
    "preview": "#include \"package_tool.h\"\n\n#include <QDebug>\n\nconst PackageTool::PackageTools PackageTool::currentPackageTool =\n        "
  },
  {
    "path": "stacer-core/Tools/package_tool.h",
    "chars": 1113,
    "preview": "#ifndef PACKAGE_TOOL_H\n#define PACKAGE_TOOL_H\n\n#include <thread>\n\n#include \"Utils/command_util.h\"\n#include \"Utils/file_u"
  },
  {
    "path": "stacer-core/Tools/service_tool.cpp",
    "chars": 3144,
    "preview": "#include \"service_tool.h\"\n\n#include <QDebug>\n\nService::Service(const QString &name, const QString description, const boo"
  },
  {
    "path": "stacer-core/Tools/service_tool.h",
    "chars": 814,
    "preview": "#ifndef SERVICE_TOOL_H\n#define SERVICE_TOOL_H\n\n#include <Utils/command_util.h>\n\n#include \"stacer-core_global.h\"\n\nclass S"
  },
  {
    "path": "stacer-core/Utils/command_util.cpp",
    "chars": 1171,
    "preview": "#include \"command_util.h\"\n\n#include <QProcess>\n#include <QTextStream>\n#include <QStandardPaths>\n#include <QDebug>\n\n#incl"
  },
  {
    "path": "stacer-core/Utils/command_util.h",
    "chars": 461,
    "preview": "#ifndef COMMAND_UTIL_H\n#define COMMAND_UTIL_H\n\n#include <QStringList>\n\n#include \"stacer-core_global.h\"\n\nclass STACERCORE"
  },
  {
    "path": "stacer-core/Utils/file_util.cpp",
    "chars": 1584,
    "preview": "#include \"file_util.h\"\n\nFileUtil::FileUtil()\n{\n\n}\n\nQString FileUtil::readStringFromFile(const QString &path, const QIODe"
  },
  {
    "path": "stacer-core/Utils/file_util.h",
    "chars": 815,
    "preview": "#ifndef FILEUTIL_H\n#define FILEUTIL_H\n\n#include <QFile>\n#include <QDir>\n#include <QTextStream>\n#include <QDirIterator>\n#"
  },
  {
    "path": "stacer-core/Utils/format_util.cpp",
    "chars": 689,
    "preview": "#include \"format_util.h\"\n\n#include <QString>\n\nQString FormatUtil::formatBytes(const quint64 &bytes)\n{\n#define formatUnit"
  },
  {
    "path": "stacer-core/Utils/format_util.h",
    "chars": 390,
    "preview": "#ifndef FORMAT_UTIL_H\n#define FORMAT_UTIL_H\n\n#include \"stacer-core_global.h\"\n\nclass STACERCORESHARED_EXPORT FormatUtil\n{"
  },
  {
    "path": "stacer-core/stacer-core.pro",
    "chars": 1813,
    "preview": "#-------------------------------------------------\n#\n# Project created by QtCreator 2017-07-02T15:48:51\n#\n#-------------"
  },
  {
    "path": "stacer-core/stacer-core_global.h",
    "chars": 258,
    "preview": "#ifndef STACERCORE_GLOBAL_H\n#define STACERCORE_GLOBAL_H\n\n#include <QtCore/qglobal.h>\n\n#if defined(STACERCORE_LIBRARY)\n# "
  },
  {
    "path": "translations/stacer_ar.ts",
    "chars": 54528,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"ar_SY\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_ca-es.ts",
    "chars": 54457,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"ca_ES\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_cs.ts",
    "chars": 53855,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"de_DE\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_de.ts",
    "chars": 54043,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"de_DE\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_en.ts",
    "chars": 54272,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"en_US\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_es.ts",
    "chars": 54352,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"es_ES\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_fr.ts",
    "chars": 54514,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"fr_FR\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_gl.ts",
    "chars": 58557,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"en_US\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_hi.ts",
    "chars": 54022,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"hi_IN\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_hu.ts",
    "chars": 54183,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"hu_HU\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_it.ts",
    "chars": 54330,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"it_IT\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_kn.ts",
    "chars": 54283,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"kn_IN\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_ko.ts",
    "chars": 55417,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"ko_KR\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_ml.ts",
    "chars": 55122,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"ml_IN\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_nl.ts",
    "chars": 54023,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"nl_NL\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_oc.ts",
    "chars": 54318,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"oc_FR\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_pl.ts",
    "chars": 54108,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"pl_PL\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_pt.ts",
    "chars": 54301,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"pt_PT\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_ro.ts",
    "chars": 54065,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"ro_RO\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_ru.ts",
    "chars": 53872,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"ru_RU\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_sv.ts",
    "chars": 67024,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"sv_SE\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_tr.ts",
    "chars": 53494,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"tr_TR\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_ua.ts",
    "chars": 17585,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"uk_UA\">\n<context>\n    <name>App</name>\n"
  },
  {
    "path": "translations/stacer_vn.ts",
    "chars": 17609,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"vi_VN\">\n<context>\n    <name>App</name>\n"
  },
  {
    "path": "translations/stacer_zh-cn.ts",
    "chars": 54185,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"zh_CN\">\n<context>\n    <name>APTSourceEd"
  },
  {
    "path": "translations/stacer_zh-tw.ts",
    "chars": 16910,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"zh_TW\">\n<context>\n    <name>App</name>\n"
  }
]

About this extraction

This page contains the full source code of the oguzhaninan/Stacer GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 191 files (1.9 MB), approximately 479.6k tokens, and a symbol index with 173 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!