bool RemoteControl::DisplayNoteWithSearch(const std::string& uri, const std::string& search) { Note::Ptr note; note = m_manager.find_by_uri (uri); if (!note) { return false; } note->get_window()->present(); // Pop open the find-bar NoteFindBar & findbar = note->get_window()->get_find_bar(); findbar.show_all (); findbar.property_visible() = true; findbar.set_search_text(search); return true; }
bool RemoteControl::HideNote(const std::string& uri) { Note::Ptr note; note = m_manager.find_by_uri (uri); if (!note) return false; note->get_window()->hide(); return true; }
bool RemoteControl::DisplayNote(const std::string& uri) { Note::Ptr note; note = m_manager.find_by_uri (uri); if (!note) { return false; } note->get_window()->present(); return true; }