-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improved code base by using PVS Studio static code analyzer. * Fixed several issues reported by PVS Studio static analyzer. * Added tk::Menu::showmp method to show menu at current mouse cursor's position as a window transient for specified widget. * Updated module versions in dependencies.
- Loading branch information
Showing
89 changed files
with
779 additions
and
768 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2023 Vladimir Sadovnikov <[email protected]> | ||
* | ||
* This file is part of lsp-tk-lib | ||
* Created on: 16 мая 2020 г. | ||
|
@@ -39,10 +39,6 @@ namespace lsp | |
*/ | ||
class Allocation: public Flags | ||
{ | ||
private: | ||
Allocation & operator = (const Allocation &); | ||
Allocation(const Allocation &); | ||
|
||
protected: | ||
static const char * const FLAGS[]; | ||
|
||
|
@@ -62,7 +58,12 @@ namespace lsp | |
atom_t vAtoms[F_TOTAL]; | ||
|
||
protected: | ||
inline Allocation(prop::Listener *listener = NULL): Flags(FLAGS, vAtoms, listener) {} | ||
Allocation(prop::Listener *listener = NULL); | ||
Allocation(const Allocation &) = delete; | ||
Allocation(Allocation &&) = delete; | ||
|
||
Allocation & operator = (const Allocation &) = delete; | ||
Allocation & operator = (Allocation &&) = delete; | ||
|
||
public: | ||
inline bool hfill() const { return Flags::get(F_HFILL); } | ||
|
@@ -119,7 +120,7 @@ namespace lsp | |
*/ | ||
inline status_t unbind() { return tk::Allocation::unbind(); }; | ||
}; | ||
} | ||
} /* namespace prop */ | ||
|
||
} /* namespace tk */ | ||
} /* namespace lsp */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2023 Vladimir Sadovnikov <[email protected]> | ||
* | ||
* This file is part of lsp-tk-lib | ||
* Created on: 8 мая 2020 г. | ||
|
@@ -35,15 +35,16 @@ namespace lsp | |
|
||
class WindowActions: public BitEnum | ||
{ | ||
private: | ||
WindowActions & operator = (const WindowActions &); | ||
WindowActions(const WindowActions &); | ||
|
||
protected: | ||
static const prop::enum_t ENUM[]; | ||
|
||
protected: | ||
explicit WindowActions(prop::Listener *listener = NULL): BitEnum(ENUM, listener) {}; | ||
WindowActions(const WindowActions &) = delete; | ||
WindowActions(WindowActions &&) = delete; | ||
|
||
WindowActions & operator = (const WindowActions &) = delete; | ||
WindowActions & operator = (WindowActions &&) = delete; | ||
|
||
public: | ||
inline bool allowed(ws::window_action_t wa) const { return nValue & wa; } | ||
|
@@ -128,9 +129,9 @@ namespace lsp | |
*/ | ||
inline status_t unbind() { return tk::WindowActions::unbind(); }; | ||
}; | ||
} | ||
} | ||
} | ||
} /* namespace prop */ | ||
} /* namespace tk */ | ||
} /* namespace lsp */ | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2023 Vladimir Sadovnikov <[email protected]> | ||
* | ||
* This file is part of lsp-tk-lib | ||
* Created on: 7 мая 2020 г. | ||
|
@@ -35,10 +35,6 @@ namespace lsp | |
*/ | ||
class Boolean: public SimpleProperty | ||
{ | ||
private: | ||
Boolean & operator = (const Boolean &); | ||
Boolean(const Boolean &); | ||
|
||
protected: | ||
bool bValue; | ||
|
||
|
@@ -48,8 +44,13 @@ namespace lsp | |
|
||
protected: | ||
explicit Boolean(prop::Listener *listener = NULL); | ||
Boolean(const Boolean &) = delete; | ||
Boolean(Boolean &&) = delete; | ||
virtual ~Boolean(); | ||
|
||
Boolean & operator = (const Boolean &) = delete; | ||
Boolean & operator = (Boolean &&) = delete; | ||
|
||
public: | ||
/** | ||
* Get value of the boolean property | ||
|
@@ -127,7 +128,7 @@ namespace lsp | |
|
||
inline void listener(prop::Listener *listener) { pListener = listener; } | ||
}; | ||
} | ||
} /* namespace prop */ | ||
|
||
} /* namespace tk */ | ||
} /* namespace lsp */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2023 Vladimir Sadovnikov <[email protected]> | ||
* | ||
* This file is part of lsp-tk-lib | ||
* Created on: 9 окт. 2019 г. | ||
|
@@ -35,10 +35,6 @@ namespace lsp | |
*/ | ||
class Float: public SimpleProperty | ||
{ | ||
private: | ||
Float & operator = (const Float &); | ||
Float(const Float &); | ||
|
||
protected: | ||
float fValue; | ||
|
||
|
@@ -48,8 +44,13 @@ namespace lsp | |
|
||
protected: | ||
explicit Float(prop::Listener *listener = NULL); | ||
Float(const Float &) = delete; | ||
Float(Float &&) = delete; | ||
virtual ~Float(); | ||
|
||
Float & operator = (const Float &) = delete; | ||
Float & operator = (Float &&) = delete; | ||
|
||
public: | ||
/** | ||
* Get value of the float property | ||
|
@@ -109,7 +110,7 @@ namespace lsp | |
|
||
inline void listener(prop::Listener *listener) { pListener = listener; } | ||
}; | ||
} | ||
} /* namespace prop */ | ||
|
||
} /* namespace tk */ | ||
} /* namespace lsp */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2023 Vladimir Sadovnikov <[email protected]> | ||
* | ||
* This file is part of lsp-tk-lib | ||
* Created on: 6 мая 2020 г. | ||
|
@@ -31,26 +31,26 @@ namespace lsp | |
namespace tk | ||
{ | ||
/** | ||
* Integering property interface | ||
* Integer property interface | ||
*/ | ||
class Integer: public SimpleProperty | ||
{ | ||
private: | ||
Integer & operator = (const Integer &); | ||
Integer(const Integer &); | ||
|
||
protected: | ||
ssize_t nValue; | ||
Listener sListener; | ||
|
||
protected: | ||
virtual void commit(atom_t property); | ||
virtual void push(); | ||
|
||
protected: | ||
explicit Integer(prop::Listener *listener = NULL); | ||
Integer(const Integer &) = delete; | ||
Integer(Integer &&) = delete; | ||
virtual ~Integer(); | ||
|
||
Integer & operator = (const Integer &) = delete; | ||
Integer & operator = (Integer &&) = delete; | ||
|
||
public: | ||
/** | ||
* Get value of the float property | ||
|
@@ -107,7 +107,7 @@ namespace lsp | |
|
||
inline void listener(prop::Listener *listener) { pListener = listener; } | ||
}; | ||
} | ||
} /* namespace prop */ | ||
|
||
} /* namespace tk */ | ||
} /* namespace lsp */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.