26#ifndef PART_VCD_Play_H
27#define PART_VCD_Play_H
29#include "../lib/part.h"
31#define PART_VCD_Play_Name "VCD Play"
40 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
41 cpart_VCD_Play(
const unsigned x,
const unsigned y,
const char* name,
const char* type,
board* pboard_,
44 void DrawOutput(
const unsigned int index)
override;
48 void OnMouseButtonPress(
unsigned int inputId,
unsigned int button,
unsigned int x,
unsigned int y,
49 unsigned int state)
override;
55 unsigned short GetInputId(
char* name)
override;
57 int LoadVCD(std::string fname);
61 unsigned char output_pins[8];
65 unsigned long vcd_count;
Board class.
Definition board.h:111
Definition virtual_VCD_Play.h:38
void OnMouseButtonPress(unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event handler on the part.
Definition virtual_VCD_Play.cc:331
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition virtual_VCD_Play.cc:174
void PreProcess(void) override
Called every start of CPU process.
Definition virtual_VCD_Play.cc:275
void filedialog_EvOnClose(int retId) override
Used by properties window filedialogs.
Definition virtual_VCD_Play.cc:384
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition virtual_VCD_Play.cc:218
void ReadPreferences(std::string value) override
Called whe configuration file load preferences.
Definition virtual_VCD_Play.cc:226
void Process(void) override
Called every CPU step.
Definition virtual_VCD_Play.cc:279
void PostProcess(void) override
Called every end of CPU process.
Definition virtual_VCD_Play.cc:320
void RegisterRemoteControl(void) override
Register remote control variables.
Definition virtual_VCD_Play.cc:77
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition virtual_VCD_Play.cc:253
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition virtual_VCD_Play.cc:264
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition virtual_VCD_Play.cc:162
std::string GetAboutInfo(void) override
Return the about information of part.
Definition virtual_VCD_Play.h:40
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition virtual_VCD_Play.cc:92
PART class.
Definition part.h:49
Definition virtual_VCD_Play.h:33