Ignore:
Timestamp:
01/27/10 16:06:21 (12 years ago)
Author:
timkoma <timkoma@…>
Branches:
master, qt5
Children:
0bb39f5
Parents:
33b5c34
Message:

refactoring of the TABS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/tabcontainer.h

    r33b5c34 r07ae23a  
    55#include "ui_tabcontainer.h"
    66
    7 class TabContainer : public QWidget, Ui::TabContainer
     7#include <appsettings.h>
     8#include <sqlengine.h>
     9#include <conference.h>
     10#include <eventmodel.h>
     11
     12class TabContainer : public QWidget, public Ui::TabContainer
    813{
    914    Q_OBJECT
    1015public:
    1116
    12     // type of the container
    13     // specifies the type of the data that treeView holds
    14     enum Type
     17    TabContainer(QWidget *aParent = NULL);
     18    virtual ~TabContainer() {}
     19
     20protected:
     21    virtual void loadEvents( const QDate &aDate, const int aConferenceId )
    1522    {
    16         EContainerTypeNone = 0,
    17         EContainerTypeDay,
    18         EContainerTypeFavs,
    19         EContainerTypeTracks,
    20         EContainerTypeRooms,
    21         EContainerTypeSearch,
    22         EContainerTypeNow
     23        Q_UNUSED(aDate);
     24        Q_UNUSED(aConferenceId);
    2325    };
    24 
    25     TabContainer(QWidget *aParent = NULL);
    26     ~TabContainer() {}
    27     void setType(TabContainer::Type aType);
    2826
    2927signals:
     
    3129
    3230public slots:
    33     void updateTreeViewModel(int aEventId);
     31    virtual void updateTreeViewModel(int aEventId);
    3432    void setDates(const QDate &aStart, const QDate &aEnd);
    3533
    36 private slots:
     34protected slots:
    3735    void updateTreeView(const QDate &aDate);
    38     void timerUpdateTreeView();
    3936    void itemClicked(const QModelIndex &aIndex);
    4037    void displayMap(const QModelIndex &aIndex);
    4138    void displayWarning(const QModelIndex &aIndex);
    42     void searchClicked();
    43     void searchAgainClicked();
    44 
    45 private:
    46     TabContainer::Type mType;
    4739};
    4840
Note: See TracChangeset for help on using the changeset viewer.