mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-05 15:05:01 +01:00
34 lines
624 B
C++
34 lines
624 B
C++
#ifndef __WINMENUBAR_H__
|
|
#define __WINMENUBAR_H__
|
|
|
|
#include "sim_local.h"
|
|
#include <Windows.h>
|
|
#include <SDL_syswm.h>
|
|
|
|
class CWinMenuBar {
|
|
class CSimulator *sim;
|
|
HMENU hMenuBar;
|
|
HMENU hFile;
|
|
HMENU hEdit;
|
|
HMENU hHelp;
|
|
HMENU hLittleFS;
|
|
TArray<CString> recents;
|
|
std::vector<std::string> samples;
|
|
TArray<CString> prefabNames;
|
|
|
|
void createWindowsMenu(HWND windowRef);
|
|
HWND getHWNDForSDLWindow(SDL_Window* win);
|
|
public:
|
|
CWinMenuBar();
|
|
|
|
void setSimulator(class CSimulator *s) {
|
|
this->sim = s;
|
|
}
|
|
|
|
void showSaveAsDialog();
|
|
void createMenuBar(SDL_Window *win);
|
|
void processEvent(const SDL_Event &Event);
|
|
|
|
};
|
|
|
|
#endif |