"Fossies" - the Fresh Open Source Software Archive

Member "google-gadgets-for-linux-0.11.2/ggadget/details_view_decorator.h" (15 Mar 2009, 1346 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_DETAILS_VIEW_DECORATOR_H__
   18 #define GGADGET_DETAILS_VIEW_DECORATOR_H__
   19 
   20 #include <ggadget/framed_view_decorator_base.h>
   21 
   22 namespace ggadget {
   23 
   24 /**
   25  * @ingroup ViewDecorator
   26  *
   27  * Decorator for details view.
   28  */
   29 class DetailsViewDecorator : public FramedViewDecoratorBase {
   30  public:
   31   DetailsViewDecorator(ViewHostInterface *host);
   32   virtual ~DetailsViewDecorator();
   33 
   34  public:
   35   virtual bool ShowDecoratedView(bool modal, int flags,
   36                                  Slot1<bool, int> *feedback_handler);
   37   virtual void CloseDecoratedView();
   38 
   39  protected:
   40   virtual void OnCaptionClicked();
   41 
   42  private:
   43   class Impl;
   44   Impl *impl_;
   45   DISALLOW_EVIL_CONSTRUCTORS(DetailsViewDecorator);
   46 };
   47 
   48 } // namespace ggadget
   49 
   50 #endif // GGADGET_DETAILS_VIEW_DECORATOR_H__