summaryrefslogtreecommitdiffstats
path: root/src/devices/gui/hex_view.cpp
blob: 305ac0b8ec18928e7ec8935e70cb94319ef01898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/***************************************************************************
 *   Copyright (C) 2005 Nicolas Hadacek <[email protected]>                  *
 *   Copyright (C) 2003 Alain Gibaud <[email protected]>                *
 *                                                                         *
 *   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.                                   *
 ***************************************************************************/
#include "hex_view.h"

Device::HexView::HexView(const HexEditor &editor, TQWidget *parent, const char *name)
  : MemoryEditorGroup(0, parent, name), _editor(editor)
{}

void Device::HexView::display(Memory *memory)
{
  _memory = memory;
  for (uint i=0; i<_editors.count(); i++) delete _editors[i];
  _editors.clear();
  if ( _memory==0 ) return;
  display();
}

#include "hex_view.moc"