1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
// ****************************************************************************
// Project: GUYMAGER
// ****************************************************************************
// Programmer: Guy Voncken
// Police Grand-Ducale
// Service de Police Judiciaire
// Section Nouvelles Technologies
// ****************************************************************************
// Module: Acquisition dialog
// ****************************************************************************
#ifndef __DLGACQUIRE_H__
#define __DLGACQUIRE_H__
#include <QtGui> //lint !e537 Repeated include
#ifndef __COMMON_H__
#include "common.h"
#endif
#ifndef __DEVICE_H__
#include "device.h"
#endif
#ifndef __CONFIG_H__
class t_CfgDlgAcquireField;
typedef t_CfgDlgAcquireField *t_pCfgDlgAcquireField;
#endif
class t_DlgAcquireLineEdit;
class t_DlgAcquireLocal;
class t_DlgAcquire: public QDialog
{
Q_OBJECT
public:
t_DlgAcquire ();
t_DlgAcquire (t_pDevice pDevice, QWidget *pParent=NULL, Qt::WFlags Flags=0);
~t_DlgAcquire ();
APIRET GetParameters (t_Device::t_Acquisition &Acquisition, bool RememberLastUsedValues=true);
private:
APIRET AddField (t_pDevice pDevice, t_pCfgDlgAcquireField pField, QGridLayout *pLayout, int *pRow);
APIRET CheckWriteAccess (const QString &Path, const QString &Filename, bool &Ok);
private slots:
void UpdateCheckboxState (int State);
void UpdateButtonState (const QString & NewText = QString());
void UpdateFieldState (void);
void SlotBrowse (void);
void SlotAccept (void);
void SlotTextEdited (t_DlgAcquireLineEdit *pLineEdit, const QString &NewVal);
private:
t_DlgAcquireLocal *pOwn;
};
enum
{
ERROR_DLGACQUIRE_CONSTRUCTOR_NOT_SUPPORTED = ERROR_BASE_DLGACQUIRE + 1,
ERROR_DLGACQUIRE_UNKNOWN_FILEDIALOG_SIZE,
ERROR_DLGACQUIRE_INVALID_ENTRYMODE,
ERROR_DLGACQUIRE_INVALID_FORMAT
};
#endif
|