Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

selectionpopup.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           selectionpopup.h  -  description
00003                              -------------------
00004     begin                : 2003-05-06
00005     copyright            : (C) 2002 by Christophe Teyssier
00006     email                : chris@teyssier.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef SELECTIONPOPUP_H
00019 #define SELECTIONPOPUP_H
00020 
00021 #include <kpopupmenu.h>
00022 #include "celestiacore.h"
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include <config.h>
00026 #endif
00027 
00028 #define MENUMAXSIZE 100
00029 
00030 
00031 class SelectionPopup : public KPopupMenu {
00032 Q_OBJECT
00033 public:
00034     SelectionPopup(QWidget* parent, CelestiaCore* appCore, Selection sel);
00035     void init();
00036     void process(int id);
00037 
00038 protected:
00039     CelestiaCore* appCore;
00040     const char* getSelectionName(const Selection& sel) const;
00041     Selection getSelectionFromId(Selection sel, int id) const;
00042     void insert(KPopupMenu* popup, Selection sel, int baseId, bool showSubObjects = true);
00043     Selection sel;
00044 };
00045 
00046 #endif // SELECTIONPOPUP_H

Generated on Sat Jan 14 22:30:31 2006 for Celestia by  doxygen 1.4.1