mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fixed a couple compiler warnings.
This commit is contained in:
parent
62cd360c3d
commit
a010a7b709
@ -58,8 +58,9 @@ namespace musik {
|
|||||||
|
|
||||||
virtual ~BrowseLayout();
|
virtual ~BrowseLayout();
|
||||||
|
|
||||||
virtual bool KeyPress(const std::string& key) override;
|
/* IWindow */
|
||||||
virtual void ProcessMessage(musik::core::runtime::IMessage &message) override;
|
bool KeyPress(const std::string& key) override;
|
||||||
|
void ProcessMessage(musik::core::runtime::IMessage &message) override;
|
||||||
|
|
||||||
void ScrollTo(const std::string& fieldType, int64_t fieldId);
|
void ScrollTo(const std::string& fieldType, int64_t fieldId);
|
||||||
void SwitchCategory(const std::string& fieldName);
|
void SwitchCategory(const std::string& fieldName);
|
||||||
@ -68,7 +69,8 @@ namespace musik {
|
|||||||
void LoadLastSession();
|
void LoadLastSession();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void OnLayout() override;
|
/* LayoutBase */
|
||||||
|
void OnLayout() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void InitializeWindows();
|
void InitializeWindows();
|
||||||
|
@ -58,11 +58,13 @@ namespace musik {
|
|||||||
|
|
||||||
virtual ~NowPlayingLayout();
|
virtual ~NowPlayingLayout();
|
||||||
|
|
||||||
virtual void OnVisibilityChanged(bool visible);
|
/* IWindow */
|
||||||
virtual bool KeyPress(const std::string& key);
|
void OnVisibilityChanged(bool visible) override;
|
||||||
|
bool KeyPress(const std::string& key) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void OnLayout();
|
/* LayoutBase */
|
||||||
|
void OnLayout() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void InitializeWindows();
|
void InitializeWindows();
|
||||||
|
@ -75,19 +75,20 @@ namespace musik {
|
|||||||
|
|
||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
virtual bool KeyPress(const std::string& key);
|
|
||||||
|
|
||||||
int64_t GetSelectedId();
|
int64_t GetSelectedId();
|
||||||
std::string GetSelectedValue();
|
std::string GetSelectedValue();
|
||||||
std::string GetFilter();
|
std::string GetFilter();
|
||||||
std::string GetFieldName();
|
std::string GetFieldName();
|
||||||
void SetFieldName(const std::string& fieldName);
|
void SetFieldName(const std::string& fieldName);
|
||||||
|
|
||||||
virtual void OnVisibilityChanged(bool visible) override;
|
/* IWindow */
|
||||||
|
bool KeyPress(const std::string& key) override;
|
||||||
|
void OnVisibilityChanged(bool visible) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual cursespp::IScrollAdapter& GetScrollAdapter();
|
/* IListWindow */
|
||||||
virtual bool OnEntryContextMenu(size_t index);
|
cursespp::IScrollAdapter& GetScrollAdapter() override;
|
||||||
|
bool OnEntryContextMenu(size_t index) override;
|
||||||
|
|
||||||
void OnQueryCompleted(musik::core::db::IQuery* query);
|
void OnQueryCompleted(musik::core::db::IQuery* query);
|
||||||
void ShowContextMenu();
|
void ShowContextMenu();
|
||||||
@ -96,10 +97,10 @@ namespace musik {
|
|||||||
public:
|
public:
|
||||||
Adapter(CategoryListView &parent);
|
Adapter(CategoryListView &parent);
|
||||||
|
|
||||||
virtual size_t GetEntryCount();
|
size_t GetEntryCount() override;
|
||||||
|
|
||||||
virtual cursespp::IScrollAdapter::EntryPtr
|
cursespp::IScrollAdapter::EntryPtr
|
||||||
GetEntry(cursespp::ScrollableWindow* window, size_t index);
|
GetEntry(cursespp::ScrollableWindow* window, size_t index) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CategoryListView &parent;
|
CategoryListView &parent;
|
||||||
|
@ -158,7 +158,7 @@ bool DialogOverlay::ProcessKey(const std::string& key) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->escDismiss && key == "^[" || key == "ESC") {
|
if (this->escDismiss && (key == "^[" || key == "ESC")) {
|
||||||
this->Dismiss();
|
this->Dismiss();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user