"Fossies" - the Fresh Open Source Software Archive

Member "cutter-1.10.3/src/dialogs/WriteCommandsDialogs.h" (8 May 2020, 1146 Bytes) of package /linux/privat/cutter-1.10.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "WriteCommandsDialogs.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef WRITECOMMANDSDIALOGS_H
    2 #define WRITECOMMANDSDIALOGS_H
    3 
    4 #include <QDialog>
    5 #include "CutterCommon.h"
    6 
    7 namespace Ui {
    8 class Base64EnDecodedWriteDialog;
    9 class IncrementDecrementDialog;
   10 class DuplicateFromOffsetDialog;
   11 }
   12 
   13 class Base64EnDecodedWriteDialog : public QDialog
   14 {
   15     Q_OBJECT
   16 public:
   17     explicit Base64EnDecodedWriteDialog(QWidget *parent = nullptr);
   18     enum Mode { Encode, Decode };
   19     Mode getMode() const;
   20     QByteArray getData() const;
   21 
   22 private:
   23     Ui::Base64EnDecodedWriteDialog* ui;
   24 };
   25 
   26 class IncrementDecrementDialog : public QDialog
   27 {
   28     Q_OBJECT
   29 public:
   30     explicit IncrementDecrementDialog(QWidget *parent = nullptr);
   31     enum Mode { Increase, Decrease };
   32     Mode getMode() const;
   33     uint8_t getNBytes() const;
   34     uint64_t getValue() const;
   35 
   36 private:
   37     Ui::IncrementDecrementDialog* ui;
   38 };
   39 
   40 class DuplicateFromOffsetDialog : public QDialog
   41 {
   42     Q_OBJECT
   43 public:
   44     explicit DuplicateFromOffsetDialog(QWidget *parent = nullptr);
   45     RVA getOffset() const;
   46     size_t getNBytes() const;
   47 
   48 private:
   49     Ui::DuplicateFromOffsetDialog* ui;
   50 
   51 private slots:
   52     void refresh();
   53 };
   54 
   55 #endif // WRITECOMMANDSDIALOGS_H