selectionpopup.h

来自「celestia源代码」· C头文件 代码 · 共 47 行

H
47
字号
/***************************************************************************                          selectionpopup.h  -  description                             -------------------    begin                : 2003-05-06    copyright            : (C) 2002 by Christophe Teyssier    email                : chris@teyssier.org ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef SELECTIONPOPUP_H#define SELECTIONPOPUP_H#include <kpopupmenu.h>#include "celestiacore.h"#ifdef HAVE_CONFIG_H#include <config.h>#endif#define MENUMAXSIZE 100class SelectionPopup : public KPopupMenu {Q_OBJECTpublic:    SelectionPopup(QWidget* parent, CelestiaCore* appCore, Selection sel);    void init();    void process(int id);protected:    CelestiaCore* appCore;    const char* getSelectionName(const Selection& sel) const;    Selection getSelectionFromId(Selection sel, int id) const;    void insert(KPopupMenu* popup, Selection sel, int baseId, bool showSubObjects = true);    Selection sel;};#endif // SELECTIONPOPUP_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?