2015-05-06 01:27:59 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "win32/Window.h"
|
|
|
|
#include "win32/Button.h"
|
2016-10-28 18:39:46 -04:00
|
|
|
#include "win32/ComboBox.h"
|
2015-05-06 01:27:59 -04:00
|
|
|
#include <memory>
|
2016-10-28 18:39:46 -04:00
|
|
|
#include <vector>
|
2015-05-06 01:27:59 -04:00
|
|
|
|
|
|
|
class CPixelBufferViewOverlay : public Framework::Win32::CWindow
|
|
|
|
{
|
|
|
|
public:
|
2016-10-28 18:39:46 -04:00
|
|
|
typedef std::vector<std::string> StringList;
|
|
|
|
|
2015-05-06 01:27:59 -04:00
|
|
|
enum COMMANDS
|
|
|
|
{
|
|
|
|
COMMAND_SAVE = 1,
|
2016-10-28 18:39:46 -04:00
|
|
|
COMMAND_FIT = 2,
|
|
|
|
COMMAND_PIXELBUFFER_CHANGED = 3
|
2015-05-06 01:27:59 -04:00
|
|
|
};
|
2016-10-27 09:34:42 -04:00
|
|
|
|
|
|
|
CPixelBufferViewOverlay(HWND);
|
|
|
|
CPixelBufferViewOverlay(const CPixelBufferViewOverlay&) = delete;
|
|
|
|
virtual ~CPixelBufferViewOverlay() = default;
|
|
|
|
|
|
|
|
CPixelBufferViewOverlay& operator =(const CPixelBufferViewOverlay&) = delete;
|
2015-05-06 01:27:59 -04:00
|
|
|
|
2016-10-28 18:39:46 -04:00
|
|
|
void SetPixelBufferTitles(StringList);
|
|
|
|
|
|
|
|
int GetSelectedPixelBufferIndex();
|
2017-04-08 21:38:42 -04:00
|
|
|
void SetSelectedPixelBufferIndex(int);
|
2016-10-28 18:39:46 -04:00
|
|
|
|
2015-05-06 01:27:59 -04:00
|
|
|
protected:
|
2016-10-27 09:34:42 -04:00
|
|
|
long OnCommand(unsigned short, unsigned short, HWND) override;
|
2015-05-06 01:27:59 -04:00
|
|
|
|
|
|
|
private:
|
2016-10-27 09:34:42 -04:00
|
|
|
Framework::Win32::CButton m_saveButton;
|
|
|
|
Framework::Win32::CButton m_fitButton;
|
2016-10-28 18:39:46 -04:00
|
|
|
Framework::Win32::CComboBox m_pixelBufferComboBox;
|
2015-05-06 01:27:59 -04:00
|
|
|
};
|