Line 266... |
Line 266... |
266 |
void regAddViewButtonItem(std::function<void (Button::TButton& button, unsigned char *buffer, int pixline)> avbi) { _addViewButtonItem = avbi; }
|
266 |
void regAddViewButtonItem(std::function<void (Button::TButton& button, unsigned char *buffer, int pixline)> avbi) { _addViewButtonItem = avbi; }
|
267 |
void regAddViewButtonItems(std::function<void (ulong parent, std::vector<PGSUBVIEWITEM_T> items)> abvi) { _addViewButtonItems = abvi; }
|
267 |
void regAddViewButtonItems(std::function<void (ulong parent, std::vector<PGSUBVIEWITEM_T> items)> abvi) { _addViewButtonItems = abvi; }
|
268 |
void regUpdateViewButton(std::function<void (ulong handle, ulong parent, TBitmap buffer, TColor::COLOR_T fillColor)> uvb) { _updateViewButton = uvb; }
|
268 |
void regUpdateViewButton(std::function<void (ulong handle, ulong parent, TBitmap buffer, TColor::COLOR_T fillColor)> uvb) { _updateViewButton = uvb; }
|
269 |
void regUpdateViewButtonItem(std::function<void (PGSUBVIEWITEM_T& item, ulong parent)> uvb) { _updateViewButtonItem = uvb; }
|
269 |
void regUpdateViewButtonItem(std::function<void (PGSUBVIEWITEM_T& item, ulong parent)> uvb) { _updateViewButtonItem = uvb; }
|
270 |
void regShowSubViewItem(std::function<void (ulong handle, ulong parent, int position, int timer)> ssvi) { _showSubViewItem = ssvi; }
|
270 |
void regShowSubViewItem(std::function<void (ulong handle, ulong parent, int position, int timer)> ssvi) { _showSubViewItem = ssvi; }
|
- |
|
271 |
void regToggleSubViewItem(std::function<void (ulong handle, ulong parent, int position, int timer)> tsvi) { _toggleSubViewItem = tsvi; }
|
- |
|
272 |
void regHideAllSubViewItems(std::function<void (ulong handle)> hasvi) { _hideAllSubViewItems = hasvi; }
|
- |
|
273 |
void regHideSubViewItem(std::function<void (ulong handle, ulong parent)> hsvi) { _hideSubViewItem = hsvi; }
|
- |
|
274 |
void regSetSubViewPadding(std::function<void (ulong handle, int padding)> ssvp) { _setSubViewPadding = ssvp; }
|
271 |
|
275 |
|
272 |
/**
|
276 |
/**
|
273 |
* The following function must be called to start non graphics part
|
277 |
* The following function must be called to start non graphics part
|
274 |
* of the panel simulator. If everything worked well, it returns TRUE.
|
278 |
* of the panel simulator. If everything worked well, it returns TRUE.
|
275 |
* otherwise a FALSE is returned and the program should be terminated.
|
279 |
* otherwise a FALSE is returned and the program should be terminated.
|
Line 533... |
Line 537... |
533 |
std::function<void (Button::TButton& button, unsigned char *buffer, int pixline)> getAddViewButtonItem() { return _addViewButtonItem; }
|
537 |
std::function<void (Button::TButton& button, unsigned char *buffer, int pixline)> getAddViewButtonItem() { return _addViewButtonItem; }
|
534 |
std::function<void (ulong parent, std::vector<PGSUBVIEWITEM_T> items)> getAddViewButtonItems() { return _addViewButtonItems; }
|
538 |
std::function<void (ulong parent, std::vector<PGSUBVIEWITEM_T> items)> getAddViewButtonItems() { return _addViewButtonItems; }
|
535 |
std::function<void (ulong handle, ulong parent, TBitmap buffer, TColor::COLOR_T fillColor)> getUpdateViewButton() { return _updateViewButton; }
|
539 |
std::function<void (ulong handle, ulong parent, TBitmap buffer, TColor::COLOR_T fillColor)> getUpdateViewButton() { return _updateViewButton; }
|
536 |
std::function<void (PGSUBVIEWITEM_T& item, ulong parent)> getUpdateViewButtonItem() { return _updateViewButtonItem; }
|
540 |
std::function<void (PGSUBVIEWITEM_T& item, ulong parent)> getUpdateViewButtonItem() { return _updateViewButtonItem; }
|
537 |
std::function<void (ulong handle, ulong parent, int position, int timer)> getShowSubViewItem() { return _showSubViewItem; }
|
541 |
std::function<void (ulong handle, ulong parent, int position, int timer)> getShowSubViewItem() { return _showSubViewItem; }
|
- |
|
542 |
std::function<void (ulong handle, ulong parent, int position, int timer)> getToggleSubViewItem() { return _toggleSubViewItem; }
|
- |
|
543 |
std::function<void (ulong handle)> getHideAllSubViewItems() { return _hideAllSubViewItems; }
|
- |
|
544 |
std::function<void (ulong handle, ulong parent)> getHideSubViewItem() { return _hideSubViewItem; }
|
- |
|
545 |
std::function<void (ulong handle, int padding)> getSetSubViewPadding() { return _setSubViewPadding; }
|
538 |
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
546 |
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
539 |
std::function<void (int orientation)> onOrientationChange() { return _onOrientationChange; }
|
547 |
std::function<void (int orientation)> onOrientationChange() { return _onOrientationChange; }
|
540 |
std::function<void (const std::string& oldNetlinx, int oldPort, int oldChannelID, const std::string& oldSurface, bool oldToolbarSuppress, bool oldToolbarForce)> onSettingsChanged() { return _onSettingsChanged; }
|
548 |
std::function<void (const std::string& oldNetlinx, int oldPort, int oldChannelID, const std::string& oldSurface, bool oldToolbarSuppress, bool oldToolbarForce)> onSettingsChanged() { return _onSettingsChanged; }
|
541 |
#endif
|
549 |
#endif
|
- |
|
550 |
bool getLevelSendState() { return mLevelSend; }
|
- |
|
551 |
bool getRxSendState() { return mRxOn; }
|
542 |
std::function<void ()> getRepaintWindows() { return _repaintWindows; }
|
552 |
std::function<void ()> getRepaintWindows() { return _repaintWindows; }
|
543 |
int getOrientation() { return mOrientation; }
|
553 |
int getOrientation() { return mOrientation; }
|
544 |
void setOrientation(int ori) { mOrientation = ori; }
|
554 |
void setOrientation(int ori) { mOrientation = ori; }
|
545 |
bool getInformOrientation() { return mInformOrientation; }
|
555 |
bool getInformOrientation() { return mInformOrientation; }
|
546 |
void sendOrientation();
|
556 |
void sendOrientation();
|
Line 637... |
Line 647... |
637 |
std::function<void (Button::TButton& button, unsigned char *buffer, int pixline)> _addViewButtonItem{nullptr};
|
647 |
std::function<void (Button::TButton& button, unsigned char *buffer, int pixline)> _addViewButtonItem{nullptr};
|
638 |
std::function<void (ulong handle, ulong parent, TBitmap buffer, TColor::COLOR_T fillColor)> _updateViewButton{nullptr};
|
648 |
std::function<void (ulong handle, ulong parent, TBitmap buffer, TColor::COLOR_T fillColor)> _updateViewButton{nullptr};
|
639 |
std::function<void (ulong parent, std::vector<PGSUBVIEWITEM_T> items)> _addViewButtonItems{nullptr};
|
649 |
std::function<void (ulong parent, std::vector<PGSUBVIEWITEM_T> items)> _addViewButtonItems{nullptr};
|
640 |
std::function<void (PGSUBVIEWITEM_T& item, ulong parent)> _updateViewButtonItem{nullptr};
|
650 |
std::function<void (PGSUBVIEWITEM_T& item, ulong parent)> _updateViewButtonItem{nullptr};
|
641 |
std::function<void (ulong handle, ulong parent, int position, int timer)> _showSubViewItem{nullptr};
|
651 |
std::function<void (ulong handle, ulong parent, int position, int timer)> _showSubViewItem{nullptr};
|
- |
|
652 |
std::function<void (ulong handle, ulong parent, int position, int timer)> _toggleSubViewItem{nullptr};
|
- |
|
653 |
std::function<void (ulong handle)> _hideAllSubViewItems{nullptr};
|
- |
|
654 |
std::function<void (ulong handle, ulong parent)> _hideSubViewItem{nullptr};
|
- |
|
655 |
std::function<void (ulong handle, int padding)> _setSubViewPadding{nullptr};
|
642 |
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
656 |
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
643 |
std::function<void (int orientation)> _onOrientationChange{nullptr};
|
657 |
std::function<void (int orientation)> _onOrientationChange{nullptr};
|
644 |
std::function<void (const std::string& oldNetlinx, int oldPort, int oldChannelID, const std::string& oldSurface, bool oldToolbarSuppress, bool oldToolbarForce)> _onSettingsChanged{nullptr};
|
658 |
std::function<void (const std::string& oldNetlinx, int oldPort, int oldChannelID, const std::string& oldSurface, bool oldToolbarSuppress, bool oldToolbarForce)> _onSettingsChanged{nullptr};
|
645 |
#endif
|
659 |
#endif
|
646 |
typedef struct _FTP_SURFACE_t
|
660 |
typedef struct _FTP_SURFACE_t
|
Line 708... |
Line 722... |
708 |
#ifndef _NOSIP_
|
722 |
#ifndef _NOSIP_
|
709 |
std::string sipStateToString(TSIPClient::SIP_STATE_t s);
|
723 |
std::string sipStateToString(TSIPClient::SIP_STATE_t s);
|
710 |
#endif
|
724 |
#endif
|
711 |
// List of command functions
|
725 |
// List of command functions
|
712 |
void doFTR(int port, std::vector<int>&, std::vector<std::string>& pars);
|
726 |
void doFTR(int port, std::vector<int>&, std::vector<std::string>& pars);
|
- |
|
727 |
void doLEVON(int, std::vector<int>&, std::vector<std::string>&);
|
- |
|
728 |
void doLEVOF(int, std::vector<int>&, std::vector<std::string>&);
|
- |
|
729 |
void doRXON(int, std::vector<int>&, std::vector<std::string>&);
|
- |
|
730 |
void doRXOF(int, std::vector<int>&, std::vector<std::string>&);
|
713 |
|
731 |
|
714 |
void doON(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
732 |
void doON(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
715 |
void doOFF(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
733 |
void doOFF(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
716 |
void doLEVEL(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
734 |
void doLEVEL(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
717 |
void doBLINK(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
735 |
void doBLINK(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
Line 825... |
Line 843... |
825 |
#ifndef _NOSIP_
|
843 |
#ifndef _NOSIP_
|
826 |
void doPHN(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
844 |
void doPHN(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
827 |
void getPHN(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
845 |
void getPHN(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
828 |
#endif
|
846 |
#endif
|
829 |
// Commands for subviews (G4/G5)
|
847 |
// Commands for subviews (G4/G5)
|
- |
|
848 |
void doSHA(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
- |
|
849 |
void doSHD(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
- |
|
850 |
void doSPD(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
830 |
void doSSH(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
851 |
void doSSH(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
- |
|
852 |
void doSTG(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
831 |
|
853 |
|
832 |
// Commands for ListView (G5)
|
854 |
// Commands for ListView (G5)
|
833 |
void doLVD(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
855 |
void doLVD(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
834 |
void doLVE(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
856 |
void doLVE(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
835 |
void doLVF(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
857 |
void doLVF(int port, std::vector<int>& channels, std::vector<std::string>& pars);
|
Line 846... |
Line 868... |
846 |
#endif
|
868 |
#endif
|
847 |
std::mutex surface_mutex;
|
869 |
std::mutex surface_mutex;
|
848 |
std::mutex click_mutex;
|
870 |
std::mutex click_mutex;
|
849 |
std::mutex updview_mutex;
|
871 |
std::mutex updview_mutex;
|
850 |
|
872 |
|
- |
|
873 |
bool mLevelSend{false}; // TRUE = Level changes are send to the master
|
- |
|
874 |
bool mRxOn{false}; // TRUE = String changes are send to master
|
851 |
int mActualPage{0}; // The number of the actual visible page
|
875 |
int mActualPage{0}; // The number of the actual visible page
|
852 |
int mPreviousPage{0}; // The number of the previous page
|
876 |
int mPreviousPage{0}; // The number of the previous page
|
853 |
int mSavedPage{0}; // The number of the last normal page. This is set immediately before a setup page is shown
|
877 |
int mSavedPage{0}; // The number of the last normal page. This is set immediately before a setup page is shown
|
854 |
int mFirstLeftPixel{0}; // Pixels to add to left (x) mouse coordinate
|
878 |
int mFirstLeftPixel{0}; // Pixels to add to left (x) mouse coordinate
|
855 |
int mFirstTopPixel{0}; // Pixels to add to top (y) mouse position
|
879 |
int mFirstTopPixel{0}; // Pixels to add to top (y) mouse position
|