]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/gui/mainwindow.h
make label shorter to place all required buttons
[toast/confclerk.git] / src / gui / mainwindow.h
index 3ee01f8e1bd4705632bf101a94ceed4e0b100f13..c0696368652090e72cc5302f896fb23cb4db4b76 100644 (file)
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2010 Ixonos Plc.
+ *
+ * This file is part of fosdem-schedule.
+ *
+ * fosdem-schedule is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation, either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * fosdem-schedule is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * fosdem-schedule.  If not, see <http://www.gnu.org/licenses/>.
+ */
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
@@ -5,8 +23,6 @@
 
 #include <ui_mainwindow.h>
 
-class SqlEngine;
-
 class MainWindow : public QMainWindow, private Ui::MainWindow
 {
     Q_OBJECT
@@ -14,22 +30,22 @@ public:
     // aEventId is used to inform widget to automatically open
     // Event dialog for given Event ID
     MainWindow(int aEventId = 0, QWidget *aParent = NULL);
-    ~MainWindow();
+    ~MainWindow() {}
 private slots:
-    void importSchedule();
+    void scheduleImported(int aConfId);
+    void scheduleDeleted(const QString& title);
     void aboutApp();
-    void updateDayView(const QDate &aDate);
-    void updateTab(const int n);
-    void updateTracksView(const QDate &aDate);
-    void updateFavouritesView(const QDate &aDate);
-    void updateSearchView(const QDate &aDate);
-    void itemClicked(const QModelIndex &aIndex);
-    void displayMap(const QModelIndex &aIndex);
-    void displayWarning(const QModelIndex &aIndex);
-    void searchClicked();
+    void conferenceMapClicked();
+    void eventHasChanged(int aEventId, bool aReloadModel);
+    void conferenceChanged(int aIndex);
+    void setup();
 private:
-    SqlEngine *mSqlEngine;
+    void fillAndShowConferenceHeader();
+    void initTabs();
+    void unsetConference();
+
+    QString saved_title;
 };
 
-#endif // MAINWINDOW_H
+#endif /* MAINWINDOW_H */