22 tabData(
const std::wstring& text,
const std::filesystem::path& pathToImage,
const std::function<
void()>& callback);
24 tabData(
const std::wstring& text,
const std::filesystem::path& pathToImage,
const std::string& functionName,
const std::string& moduleName);
38 utility::ImagesHolder images;
39 std::vector<std::function<
void()>> callbacks;
43 virtual LRESULT windowMessagesHandle(HWND handle, UINT message, WPARAM wparam, LPARAM lparam,
bool& isUsed) override;
46 BaseTabControl(const std::wstring& tabControlName, const utility::ComponentSettings& settings, uint16_t imagesWidth, uint16_t imagesHeight,
BaseComposite* parent);
48 virtual LRESULT appendText(const std::wstring& text, const std::function<
void()>& onClick) final;
57 virtual LRESULT appendText(const std::wstring& text, const std::
string& functionName, const std::
string& moduleName) final;
59 virtual LRESULT insertText(
size_t index, const std::wstring& text, const std::function<
void()>& onClick) final;
69 virtual LRESULT insertText(
size_t index, const std::wstring& text, const std::
string& functionName, const std::
string& moduleName) final;
75 virtual LRESULT appendImage(const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
83 virtual LRESULT appendImage(const std::filesystem::path& pathToImage, const std::
string& functionName, const std::
string& moduleName) final;
90 virtual LRESULT insertImage(
size_t index, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
99 virtual LRESULT insertImage(
size_t index, const std::filesystem::path& pathToImage, const std::
string& functionName, const std::
string& moduleName) final;
106 virtual LRESULT appendTextAndImage(const std::wstring& text, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
115 virtual LRESULT appendTextAndImage(const std::wstring& text, const std::filesystem::path& pathToImage, const std::
string& functionName, const std::
string& moduleName) final;
123 virtual LRESULT insertTextAndImage(
size_t index, const std::wstring& text, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
133 virtual LRESULT insertTextAndImage(
size_t index, const std::wstring& text, const std::filesystem::path& pathToImage, const std::
string& functionName, const std::
string& moduleName) final;
135 virtual
bool removeTab(
size_t index) final;
137 virtual
bool clear() final;
139 virtual
size_t size() const final;
147 virtual
bool setItem(
size_t index, const std::function<
void()>& callback, const std::wstring& text = L"", const std::filesystem::path& pathToImage = L"") final;
159 virtual
bool setItem(
size_t index, const std::
string& functionName, const std::
string& moduleName, const std::wstring& text = L"", const std::filesystem::path& pathToImage = L"") final;
163 virtual LRESULT setSelection(
size_t index) final;
169 virtual const
tabData& getItem(
size_t index) const final;
171 virtual LRESULT getSelectedTab() const final;
173 virtual uint16_t getImagesWidth() const final;
175 virtual uint16_t getImagesHeight() const final;
182 virtual
void setBackgroundColor(uint8_t red, uint8_t green, uint8_t blue) final override;
189 virtual
void setTextColor(uint8_t red, uint8_t green, uint8_t blue) final override;
193 virtual
size_t getHash() const override = 0;
195 virtual json::JSONBuilder getStructure() const override;