setCentralWidget(new QWidget());
centralWidget()->setLayout(layout);
-// buildFriendListPanel();
- buildUserInfoPanel();
+ buildPanels();
createMenus();
setWindowTitle(tr("Situare"));
// set stacking order of widgets
-// m_zoomButtonPanel->stackUnder(m_userInfoPanel);
m_zoomButtonPanel->stackUnder(m_tabbedPanel);
if(m_fullScreenButton) {
m_fullScreenButton->stackUnder(m_zoomButtonPanel);
connect(this, SIGNAL(locationItemClicked(QList<QString>)),
m_friendsListPanel, SLOT(showFriendsInList(QList<QString>)));
- connect(m_mapView, SIGNAL(viewResized(QSize)),
- m_friendsListPanel, SLOT(resizePanel(QSize)));
-
connect(m_friendsListPanel, SIGNAL(findFriend(GeoCoordinate)),
this, SIGNAL(findFriend(GeoCoordinate)));
this, SLOT(drawOsmLicense(QSize)));
}
+void MainWindow::buildPanels()
+{
+ qDebug() << __PRETTY_FUNCTION__;
+
+ buildUserInfoPanel();
+ buildFriendListPanel();
+
+ m_tabbedPanel = new TabbedPanel(this);
+ m_tabbedPanel->addTab(m_userInfoPanel, QIcon(":/res/images/user_info.png"));
+ m_tabbedPanel->addTab(m_friendsListPanel, QIcon(":/res/images/friend_list.png"));
+
+ connect(m_mapView, SIGNAL(viewResized(QSize)),
+ m_tabbedPanel, SLOT(resizePanel(QSize)));
+}
+
void MainWindow::buildUserInfoPanel()
{
qDebug() << __PRETTY_FUNCTION__;
connect(m_userInfoPanel, SIGNAL(notificateUpdateFailing(QString, bool)),
this, SLOT(buildInformationBox(QString, bool)));
-
- m_tabbedPanel = new TabbedPanel(this);
- m_tabbedPanel->addTab(m_userInfoPanel, QIcon(":/res/images/user_info.png"));
-
- // This is just testing
- m_tabbedPanel->addTab(new QPushButton("Friend List"), QIcon(":/res/images/friend_list.png"));
-
- // Another test
- m_tabbedPanel->addTab(new QPushButton("Routing"), QIcon(":/res/images/routing.png"));
-
- connect(m_mapView, SIGNAL(viewResized(QSize)),
- m_tabbedPanel, SLOT(resizePanel(QSize)));
}
void MainWindow::buildWebView()
// m_friendsListPanel->closePanel();
// m_friendsListPanel->hide();
// m_friendsListPanelSidebar->hide();
+
// m_userPanel->closePanel();
// m_userPanel->hide();
// m_userPanelSidebar->hide();