"Fossies" - the Fresh Open Source Software Archive

Member "google-gadgets-for-linux-0.11.2/ggadget/scriptable_menu.h" (15 Mar 2009, 1243 Bytes) of package /linux/misc/old/google-gadgets-for-linux-0.11.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2   Copyright 2008 Google Inc.
    3 
    4   Licensed under the Apache License, Version 2.0 (the "License");
    5   you may not use this file except in compliance with the License.
    6   You may obtain a copy of the License at
    7 
    8        http://www.apache.org/licenses/LICENSE-2.0
    9 
   10   Unless required by applicable law or agreed to in writing, software
   11   distributed under the License is distributed on an "AS IS" BASIS,
   12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13   See the License for the specific language governing permissions and
   14   limitations under the License.
   15 */
   16 
   17 #ifndef GGADGET_SCRIPTABLE_MENU_H__
   18 #define GGADGET_SCRIPTABLE_MENU_H__
   19 
   20 #include <ggadget/scriptable_helper.h>
   21 
   22 namespace ggadget {
   23 
   24 class MenuInterface;
   25 class Gadget;
   26 
   27 /**
   28  * @ingroup ScriptableObjects
   29  *
   30  * Scriptable decorator for MenuInterface.
   31  */
   32 class ScriptableMenu : public ScriptableHelperDefault {
   33  public:
   34   DEFINE_CLASS_ID(0x95432249155845d6, ScriptableInterface)
   35 
   36   ScriptableMenu(Gadget *gadget, MenuInterface *menu);
   37   virtual ~ScriptableMenu();
   38 
   39  protected:
   40   virtual void DoClassRegister();
   41 
   42  private:
   43   DISALLOW_EVIL_CONSTRUCTORS(ScriptableMenu);
   44   class Impl;
   45   Impl *impl_;
   46 };
   47 
   48 } // namespace ggadget
   49 
   50 #endif  // GGADGET_SCRIPTABLE_MENU_H__