mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 18:39:03 -05:00
Fix of the issue that in Notes app 'Copy text' option was shown in 'Options' menu even if the note didn't contain any text.
27 lines
1.1 KiB
C++
27 lines
1.1 KiB
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <application-notes/ApplicationNotes.hpp>
|
|
#include <module-db/Interface/NotesRecord.hpp>
|
|
#include <model/NotesRepository.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class Option; // Forward declaration.
|
|
class Text; // Forward declaration.
|
|
} // namespace gui
|
|
|
|
namespace app::notes
|
|
{
|
|
std::list<gui::Option> noteListOptions(ApplicationCommon *application,
|
|
const NotesRecord &record,
|
|
AbstractNotesRepository ¬esRepository);
|
|
std::list<gui::Option> notePreviewOptions(ApplicationCommon *application,
|
|
const NotesRecord &record,
|
|
AbstractNotesRepository ¬esRepository,
|
|
gui::Text *textWidget);
|
|
std::list<gui::Option> noteEditOptions(ApplicationCommon *application, gui::Text *textWidget);
|
|
} // namespace app::notes
|