File indexing completed on 2024-05-12 05:34:34

0001 #ifndef oxygenmenuitemengine_h
0002 #define oxygenmenuitemengine_h
0003 /*
0004 * this file is part of the oxygen gtk engine
0005 * SPDX-FileCopyrightText: 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0006 *
0007 * SPDX-License-Identifier: LGPL-2.0-or-later
0008 */
0009 
0010 
0011 #include "oxygengenericengine.h"
0012 #include "oxygendatamap.h"
0013 #include "oxygenmenuitemdata.h"
0014 
0015 #include <gtk/gtk.h>
0016 
0017 namespace Oxygen
0018 {
0019     //! forward declaration
0020     class Animations;
0021 
0022     //! stores data associated to editable menuitemes
0023     /*!
0024     ensures that the text entry and the button of editable menuitemes
0025     gets hovered and focus flags at the same time
0026     */
0027     class MenuItemEngine: public GenericEngine<MenuItemData>
0028     {
0029 
0030         public:
0031 
0032         //! constructor
0033         MenuItemEngine( Animations* widget ):
0034             GenericEngine<MenuItemData>( widget )
0035             {}
0036 
0037         //! destructor
0038         virtual ~MenuItemEngine( void )
0039         {}
0040 
0041         //! register all menuItems children of a menu
0042         virtual bool registerMenu( GtkWidget* );
0043 
0044     };
0045 
0046 }
0047 
0048 #endif