#ifndef DaytoDay_INCLUDED #define DaytoDay_INCLUDED #include #ifdef WIN32 #ifdef DOEXPORT_SCRIPT #define EXPORT_SCRIPT __declspec(dllexport) #else #define EXPORT_SCRIPT #endif #else #define EXPORT_SCRIPT #endif class DaytoDay : public bncs_script_helper { public: DaytoDay( bncs_client_callback * parent, const char* path ); virtual ~DaytoDay(); void buttonCallback( buttonNotify *b ); int revertiveCallback( revertiveNotify * r ); void databaseCallback( revertiveNotify * r ); bncs_string parentCallback( parentNotify *p ); void timerCallback( int ); private: bncs_string m_myParam; bncs_string m_instance; bncs_string dest_id; // Temporary variable to hold name of switched destination bncs_string panel_name; // Used in popup remove to build name of button to push to re-show previous panel bncs_string cmbr_mask; // Holds the level select mask for the combiner operation // BNCS driver ID's for various drivers int cta_sdi_id; int cta_audio_id; int cta_tc_id; int cta_bncs_pkg_id; int cta_sdi_size; int cta_audio_size; int cta_tc_size; int cta_bncs_size; int currentPanel; // Holds the id of the currently selected panel int new_panelid; // Holds the id of the next panel to activate. int mon_offset; // Used in revertive processing to compute UMD display number int vid_rev_pnl; // Used in processing revertives from CTA SDI router int audio_rev_pnl; // Used in processing revertives from CTA audio router int tc_rev_pnl; // Used in processing revertives from CTA timecode router int switch_dest; // Holds the name of the destination that has caused selector panel to be shown. int mix_src_id; int mix_dest_id; int mix_index; int mix_timecounter; int pa_gfx_dest; // Holds the package ID for the PA and Gfx moniotr panel usage. int gfx_src_index; // Holds the source number from the graphics selector panel int src_index; // Holds the source index of the pop-up panel selector. int time_count; // Holds the current count used for auto-cancel int btn_id; int LVCR_mon_lu[16]; // An array to hold the lookup table to convert button id number into destination package number. int loop_dev_lu[32]; // An array that holds the lookup table to convert loop device button ids to destination package numbers int rec_rep_lu[20]; int wbox_lu[8]; // An array to hold lookup table to convert wallbox panel buttons to package IDs bool source_select_on_show; // Set true when the source selector panel is displayed bool source_selected; bool take_active; bool timeout_active; bool mix_src_sel; bool mix_dest_sel; bool mix_take_active; bool mix_timeout_active; bool vid_lvl; bool aud_lvl; bool key_lvl; bool tc_level; // Local Methods void changePanel(bncs_string button); void ShowSourceSelect(void); // Display the pop-up (my name!) package source selector void HideSourceSelect(void); void DisableSwitching(void); void EnableSwitching(void); void processPCRstack(bncs_string button); // Handles button pushes on the PCR stack route panel void processLVCRstack(bncs_string button); // Handles button pushes on the LVCR stack void processMixerIn(buttonNotify *b); // Handles button pushes on the Mixer Input selector panel void processLoopDevs(bncs_string button); // Handles button presses on the Loop devices panel void processRecordDevs(bncs_string button); // Hanldes button pushes on the Record Devices panel void processWallboxFeeds(bncs_string button); // Handles button pushes on the wallbox panel void processPAandGfxMon(buttonNotify *b); // Handles pushes on the PA and Gfx router panel void processSourceSelect(buttonNotify *b); // Handles the button pushes on the pop-up source selector void buildPkgMask(void); void buildLVCRdest(void); void buildLoop_lut(void); void buildRecRep_lut(void); void buildWBox_lut(void); }; #endif // DaytoDay_INCLUDED