source: src/gui/eventdialog.h @ ce59092

qt5
Last change on this file since ce59092 was ce59092, checked in by pavelpa <pavelpa@…>, 12 years ago

Event 'details' dialog now contains also 'favourite' and 'alarm'
buttons, so the user can set/unset the property directly from the dialog

  • Property mode set to 100644
File size: 910 bytes
Line 
1#ifndef EVENTDIALOG_H
2#define EVENTDIALOG_H
3
4#include <QDialog>
5#include "ui_eventdialog.h"
6#include <event.h>
7
8class DetailsContainer : public QWidget
9{
10public:
11    DetailsContainer(QWidget *aParent = NULL);
12    void setPersons(const QStringList &aPersons);
13    void setAbstract(const QString &aAbstract);
14    void setDescription(const QString &aDescription);
15private:
16    QBoxLayout *mMainLayout;
17    QLabel mPersons;
18    QLabel mAbstract;
19    QLabel mDescription;
20};
21
22class EventDialog : public QDialog, Ui::EventDialog
23{
24    Q_OBJECT
25public:
26    EventDialog(const int &aEventId, QWidget *aParent = NULL);
27    ~EventDialog() {}
28private slots:
29    void favouriteClicked();
30    void alarmClicked();
31signals:
32    void eventHasChanged(int aEventId); // emited when user changes some event details, eg. sets it Favourite
33private:
34    int mEventId;
35    DetailsContainer mDetails;
36};
37
38#endif /* EVENTDIALOG_H */
39
Note: See TracBrowser for help on using the repository browser.