Files
MuditaOS/module-apps/application-notes/windows/NotesOptions.hpp
Lefucjusz cf6c377776 [MOS-1028] Fix possibility to copy text from empty note
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.
2023-08-31 15:56:07 +02:00

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 &notesRepository);
std::list<gui::Option> notePreviewOptions(ApplicationCommon *application,
const NotesRecord &record,
AbstractNotesRepository &notesRepository,
gui::Text *textWidget);
std::list<gui::Option> noteEditOptions(ApplicationCommon *application, gui::Text *textWidget);
} // namespace app::notes