source: SMSSender/src/ui/VCEditContact/vceditcontact.h @ 67:578192d6fe64

3.0
Last change on this file since 67:578192d6fe64 was 56:e63ceb8090cd, checked in by Sämy Zehnder <saemy.zehnder@…>, 13 years ago
  • Renamed accountmodel to accounttreemodel
  • Implemented creation of new contact if number is unknown in vcmain
  • Areacode is now in its own field in vceditcontact
  • Accountlist in vcmain is now controlled by a model (Needs filtering of only active ones)
  • Settingspath is dynamic and user-based now
File size: 1.2 KB
Line 
1#ifndef VCEDITCONTACT_H
2#define VCEDITCONTACT_H
3
4#include "ui_vceditcontact.h"
5
6#include <QtGui/QDialog>
7
8#include <icontact.h>
9
10class VCEditContact : public QDialog {
11    Q_OBJECT
12
13public:
14    VCEditContact(IContact* contact, QWidget *parent = 0);
15    ~VCEditContact();
16
17private:
18    Ui::VCEditContactClass ui;
19    IContact* contact_;
20    QIcon   defaultIcon_;
21    QImage  contactImage_;
22
23    //QString editAlias(const QString& alias);
24    QListWidgetItem* addAliasItem(const QString& alias);
25
26    void    addBtnIconMenu();
27    void    removeBtnIconMenu();
28    void    setIconFromFilename(const QString& filename);
29    void    setIcon(const QImage& image);
30
31    bool    validate();
32
33private slots:
34    void on_btnIcon_clicked();
35    void on_actionChangeIcon_activated();
36    void on_actionRemoveIcon_activated();
37
38    void on_btnAddAlias_clicked();
39    void on_btnEditAlias_clicked();
40    void on_btnRemoveAlias_clicked();
41//    void on_lstAliases_itemDoubleClicked(QListWidgetItem* item);
42    void on_lstAliases_itemChanged(QListWidgetItem* item);
43    void on_lstAliases_itemSelectionChanged();
44
45    void on_btnsNavigation_clicked(QAbstractButton* button);
46};
47
48#endif // VCEDITCONTACT_H
Note: See TracBrowser for help on using the repository browser.