⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 options_page.h

📁 Linux平台下的内核及程序调试器
💻 H
字号:
/* ----------------------------------------------------------------------  * Definition of class OptionsPage                         options_page.h *  * Each vkObject has different options | flags | prefs, and  * creates its own 'page', which is inherited from this base class.  * The 'page' is contained within the top-level Options Window. * ----------------------------------------------------------------------  * This file is part of Valkyrie, a front-end for Valgrind * Copyright (c) 2000-2006, OpenWorks LLP <info@open-works.co.uk> * This program is released under the terms of the GNU GPL v.2 * See the file LICENSE.GPL for the full license details. */#ifndef __VK_OPTIONS_PAGE_H#define __VK_OPTIONS_PAGE_H#include <qapplication.h>#include <qgroupbox.h>#include <qfiledialog.h>#include <qintdict.h>#include <qlayout.h>#include <qradiobutton.h>#include "options_widgets.h"/* class OptionsPage --------------------------------------------------- */class VkObject;class OptionsPage : public QWidget{   Q_OBJECTpublic:   OptionsPage( QWidget* parent, VkObject* obj, const char* name );   ~OptionsPage();   bool rejectEdits();   bool applyEdits();   bool isModified() { return m_mod; }   void resetDefaults();   /* init page on open */   virtual void init() { /*do nothing*/ }   int optId();signals:   void modified();   void apply();public slots:   void updateEditList( bool, OptionWidget * );protected:   QFrame* sep( QWidget* parent, const char* name );   OptionWidget* optionWidget( int optid, QWidget* parent, bool mklabel );   bool checkOption( unsigned int optId );   /* apply option: update Valkyrie state dependent on this option */   virtual void applyOption( int id ) = 0;protected:   bool m_mod;    int  m_topSpace, m_space, m_margin;   VkObject* m_vkObj;   /* prime numbers: 5, 7, 11, 13, 17, 19, 23, 29 */   QIntDict<OptionWidget> m_itemList;   QPtrList<OptionWidget> m_editList;};#endif

⌨️ 快捷键说明

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