File: main_window.h

package info (click to toggle)
cen64 0.3%2Bgit20160403-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,160 kB
  • sloc: ansic: 14,512; asm: 772; cpp: 663; makefile: 12
file content (61 lines) | stat: -rw-r--r-- 1,188 bytes parent folder | download | duplicates (3)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// main_window.h: CEN64D main window.
//
// CEN64D: Cycle-Accurate Nintendo 64 Debugger
// Copyright (C) 2015, Tyler J. Stachecki.
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//

#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H

#include "network_handle.h"
#include "memory_window.h"
#include "rdp_window.h"
#include "rsp_window.h"
#include "vr4300_window.h"
#include <QAction>
#include <QMainWindow>
#include <QMenuBar>

namespace Ui {
  class MainWindow;
}

class MainWindow : public QMainWindow {
  Q_OBJECT
  Ui::MainWindow *ui;

  NetworkHandle *networkHandle;
  MemoryWindow *memoryWindow;
  RDPWindow *rdpWindow;
  RSPWindow *rspWindow;
  VR4300Window *vr4300Window;

  QMenu *fileMenu;
  QAction *fileQuitAction;

  QMenu *viewMenu;
  QAction *viewMemoryWindowAction;
  QAction *viewRDPWindowAction;
  QAction *viewRSPWindowAction;
  QAction *viewVR4300WindowAction;

  QMenu *helpMenu;
  QAction *helpAboutAction;

  void setupActions();
  void setupMenuBar(QMenuBar *menuBar);

private slots:
  void showAboutWindow();

public:
  explicit MainWindow(QWidget *parent = 0);
  ~MainWindow();
};

#endif