/* Copyright (C) 2013-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: DkClockTaskbarIcon.cpt */ /** @file DkClockTaskbarIcon.h Header file for the DkClockTaskbarIcon module. */ #ifndef DKCLOCKTASKBARICON_H_INCLUDED /** Avoid multiple inclusions. */ #define DKCLOCKTASKBARICON_H_INCLUDED 1 #line 10 "DkClockTaskbarIcon.cpt" class DkClockTaskbarIcon : public wxTaskBarIcon { private: /** Localized texts. */ wxChar const * const *sTexts; /** Parent window. */ wxFrame *wParent; public: /** Constructor. @param pParent Parent window. @param localizedTexts Localized texts. */ DkClockTaskbarIcon( wxFrame *pParent, wxChar const * const *localizedTexts #if defined(__WXCOCOA__) , wxTaskBarIconType iconType = DEFAULT_TYPE #endif ); /** Handler for double-click on taskbar icon. */ void OnLeftButtonDoubleClick(wxTaskBarIconEvent & event); /** Handler for menu item to restore window. */ void OnMenuRestore(wxCommandEvent & event); /** Handler for menu item to exit application. */ void OnMenuExit(wxCommandEvent & event); /** Create popup menu for taskbar icon. @return The menu just created. */ virtual wxMenu * CreatePopupMenu(); /** Event table for task bar icon. */ #if wxCHECK_VERSION(3,0,0) wxDECLARE_EVENT_TABLE(); #else DECLARE_EVENT_TABLE() #endif }; #endif