findfiledialog.h Example File | Qt 4.8 (original) (raw)

help/simpletextviewer/findfiledialog.h

#ifndef FINDFILEDIALOG_H #define FINDFILEDIALOG_H

#include <QtGui/QDialog>

class QComboBox; class QDialogButtonBox; class QLabel; class QToolButton; class QTreeWidget; class QTreeWidgetItem;

class Assistant; class TextEdit;

class FindFileDialog : public QDialog { Q_OBJECT

public: FindFileDialog(TextEdit *editor, Assistant *assistant);

private slots: void browse(); void help(); void openFile(QTreeWidgetItem *item = 0); void update();

private: void findFiles(); void showFiles(const QStringList &files);

void createButtons();
void createComboBoxes();
void createFilesTree();
void createLabels();
void createLayout();

Assistant *currentAssistant;
TextEdit *currentEditor;
[QTreeWidget](qtreewidget.html) *foundFilesTree;

[QComboBox](qcombobox.html) *directoryComboBox;
[QComboBox](qcombobox.html) *fileNameComboBox;

[QLabel](qlabel.html) *directoryLabel;
[QLabel](qlabel.html) *fileNameLabel;

[QDialogButtonBox](qdialogbuttonbox.html) *buttonBox;

[QToolButton](qtoolbutton.html) *browseButton;

};

#endif

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.