cen64/debugger/toggle_window.h
Derek "Turtle" Roe 8b89df2fdc See long description
Replaced all references to simulation with emulation
Updated copyright year
Updated .gitignore to reduce chances of random files being uploaded to
the repo
Added .gitattributes to normalize all text files, and to ignore binary
files (which includes the logo and the NEC PDF)
2015-07-01 18:44:21 -05:00

39 lines
772 B
C++

//
// toggle_window.h: Toggle-able 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 TOGGLE_WINDOW_H
#define TOGGLE_WINDOW_H
#include <QAction>
#include <QCloseEvent>
#include <QState>
#include <QStateMachine>
#include <QWidget>
class ToggleWindow : public QWidget {
Q_OBJECT
QAction *toggleAction;
QStateMachine windowMachine;
QState windowHiddenState;
QState windowExposedState;
virtual void closeEvent(QCloseEvent *event);
public:
explicit ToggleWindow(const QString &windowTitle,
QAction *toggleAction, bool initiallyVisible);
~ToggleWindow();
};
#endif