4 DialCentral - Front end for Google's Grand Central service.
5 Copyright (C) 2008 Mark Bergman bergman AT merctech DOT com
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 class Dialpad(object):
28 def __init__(self, widgetTree):
29 self._numberdisplay = widgetTree.get_widget("numberdisplay")
30 self._dialButton = widgetTree.get_widget("dial")
33 self._dialButton.set_sensitive(False)
36 self._dialButton.set_sensitive(True)
42 def load_settings(self, config, sectionName):
45 def save_settings(self, config, sectionName):
52 class AccountInfo(object):
54 def __init__(self, widgetTree):
55 self._callbackList = gtk.ListStore(gobject.TYPE_STRING)
56 self._accountViewNumberDisplay = widgetTree.get_widget("gcnumber_display")
57 self._callbackCombo = widgetTree.get_widget("callbackcombo")
58 self._clearCookiesButton = widgetTree.get_widget("clearcookies")
61 self._callbackCombo.set_sensitive(False)
62 self._clearCookiesButton.set_sensitive(False)
64 self._accountViewNumberDisplay.set_text("")
67 self._clearCookiesButton.set_sensitive(True)
68 self._callbackCombo.set_sensitive(True)
82 def load_settings(self, config, sectionName):
85 def save_settings(self, config, sectionName):
92 class RecentCallsView(object):
94 def __init__(self, widgetTree):
112 return "Recent Calls"
114 def load_settings(self, config, sectionName):
117 def save_settings(self, config, sectionName):
119 @note Thread Agnostic
124 class MessagesView(object):
126 def __init__(self, widgetTree):
146 def load_settings(self, config, sectionName):
149 def save_settings(self, config, sectionName):
151 @note Thread Agnostic
156 class ContactsView(object):
158 def __init__(self, widgetTree):
159 self._booksSelectionBox = widgetTree.get_widget("addressbook_combo")
162 self._booksSelectionBox.set_sensitive(False)
165 self._booksSelectionBox.set_sensitive(True)
178 def load_settings(self, config, sectionName):
181 def save_settings(self, config, sectionName):
183 @note Thread Agnostic