MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrRemoteFileDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
12 
13 #include <QtGui/QFileDialog>
14 #include <QWidget>
15 #include <QString>
16 
17  class QToolButton;
18  class QEvent;
19  class QListView;
20  class QListWidget;
21  class QLineEdit;
22  class QCheckBox;
23 
24 namespace MAKLogger
25 {
26  class DtRemoteFilePreviewWidget;
27  class DtLgrRemoteMainWindow;
28 
31  {
32 
33  Q_OBJECT
34 
35  public:
36 
43  REMOTE_DIALOG_TYPE_RECORD
44  };
45 
46  public:
47 
49  DtRemoteFileDialog(DtLgrRemoteMainWindow* parent, QString directory, QString caption,
50  DtRemoteDialogType type, Qt::WindowFlags f = Qt::SubWindow );
51 
53  virtual ~DtRemoteFileDialog();
54 
56  virtual void setSaveMode(bool save);
57 
60  virtual void setShowPreviewButton(bool show);
61 
63  virtual void setEnablePreviewButton(bool enable);
64 
66  virtual void setShowEditPanel();
67 
69  virtual QString descriptionText();
70 
72  virtual bool descriptionChanged();
73 
76  bool checkboxChecked();
77 
79  void setCheckboxDisabled(bool disable);
80 
83  void setCheckboxState(Qt::CheckState state);
84 
88  void showFileExists(const QString& filename);
89 
90  public slots:
91 
93  virtual int exec();
94 
97  virtual void showLoggerFileInfo();
98 
99  protected slots:
104  virtual void fileSelectionChanged(const QString& file);
105 
110  virtual void fileNameTextChanged(const QString& text);
111 
114  virtual void onFolderSelectionChanged(int index);
115 
118  virtual void onNavigateButtonClicked();
119 
123  virtual void onBypassFileChecked();
124 
125  protected:
126 
127  protected:
130  QCheckBox* myCheckbox;
131  QLineEdit* myNameEdit;
132  QToolButton* myInfoButton;
133  QPushButton* myOpenButton;
134  QListView* myListView;
135  QListWidget* myListWidget;
142  };
143 }

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)