tool_view.h

来自「Linux平台下的内核及程序调试器」· C头文件 代码 · 共 79 行

H
79
字号
/* --------------------------------------------------------------------- * Definition of ToolView                                    tool_view.h * Base class for all tool views * --------------------------------------------------------------------- * 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_TOOL_VIEW_H#define __VK_TOOL_VIEW_H#include "tool_object.h"  // VkRunState#include <qmainwindow.h>#include <qwidget.h>#include <qwidgetstack.h>class ToolView : public QMainWindow{   Q_OBJECTpublic:   ToolView( QWidget* parent, const char* name );   ~ToolView();   void setToolFont( QFont font ); /* sets font of central widget */public slots:   virtual void toggleToolbarLabels(bool) = 0;   /* called by the view's object */   virtual void setState( bool run ) = 0;signals:   /* start appropriate process for given runState */   void run( VkRunState::State );protected:   QWidget* central;};/* ToolViewStack */typedef QPtrList<ToolView> ToolViewList;typedef QPtrListIterator<ToolView> ToolViewListIter;class ToolViewStack : public QWidgetStack{   Q_OBJECTpublic:   ToolViewStack( QWidget * parent = 0, const char * name = 0 );   ToolViewStack( QWidget * parent, const char * name, WFlags f );   ~ToolViewStack();   int addView( ToolView* tv, int id );   void removeView( QWidget* w );   ToolView* view( int id ) const;   const ToolViewList* viewList();   ToolView* nextView( ToolView* lastView = 0 );   ToolView* visible();   /* return currently-visible view */   int visibleId();       /* return id of currently-visible view */   void listViews();public slots:   void raiseView( int id );   void raiseView( ToolView* tv );};#endif

⌨️ 快捷键说明

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