#include "conferencemodel.h"
#include "urlinputdialog.h"
+#include "mapwindow.h"
#include <QInputDialog>
#include <QItemSelectionModel>
connect(removeBtn, SIGNAL(clicked()), SLOT(removeClicked()));
connect(changeUrl, SIGNAL(clicked()), SLOT(changeUrlClicked()));
connect(refreshBtn, SIGNAL(clicked()), SLOT(refreshClicked()));
+ connect(showMapButton, SIGNAL(clicked()), SLOT(conferenceMapClicked()));
// it's OK to emit selection signals here
// because they are not yet connected to anybody
}
itemSelected(QModelIndex(), QModelIndex());
}
+
+void ConferenceEditor::conferenceMapClicked()
+{
+ QString mapPath = QString(":/maps/campus.png");
+ if(!QFile::exists(mapPath))
+ mapPath = QString(":/maps/rooms/not-available.png");
+
+ QString roomName;
+
+ QPixmap map(mapPath);
+ MapWindow window(map,roomName,this);
+ window.exec();
+}
void removeClicked();
void changeUrlClicked();
void refreshClicked();
+ void conferenceMapClicked();
private:
ConferenceModel* model;
</widget>
</item>
<item row="1" column="3">
- <widget class="QPushButton" name="showMapButton_2">
+ <widget class="QPushButton" name="showMapButton">
<property name="text">
<string>MAP</string>
</property>
#include "ui_about.h"
#include <eventdialog.h>
#include "daynavigatorwidget.h"
-#include "mapwindow.h"
#include "settingsdialog.h"
#include "conferenceeditor.h"
#include "schedulexmlparser.h"
dialog.exec();
}
-void MainWindow::conferenceMapClicked()
-{
- QString mapPath = QString(":/maps/campus.png");
- if(!QFile::exists(mapPath))
- mapPath = QString(":/maps/rooms/not-available.png");
-
- QString roomName;
-
- QPixmap map(mapPath);
- MapWindow window(map,roomName,this);
- window.exec();
-}
-
void MainWindow::eventHasChanged(int aEventId, bool aReloadModel)
{
dayTabContainer->updateTreeViewModel(aEventId);
connect(this, SIGNAL(conferenceRemoved()), &dialog, SLOT(conferenceRemoved()));
- // TODO: propagate press of showMapButton here
- // connect(showMapButton, SIGNAL(clicked()), SLOT(conferenceMapClicked()));
-
dialog.exec();
// optimization, see useConference() code
void conferenceRemoved();
private slots:
void aboutApp();
- void conferenceMapClicked();
void eventHasChanged(int aEventId, bool aReloadModel);
void setup();
// TODO: remove