M68KDasmBrowserWindow::M68KDasmBrowserWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog), // layout(new QVBoxLayout), text(new QTextBrowser), layout(new QVBoxLayout), text(new QLabel), refresh(new QPushButton(tr("Refresh"))), address(new QLineEdit), go(new QPushButton(tr("Go"))), memBase(0x4000) { setWindowTitle(tr("M68K Disassembly Browser")); address->setInputMask("hhhhhh"); QHBoxLayout * hbox1 = new QHBoxLayout; hbox1->addWidget(refresh); hbox1->addWidget(address); hbox1->addWidget(go); // Need to set the size as well... // resize(560, 480); QFont fixedFont("Lucida Console", 8, QFont::Normal); text->setFont(fixedFont); //// layout->setSizeConstraint(QLayout::SetFixedSize); setLayout(layout); layout->addWidget(text); // layout->addWidget(refresh); layout->addLayout(hbox1); connect(refresh, SIGNAL(clicked()), this, SLOT(RefreshContents())); connect(go, SIGNAL(clicked()), this, SLOT(GoToAddress())); }
//DasmWindow::DasmWindow(QMdiArea * parent/*= 0*/) : QMdiSubWindow(parent, Qt::Dialog), DasmWindow::DasmWindow(QWidget * parent /*= 0*/): QWidget(parent, Qt::Dialog), // layout(new QVBoxLayout), text(new QTextBrowser), layout1(new QDockWidget), layout(new QVBoxLayout), text(new QLabel), refresh(new QPushButton(tr("Refresh"))), address(new QLineEdit), go(new QPushButton(tr("Go"))), memBase(0x4000) { // m68kDasmWindow *m68kDasmWin = new m68kDasmWindow(); setWindowTitle(tr("Jaguar Disassembly Window")); layout1->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); //addDockWidget(Qt::RightDockWidgetArea, layout1); //layout1->addTab(new m68KDasmWindow(), tr("M68K Disassembly")); //layout = new QTabWidget; //layout->QWidget(); //QDockWidget *shapesDockWidget = new QDockWidget(tr("Shapes")); //shapesDockWidget->setObjectName("shapesDockWidget"); //shapesDockWidget->setWidget(treeWidget); //shapesDockWidget->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); //shapesDockWidget->show(); #if 0 address->setInputMask("hhhhhh"); QHBoxLayout * hbox1 = new QHBoxLayout; hbox1->addWidget(refresh); hbox1->addWidget(address); hbox1->addWidget(go); // Need to set the size as well... // resize(560, 480); QFont fixedFont("Lucida Console", 8, QFont::Normal); // QFont fixedFont("", 8, QFont::Normal); fixedFont.setStyleHint(QFont::TypeWriter); text->setFont(fixedFont); //// layout->setSizeConstraint(QLayout::SetFixedSize); setLayout(layout); layout->addWidget(text); // layout->addWidget(refresh); layout->addLayout(hbox1); connect(refresh, SIGNAL(clicked()), this, SLOT(RefreshContents())); connect(go, SIGNAL(clicked()), this, SLOT(GoToAddress())); #endif }