source: src/gui/mainwindow.h @ d336730

qt5
Last change on this file since d336730 was c718a77, checked in by pavelpa <pavelpa@…>, 13 years ago

EventModel? signaling changed

  • if some of the data (favourite,alarm) has changed on the event, signal 'eventHasChanged' is emitted
  • all treeViews (eg. DayView?, FavsView?, TracksView?, ...) have to listen on this signal

Only favouritiesView is 'reset' when current tab is changed in mainWindow

  • 'cause time groupings have to be recreated, since favs may have changed
  • Property mode set to 100644
File size: 951 bytes
RevLine 
[e5bc908]1#ifndef MAINWINDOW_H
2#define MAINWINDOW_H
3
4#include <QtGui/QMainWindow>
5
[9bbb44e]6#include <ui_mainwindow.h>
7
[72f6fe4]8class SqlEngine;
9
[9bbb44e]10class MainWindow : public QMainWindow, private Ui::MainWindow
[e5bc908]11{
12    Q_OBJECT
13public:
[d4a8bbf]14    // aEventId is used to inform widget to automatically open
15    // Event dialog for given Event ID
16    MainWindow(int aEventId = 0, QWidget *aParent = NULL);
[72f6fe4]17    ~MainWindow();
18private slots:
19    void importSchedule();
[c2d66b2]20    void aboutApp();
[ec67a0b]21    void updateDayView(const QDate &aDate);
[4693fa6]22    void updateTracksView(const QDate &aDate);
23    void updateFavouritesView(const QDate &aDate);
[9d8946b]24    void updateSearchView(const QDate &aDate);
[c53a3f4]25    void itemClicked(const QModelIndex &aIndex);
[59c6cfe]26    void displayMap(const QModelIndex &aIndex);
[3f3e22d]27    void displayWarning(const QModelIndex &aIndex);
[990afd5]28    void searchClicked();
[c718a77]29    void tabHasChanged(int aIndex);
30    void eventHasChanged(int aEventId);
[72f6fe4]31private:
32    SqlEngine *mSqlEngine;
[e5bc908]33};
34
35#endif // MAINWINDOW_H
[c2d66b2]36
Note: See TracBrowser for help on using the repository browser.