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