1 /*
2  * gnote
3  *
4  * Copyright (C) 2013 Aurimas Cernius
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 
21 #include "mainwindowembeds.hpp"
22 
23 
24 namespace gnote {
25 
embed(EmbeddableWidgetHost * h)26 void EmbeddableWidget::embed(EmbeddableWidgetHost *h)
27 {
28   //remove from previous host, if any
29   if(m_host) {
30     m_host->unembed_widget(*this);
31   }
32   m_host = h;
33   signal_embedded();
34 }
35 
unembed()36 void EmbeddableWidget::unembed()
37 {
38   m_host = NULL;
39   signal_unembedded();
40 }
41 
foreground()42 void EmbeddableWidget::foreground()
43 {
44   signal_foregrounded();
45 }
46 
background()47 void EmbeddableWidget::background()
48 {
49   signal_backgrounded();
50 }
51 
hint_position(int &,int &)52 void EmbeddableWidget::hint_position(int &, int &)
53 {
54 }
55 
hint_size(int &,int &)56 void EmbeddableWidget::hint_size(int &, int &)
57 {
58 }
59 
size_internals()60 void EmbeddableWidget::size_internals()
61 {
62 }
63 
64 
supports_goto_result()65 bool SearchableItem::supports_goto_result()
66 {
67   return false;
68 }
69 
goto_next_result()70 bool SearchableItem::goto_next_result()
71 {
72   return false;
73 }
74 
goto_previous_result()75 bool SearchableItem::goto_previous_result()
76 {
77   return false;
78 }
79 
80 }
81 
82