42 lines
723 B
C++
42 lines
723 B
C++
#ifndef CDISTRIBUTOREDITDIALOG_H
|
|
#define CDISTRIBUTOREDITDIALOG_H
|
|
|
|
|
|
#include "cdistributor.h"
|
|
|
|
#include <QDialog>
|
|
#include <QPixmap>
|
|
|
|
|
|
namespace Ui {
|
|
class cDistributorEditDialog;
|
|
}
|
|
|
|
class cDistributorEditDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit cDistributorEditDialog(QWidget *parent = 0);
|
|
~cDistributorEditDialog();
|
|
|
|
qint32 id();
|
|
void setValues(cDistributor* lpDistributor);
|
|
private slots:
|
|
void on_m_lpName_textChanged(const QString &arg1);
|
|
void logoClicked();
|
|
|
|
private:
|
|
Ui::cDistributorEditDialog* ui;
|
|
qint32 m_id;
|
|
QString m_szLogoPath;
|
|
QPixmap m_logo;
|
|
|
|
bool save();
|
|
bool add();
|
|
protected:
|
|
void accept();
|
|
};
|
|
|
|
#endif // CDISTRIBUTOREDITDIALOG_H
|