2012-01-04 22:13:01 +00:00
|
|
|
/* fileset_dialog.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2017-11-30 01:25:53 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2012-01-04 22:13:01 +00:00
|
|
|
*/
|
|
|
|
|
2012-10-01 22:40:20 +00:00
|
|
|
#ifndef FILE_SET_DIALOG_H
|
|
|
|
#define FILE_SET_DIALOG_H
|
|
|
|
|
2015-01-03 20:52:54 +00:00
|
|
|
#include <config.h>
|
2012-10-01 22:40:20 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include "file.h"
|
|
|
|
#include "fileset.h"
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2016-02-28 18:23:20 +00:00
|
|
|
#include "geometry_state_dialog.h"
|
2015-02-08 20:24:19 +00:00
|
|
|
|
2017-11-30 01:25:53 +00:00
|
|
|
#include <QItemSelection>
|
|
|
|
|
2012-10-01 22:40:20 +00:00
|
|
|
namespace Ui {
|
|
|
|
class FileSetDialog;
|
|
|
|
}
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2017-11-30 01:25:53 +00:00
|
|
|
class FilesetEntryModel;
|
|
|
|
|
2016-02-28 18:23:20 +00:00
|
|
|
class FileSetDialog : public GeometryStateDialog
|
2012-01-04 22:13:01 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2012-10-01 22:40:20 +00:00
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
public:
|
2012-10-01 22:40:20 +00:00
|
|
|
explicit FileSetDialog(QWidget *parent = 0);
|
|
|
|
~FileSetDialog();
|
|
|
|
|
|
|
|
void fileOpened(const capture_file *cf);
|
|
|
|
void fileClosed();
|
|
|
|
void addFile(fileset_entry *entry = NULL);
|
2017-11-30 01:25:53 +00:00
|
|
|
void beginAddFile();
|
|
|
|
void endAddFile();
|
2012-01-04 22:13:01 +00:00
|
|
|
|
|
|
|
signals:
|
2015-09-11 18:13:23 +00:00
|
|
|
void fileSetOpenCaptureFile(QString);
|
2012-10-01 22:40:20 +00:00
|
|
|
|
|
|
|
private slots:
|
2017-11-30 01:25:53 +00:00
|
|
|
void selectionChanged(const QItemSelection &selected, const QItemSelection &);
|
2012-10-01 22:40:20 +00:00
|
|
|
void on_buttonBox_helpRequested();
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2012-10-01 22:40:20 +00:00
|
|
|
private:
|
|
|
|
Ui::FileSetDialog *fs_ui_;
|
2017-11-30 01:25:53 +00:00
|
|
|
FilesetEntryModel *fileset_entry_model_;
|
2012-10-01 22:40:20 +00:00
|
|
|
QPushButton *close_button_;
|
2017-11-30 01:25:53 +00:00
|
|
|
int cur_idx_;
|
2012-01-04 22:13:01 +00:00
|
|
|
};
|
|
|
|
|
2012-10-01 22:40:20 +00:00
|
|
|
#endif // FILE_SET_DIALOG_H
|
2012-09-04 08:18:31 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|