import the qboobmsg MessagesManager and include it in the 'Messages' tab
This commit is contained in:
parent
e88e00a793
commit
97a245ea27
2 changed files with 9 additions and 21 deletions
|
|
@ -15,12 +15,15 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
from PyQt4.QtGui import QWidget
|
||||
from PyQt4.QtCore import SIGNAL
|
||||
|
||||
from weboob.tools.application.qt import QtMainWindow
|
||||
from weboob.tools.application.qt.backendcfg import BackendCfg
|
||||
from weboob.capabilities.dating import ICapDating
|
||||
|
||||
from weboob.frontends.qboobmsg.messages_manager import MessagesManager
|
||||
|
||||
from .ui.main_window_ui import Ui_MainWindow
|
||||
|
||||
class MainWindow(QtMainWindow):
|
||||
|
|
@ -32,6 +35,11 @@ class MainWindow(QtMainWindow):
|
|||
self.config = config
|
||||
self.weboob = weboob
|
||||
|
||||
self.ui.tabWidget.addTab(QWidget(), self.tr('Status'))
|
||||
self.ui.tabWidget.addTab(MessagesManager(self.weboob), self.tr('Messages'))
|
||||
self.ui.tabWidget.addTab(QWidget(), self.tr('Contacts'))
|
||||
self.ui.tabWidget.addTab(QWidget(), self.tr('Calendar'))
|
||||
|
||||
self.connect(self.ui.actionModules, SIGNAL("triggered()"), self.modulesConfig)
|
||||
|
||||
def modulesConfig(self):
|
||||
|
|
|
|||
|
|
@ -18,28 +18,8 @@
|
|||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>-1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="statusTab">
|
||||
<attribute name="title">
|
||||
<string>Status</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QWidget" name="messagesTab">
|
||||
<attribute name="title">
|
||||
<string>Messages</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QWidget" name="contactsTab">
|
||||
<attribute name="title">
|
||||
<string>Contacts</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QWidget" name="calendarTab">
|
||||
<attribute name="title">
|
||||
<string>Calendar</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue