mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-10 04:58:16 +03:00
Fix minor typos
Summary: Fix minor typos in messages and comments Test Plan: No major changes to prevent compilation and usage Reviewers: mvourlakos Reviewed By: mvourlakos Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D17894
This commit is contained in:
parent
6b3d0933ce
commit
8d7110f761
@ -828,7 +828,7 @@ void Corona::alternativesVisibilityChanged(bool visible)
|
||||
void Corona::loadDefaultLayout()
|
||||
{
|
||||
qDebug() << "loading default layout";
|
||||
//! Settting mutable for create a containment
|
||||
//! Setting mutable for create a containment
|
||||
setImmutability(Plasma::Types::Mutable);
|
||||
QVariantList args;
|
||||
auto defaultContainment = createContainmentDelayed("org.kde.latte.containment", args);
|
||||
|
@ -195,7 +195,7 @@ void Layout::initToCorona(Latte::Corona *corona)
|
||||
}
|
||||
}
|
||||
|
||||
qDebug() << "Layout ::::: " << name() << " added contaiments ::: " << m_containments.size();
|
||||
qDebug() << "Layout ::::: " << name() << " added containments ::: " << m_containments.size();
|
||||
|
||||
connect(m_corona->universalSettings(), &UniversalSettings::canDisableBordersChanged, this, [&]() {
|
||||
if (m_corona->universalSettings()->canDisableBorders()) {
|
||||
@ -282,7 +282,7 @@ void Layout::setDisableBordersForMaximizedWindows(bool disable)
|
||||
|
||||
bool Layout::kwin_disabledMaximizedBorders() const
|
||||
{
|
||||
//! Indentify Plasma Desktop version
|
||||
//! Identify Plasma Desktop version
|
||||
QProcess process;
|
||||
process.start("kreadconfig5 --file kwinrc --group Windows --key BorderlessMaximizedWindows");
|
||||
process.waitForFinished();
|
||||
@ -618,7 +618,7 @@ bool Layout::layoutIsBroken() const
|
||||
}
|
||||
}
|
||||
|
||||
qDebug() << "Contaiments :: " << conts;
|
||||
qDebug() << "Containments :: " << conts;
|
||||
qDebug() << "Applets :: " << applets;
|
||||
|
||||
foreach (QString c, conts) {
|
||||
@ -1031,7 +1031,7 @@ void Layout::copyView(Plasma::Containment *containment)
|
||||
return;
|
||||
|
||||
qDebug() << "copying containment layout";
|
||||
//! Settting mutable for create a containment
|
||||
//! Setting mutable for create a containment
|
||||
m_corona->setImmutability(Plasma::Types::Mutable);
|
||||
|
||||
QString temp1File = QDir::homePath() + "/.config/lattedock.copy1.bak";
|
||||
@ -1204,14 +1204,14 @@ void Layout::importToCorona()
|
||||
return;
|
||||
}
|
||||
|
||||
//! Settting mutable for create a containment
|
||||
//! Setting mutable for create a containment
|
||||
m_corona->setImmutability(Plasma::Types::Mutable);
|
||||
|
||||
QString temp1FilePath = QDir::homePath() + "/.config/lattedock.copy1.bak";
|
||||
//! we need to copy first the layout file because the kde cache
|
||||
//! may not have yet been updated (KSharedConfigPtr)
|
||||
//! this way we make sure at the latest changes stored in the layout file
|
||||
//! will be also available when changing to Myltiple Layouts
|
||||
//! will be also available when changing to Multiple Layouts
|
||||
QString tempLayoutFilePath = QDir::homePath() + "/.config/lattedock.layout.bak";
|
||||
|
||||
//! WE NEED A WAY TO COPY A CONTAINMENT!!!!
|
||||
@ -1373,7 +1373,7 @@ QString Layout::newUniqueIdsLayoutFromFile(QString file)
|
||||
|
||||
qDebug() << "FIXED FULL ASSIGNMENTS ::: " << assigned;
|
||||
|
||||
//! update applet ids in their contaiment order and in MultipleLayouts update also the layoutId
|
||||
//! update applet ids in their containment order and in MultipleLayouts update also the layoutId
|
||||
foreach (auto cId, investigate_conts.groupList()) {
|
||||
//! Update (appletOrder) and (lockedZoomApplets)
|
||||
for (int i = 1; i <= 2; ++i) {
|
||||
|
@ -107,7 +107,7 @@ public:
|
||||
|
||||
QStringList activities();
|
||||
QStringList runningActivities();
|
||||
QStringList orphanedActivities(); //! These are activities that havent been assigned to specific layout
|
||||
QStringList orphanedActivities(); //! These are activities that haven't been assigned to specific layout
|
||||
|
||||
void importDefaultLayout(bool newInstanceIfPresent = false);
|
||||
void importPresets(bool includeDefault = false);
|
||||
|
@ -873,7 +873,7 @@ void SettingsDialog::loadSettings()
|
||||
Layout multipleHiddenLayouts(this, multipleLayoutPath, "Multiple Layouts File");
|
||||
|
||||
if (multipleHiddenLayouts.layoutIsBroken()) {
|
||||
qDebug() << "Intergrity Error ::: Multiple Layouts Hidden file is broken!!!!";
|
||||
qDebug() << "Integrity Error ::: Multiple Layouts Hidden file is broken!!!!";
|
||||
brokenLayouts.append(multipleHiddenLayouts.name());
|
||||
}
|
||||
}*/
|
||||
|
@ -331,7 +331,7 @@ void UniversalSettings::setAutostart(bool state)
|
||||
emit autostartChanged();
|
||||
} else if (state && metaFile.exists()) {
|
||||
metaFile.copy(autostartFile.fileName());
|
||||
//! I havent added the flag "OnlyShowIn=KDE;" into the autostart file
|
||||
//! I haven't added the flag "OnlyShowIn=KDE;" into the autostart file
|
||||
//! because I fall onto a Plasma 5.8 case that this flag
|
||||
//! didn't let the plasma desktop to start
|
||||
emit autostartChanged();
|
||||
|
@ -201,7 +201,7 @@ void Effects::setMask(QRect area)
|
||||
//! the correct way for the mask to be painted in order for
|
||||
//! rounded corners to be shown correctly
|
||||
//! the enabledBorders check was added because there was cases
|
||||
//! that the mask region wasnt calculated correctly after location changes
|
||||
//! that the mask region wasn't calculated correctly after location changes
|
||||
if (!m_background || m_background->enabledBorders() != m_enabledBorders) {
|
||||
m_background = new Plasma::FrameSvg(this);
|
||||
}
|
||||
|
@ -41,12 +41,12 @@ namespace ViewPart {
|
||||
//! What is the importance of this class?
|
||||
//!
|
||||
//! Plasma is activating the screen edges for the main panel window
|
||||
//! unfortunately this isnt possible for the Latte case.
|
||||
//! unfortunately this isn't possible for the Latte case.
|
||||
//! When a window is hidden at an edge it becomes NOT visible
|
||||
//! unfortunately that means that all the animations are
|
||||
//! stopped (Qt behaviour) and that creates confusion to the user after the window
|
||||
//! reappears because various animations are played (adding-removing tasks/launchers)
|
||||
//! that arent relevant any more.
|
||||
//! that aren't relevant any more.
|
||||
//!
|
||||
//! In order to workaround the above behaviour Latte is using a
|
||||
//! fake window to communicate with KWin and the MAIN Latte::View window
|
||||
|
@ -63,7 +63,7 @@ View::View(Plasma::Corona *corona, QScreen *targetScreen, bool byPassWM)
|
||||
: PlasmaQuick::ContainmentView(corona),
|
||||
m_contextMenu(new ViewPart::ContextMenu(this)),
|
||||
m_effects(new ViewPart::Effects(this)),
|
||||
m_positioner(new ViewPart::Positioner(this)) //needs to be created after Effects becuase it catches some of its signals
|
||||
m_positioner(new ViewPart::Positioner(this)) //needs to be created after Effects because it catches some of its signals
|
||||
{
|
||||
setTitle(corona->kPackage().metadata().name());
|
||||
setIcon(qGuiApp->windowIcon());
|
||||
@ -155,7 +155,7 @@ View::~View()
|
||||
delete m_contextMenu;
|
||||
}
|
||||
|
||||
//needs to be deleted before Effects becuase it catches some of its signals
|
||||
//needs to be deleted before Effects because it catches some of its signals
|
||||
if (m_positioner) {
|
||||
delete m_positioner;
|
||||
}
|
||||
@ -354,7 +354,7 @@ void View::showConfigurationInterface(Plasma::Applet *applet)
|
||||
//m_configView.data()->show();
|
||||
} else {
|
||||
//add a timer for showing the configuration window the first time it is
|
||||
//created in order to give the containmnent's layouts the time to
|
||||
//created in order to give the containment's layouts the time to
|
||||
//calculate the window's height
|
||||
if (!KWindowSystem::isPlatformWayland()) {
|
||||
QTimer::singleShot(150, m_configView, SLOT(show()));
|
||||
@ -386,7 +386,7 @@ void View::updateAbsDockGeometry(bool bypassChecks)
|
||||
{
|
||||
//! there was a -1 in height and width here. The reason of this
|
||||
//! if I remember correctly was related to multi-screen but I cant
|
||||
//! remember exactly the reason, something related to rigth edge in
|
||||
//! remember exactly the reason, something related to right edge in
|
||||
//! multi screen environment. BUT this was breaking the entire AlwaysVisible
|
||||
//! experience with struts. Removing them in order to restore correct
|
||||
//! behavior and keeping this comment in order to check for
|
||||
|
@ -498,14 +498,14 @@ void VisibilityManager::dodgeActive(WindowId wid)
|
||||
winfo = wm->requestInfo(wm->activeWindow());
|
||||
|
||||
if (!winfo.isValid()) {
|
||||
//! very rare case that window manager doesnt have any active window at all
|
||||
//! very rare case that window manager doesn't have any active window at all
|
||||
raiseView(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//! don't send false raiseView signal when containing mouse, // Johan comment
|
||||
//! I dont know why that wasnt winfo.wid() //active window, but just wid//the window that made the call
|
||||
//! I don't know why that wasn't winfo.wid() //active window, but just wid//the window that made the call
|
||||
if (wm->isOnCurrentDesktop(winfo.wid()) && wm->isOnCurrentActivity(winfo.wid())) {
|
||||
bool overlaps{intersects(winfo)};
|
||||
raiseView(!overlaps);
|
||||
@ -529,7 +529,7 @@ void VisibilityManager::dodgeMaximized(WindowId wid)
|
||||
winfo = wm->requestInfo(wm->activeWindow());
|
||||
|
||||
if (!winfo.isValid()) {
|
||||
//! very rare case that window manager doesnt have any active window at all
|
||||
//! very rare case that window manager doesn't have any active window at all
|
||||
raiseView(true);
|
||||
return;
|
||||
}
|
||||
@ -548,7 +548,7 @@ void VisibilityManager::dodgeMaximized(WindowId wid)
|
||||
};
|
||||
|
||||
//! don't send false raiseView signal when containing mouse, // Johan comment
|
||||
//! I dont know why that wasnt winfo.wid() //active window, but just wid//the window that made the call
|
||||
//! I don't know why that wasn't winfo.wid() //active window, but just wid//the window that made the call
|
||||
if (wm->isOnCurrentDesktop(winfo.wid()) && wm->isOnCurrentActivity(winfo.wid())) {
|
||||
bool overlapsMaximized{m_latteView->formFactor() == Plasma::Types::Vertical ? intersectsMaxHoriz() : intersectsMaxVert()};
|
||||
raiseView(!overlapsMaximized);
|
||||
|
@ -415,7 +415,7 @@ void XWindowInterface::windowChangedProxy(WId wid, NET::Properties prop1, NET::P
|
||||
return;
|
||||
}
|
||||
|
||||
//! accepty only the following NET:Properties changed signals
|
||||
//! accept only the following NET:Properties changed signals
|
||||
//! NET::WMState, NET::WMGeometry, NET::ActiveWindow
|
||||
if (!((prop1 & NET::WMState) || (prop1 & NET::WMGeometry) || (prop1 & NET::ActiveWindow))) {
|
||||
return;
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
//! applets that havent identified properly their Latte behavior and
|
||||
//! applets that haven't identified properly their Latte behavior and
|
||||
//! create broken results when used in Latte
|
||||
var blacklistedApplets = [];
|
||||
|
||||
|
@ -418,7 +418,7 @@ Item {
|
||||
Communicator.Engine{
|
||||
id: communicator
|
||||
|
||||
//set up the overlaied containers and properties for when a overlaiedIconItem must be presented to the user
|
||||
//set up the overlayed containers and properties for when a overlaiedIconItem must be presented to the user
|
||||
//because the plasma widgets specific implementation breaks the Latte experience
|
||||
onOverlayLatteIconIsActiveChanged:{
|
||||
if (!overlayLatteIconIsActive && applet.opacity===0) {
|
||||
|
@ -768,7 +768,7 @@ Item{
|
||||
|
||||
var distanceFromHovered = Math.abs(index - layoutsContainer.hoveredIndex);
|
||||
|
||||
// A new algorithm tryig to make the zoom calculation only once
|
||||
// A new algorithm trying to make the zoom calculation only once
|
||||
// and at the same time fixing glitches
|
||||
if ((distanceFromHovered == 0)&&
|
||||
(currentMousePosition > 0) ){
|
||||
|
@ -39,7 +39,7 @@ Item{
|
||||
// NAME: palette
|
||||
// USAGE: read-only
|
||||
// EXPLANATION: Latte updates it to its coloring palette in order for the applet
|
||||
// to take resposibility of its coloring.
|
||||
// to take responsibility of its coloring.
|
||||
// USE CASE: when Latte is transparent and applets colors need to be adjusted in order
|
||||
// to look consistent with the underlying desktop background
|
||||
// @since: 0.9
|
||||
@ -75,7 +75,7 @@ Item{
|
||||
// USAGE: writable through actions.setProperty
|
||||
// EXPLANATION: when is TRUE, Latte is not overlaying any icons above
|
||||
// the applet or alters the applet visual in any sense.
|
||||
// That means that the applet is responsible to provide a conherent
|
||||
// That means that the applet is responsible to provide a coherent
|
||||
// parabolic effect experience.
|
||||
// @since: 0.9
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ DragDrop.DropArea {
|
||||
: (layoutsContainer.hoveredIndex !== -1) //|| wholeArea.containsMouse
|
||||
property bool mouseWheelActions: plasmoid.configuration.mouseWheelActions
|
||||
property bool normalState : false
|
||||
property bool onlyAddingStarup: true //is used for the initialization phase in startup where there arent removals, this variable provides a way to grow icon size
|
||||
property bool onlyAddingStarup: true //is used for the initialization phase in startup where there aren't removals, this variable provides a way to grow icon size
|
||||
property bool shrinkThickMargins: plasmoid.configuration.shrinkThickMargins
|
||||
property bool showAppletsNumbers: false
|
||||
property bool showMetaBadge: false
|
||||
@ -246,7 +246,7 @@ DragDrop.DropArea {
|
||||
|
||||
property int totalPanelEdgeSpacing: 0 //this is set by PanelBox
|
||||
//FIXME: this is not needed any more probably
|
||||
property int previousAllTasks: -1 //is used to forbit updateAutomaticIconSize when hovering
|
||||
property int previousAllTasks: -1 //is used to forbid updateAutomaticIconSize when hovering
|
||||
property int offset: {
|
||||
/*if (behaveAsPlasmaPanel) {
|
||||
return 0;
|
||||
@ -877,7 +877,7 @@ DragDrop.DropArea {
|
||||
applet.visible = true;
|
||||
|
||||
|
||||
// don't show applet if it choses to be hidden but still make it
|
||||
// don't show applet if it chooses to be hidden but still make it
|
||||
// accessible in the panelcontroller
|
||||
container.visible = Qt.binding(function() {
|
||||
return applet.status !== PlasmaCore.Types.HiddenStatus || (!plasmoid.immutable && plasmoid.userConfiguring)
|
||||
|
@ -93,7 +93,7 @@ uint QuickWindowSystem::makeVersion(uint major, uint minor, uint release) const
|
||||
|
||||
uint QuickWindowSystem::identifyPlasmaDesktopVersion()
|
||||
{
|
||||
//! Indentify Plasma Desktop version
|
||||
//! Identify Plasma Desktop version
|
||||
QProcess process;
|
||||
process.start("plasmashell", QStringList() << "-v");
|
||||
process.waitForFinished();
|
||||
|
@ -129,7 +129,7 @@ Item {
|
||||
// TODO: This restriction (minus the timer, which improves things)
|
||||
// has been proven out in the EITM fork, but could be improved later
|
||||
// by tracking the cursor movement vector and allowing the drag if
|
||||
// the movement direction has reversed, etablishing user intent to
|
||||
// the movement direction has reversed, establishing user intent to
|
||||
// move back.
|
||||
if (root.dragSource == null
|
||||
&& ignoredItem == above)
|
||||
|
@ -1005,7 +1005,7 @@ Item {
|
||||
onTriggered: inDraggingPhase = false;
|
||||
}
|
||||
|
||||
///Red Liner!!! show the upper needed limit for annimations
|
||||
///Red Liner!!! show the upper needed limit for animations
|
||||
Rectangle{
|
||||
anchors.horizontalCenter: !root.vertical ? parent.horizontalCenter : undefined
|
||||
anchors.verticalCenter: root.vertical ? parent.verticalCenter : undefined
|
||||
@ -1278,7 +1278,7 @@ Item {
|
||||
|
||||
Timer {
|
||||
id: iconGeometryTimer
|
||||
// INVESTIGATE: such big interval but unfortunately it doesnot work otherwise
|
||||
// INVESTIGATE: such big interval but unfortunately it does not work otherwise
|
||||
interval: 500
|
||||
repeat: false
|
||||
|
||||
|
@ -615,7 +615,7 @@ MouseArea{
|
||||
}*/
|
||||
}
|
||||
|
||||
// IMPORTANT: This must be improved ! even for small miliseconds it reduces performance
|
||||
// IMPORTANT: This must be improved ! even for small milliseconds it reduces performance
|
||||
onExited: {
|
||||
mainItemContainer.scalesUpdatedOnce = false;
|
||||
|
||||
@ -657,7 +657,7 @@ MouseArea{
|
||||
if(root.showPreviews && !windowsPreviewDlg.visible && windowsPreviewDlg.activeItem !== mainItemContainer){
|
||||
if (hoveredTimerObj) {
|
||||
//! don't delay showing preview in normal states,
|
||||
//! that is when the dock wasnt hidden
|
||||
//! that is when the dock wasn't hidden
|
||||
if (!hoveredTimerObj.running) {
|
||||
hoveredTimerObj.start();
|
||||
}
|
||||
@ -1471,14 +1471,14 @@ MouseArea{
|
||||
///Based on the animations, windows are shown directly, startups
|
||||
///are shown after 5secs of existence, and launchers after 200ms
|
||||
///for launchers this is set in order to give to a window the time
|
||||
///to desappear and then show the launcher...
|
||||
///to disappear and then show the launcher...
|
||||
|
||||
|
||||
// property int mainDelay: IsLauncher ? 800 : 400
|
||||
// property int mainDelay: icList.delayingRemoval ? 2*showWindowAnimation.speed : 450
|
||||
|
||||
//BE CAREFUL: this interval (e.g. 700ms) must be lower from the removal animation
|
||||
//duration e.g.(800ms) because there are situattions that because of this some
|
||||
//duration e.g.(800ms) because there are situations that because of this some
|
||||
//launchers delay A LOT to reappear, e.g google-chrome
|
||||
//I will blacklist google-chrome as I have not found any other case for this bug
|
||||
//to appear, but even this way there are cases that still appears...
|
||||
|
@ -48,7 +48,7 @@ Item{
|
||||
property bool firstDrawed: true
|
||||
property bool toBeDestroyed: false
|
||||
|
||||
// three intervals in order to create the necessarty buffers from the
|
||||
// three intervals in order to create the necessary buffers from the
|
||||
// PlasmaCore.IconItem, one big interval for the first creation of the
|
||||
// plasmoid, a second one for the first creation of a task and a small one
|
||||
// for simple updates.
|
||||
@ -196,7 +196,7 @@ Item{
|
||||
}
|
||||
|
||||
//! try to show the correct icon when a window is removed... libtaskmanager when a window is removed
|
||||
//! sends an unknow pixmap as icon
|
||||
//! sends an unknown pixmap as icon
|
||||
Connections {
|
||||
target: mainItemContainer
|
||||
onInRemoveStageChanged: {
|
||||
|
@ -22,7 +22,7 @@ import QtQuick 2.0
|
||||
import QtQml.Models 2.2
|
||||
|
||||
//trying to do a very simple thing to count how many windows does
|
||||
//a task instace has...
|
||||
//a task instance has...
|
||||
//Workaround the mess with launchers, startups, windows etc.
|
||||
|
||||
Item{
|
||||
|
@ -236,7 +236,7 @@ Item{
|
||||
|
||||
var distanceFromHovered = Math.abs(index - icList.hoveredIndex);
|
||||
|
||||
// A new algorithm tryig to make the zoom calculation only once
|
||||
// A new algorithm trying to make the zoom calculation only once
|
||||
// and at the same time fixing glitches
|
||||
if ((distanceFromHovered === 0) &&
|
||||
//! IMPORTANT: IS FIXING A BUG THAT NEGATIVE VALUES ARE SENT onEntered EVENT OF MOUSEAREA
|
||||
|
@ -105,7 +105,7 @@ SequentialAnimation {
|
||||
to: 1
|
||||
|
||||
//this duration must be a bit less than the bouncing animation. Otherwise the
|
||||
//smooth trasition between removals is breaking
|
||||
//smooth transition between removals is breaking
|
||||
duration: mainItemContainer.inBouncingAnimation && !mainItemContainer.isSeparator? 4*launcherSpeedStep + 50 : 0
|
||||
easing.type: Easing.InQuad
|
||||
|
||||
|
@ -139,13 +139,13 @@ PlasmaComponents.Page {
|
||||
Component.onCompleted: screenRow.updateScreens();
|
||||
|
||||
//they are used to restore the index when the screen edge
|
||||
//is occuppied
|
||||
//is occupied
|
||||
property bool acceptedIndex: true
|
||||
property int previousIndex: -1
|
||||
|
||||
onCurrentIndexChanged: {
|
||||
//it is used to restore the index when the screen edge
|
||||
//is occuppied
|
||||
//is occupied
|
||||
if (!acceptedIndex) {
|
||||
acceptedIndex = true;
|
||||
currentIndex = previousIndex;
|
||||
|
@ -232,7 +232,7 @@ PlasmaComponents.Page {
|
||||
checked: plasmoid.configuration.shadowColorType === Latte.Types.ThemeColorShadow
|
||||
checkable: true
|
||||
exclusiveGroup: shadowColorGroup
|
||||
tooltip: i18n("Shadow from theme color pallete")
|
||||
tooltip: i18n("Shadow from theme color palette")
|
||||
}
|
||||
|
||||
//overlayed button
|
||||
|
Loading…
x
Reference in New Issue
Block a user