2013-02-08 01:16:46 +00:00
|
|
|
/* module_preferences_scroll_area.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MODULE_PREFERENCES_SCROLL_AREA_H
|
|
|
|
#define MODULE_PREFERENCES_SCROLL_AREA_H
|
|
|
|
|
2015-04-26 17:21:09 +00:00
|
|
|
#include <config.h>
|
2013-02-08 01:16:46 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include <epan/prefs.h>
|
2015-06-15 01:05:02 +00:00
|
|
|
#include <epan/prefs-int.h>
|
2013-02-08 01:16:46 +00:00
|
|
|
|
|
|
|
#include <QScrollArea>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ModulePreferencesScrollArea;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ModulePreferencesScrollArea : public QScrollArea
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ModulePreferencesScrollArea(module_t *module, QWidget *parent = 0);
|
|
|
|
~ModulePreferencesScrollArea();
|
2015-06-15 01:05:02 +00:00
|
|
|
const QString name() const { return QString(module_->name); }
|
2013-02-08 01:16:46 +00:00
|
|
|
|
|
|
|
protected:
|
2015-02-24 18:31:29 +00:00
|
|
|
void showEvent(QShowEvent *);
|
2013-02-08 01:16:46 +00:00
|
|
|
void resizeEvent(QResizeEvent *evt);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::ModulePreferencesScrollArea *ui;
|
|
|
|
|
|
|
|
module_t *module_;
|
|
|
|
void updateWidgets();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void uintLineEditTextEdited(const QString &new_str);
|
|
|
|
void boolCheckBoxToggled(bool checked);
|
|
|
|
void enumRadioButtonToggled(bool checked);
|
|
|
|
void enumComboBoxCurrentIndexChanged(int index);
|
|
|
|
void stringLineEditTextEdited(const QString &new_str);
|
|
|
|
void rangeSyntaxLineEditTextEdited(const QString &new_str);
|
|
|
|
void uatPushButtonPressed();
|
2013-02-08 18:07:34 +00:00
|
|
|
void filenamePushButtonPressed();
|
|
|
|
void dirnamePushButtonPressed();
|
2013-02-08 01:16:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MODULE_PREFERENCES_SCROLL_AREA_H
|