elffilewidget.h
64 lines
| 2.1 KiB
| text/x-c
|
CLexer
r47 | /*------------------------------------------------------------------------------ | |||
-- This file is a part of the SocExplorer Software | ||||
-- Copyright (C) 2014, Plasma Physics Laboratory - CNRS | ||||
-- | ||||
-- 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||||
-------------------------------------------------------------------------------*/ | ||||
/*-- Author : Alexis Jeandet | ||||
-- Mail : alexis.jeandet@member.fsf.org | ||||
----------------------------------------------------------------------------*/ | ||||
r35 | #ifndef ELFFILEWIDGET_H | |||
#define ELFFILEWIDGET_H | ||||
Jeandet Alexis
|
r39 | #include <QtWidgets/QWidget> | ||
Jeandet Alexis
|
r36 | #include "elffile.h" | ||
r47 | #include <QtWidgets/QAction> | |||
#include <qhexedit.h> | ||||
r35 | ||||
namespace Ui { | ||||
class elfFileWidget; | ||||
} | ||||
class elfFileWidget : public QWidget | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
Jeandet Alexis
|
r39 | elfFileWidget(QWidget *parent = 0); | ||
r35 | ~elfFileWidget(); | |||
Jeandet Alexis
|
r39 | |||
Jeandet Alexis
|
r36 | public slots: | ||
void updateElfFile(ElfFile* file); | ||||
r42 | void updateSymbols(); | |||
Jeandet Alexis
|
r43 | void updateSections(); | ||
private slots: | ||||
void sectionCellActivated(int row, int column); | ||||
r47 | void exportToSREC(); | |||
void exportToBIN(); | ||||
void pointSymbol(); | ||||
void filterSymbols(const QString& pattern); | ||||
void filterSymbolsCaseUpdate(bool toggled); | ||||
r35 | private: | |||
Ui::elfFileWidget *ui; | ||||
r47 | QStringList getSelectedSectionsNames(); | |||
Jeandet Alexis
|
r36 | ElfFile* p_elf; | ||
r47 | QAction* exportToSREC_action; | |||
QAction* exportToBIN_action; | ||||
QAction* pointInSections_action; | ||||
QHexEdit* p_hexviewer; | ||||
r35 | }; | |||
#endif // ELFFILEWIDGET_H | ||||