📄 tool_view.h
字号:
/* --------------------------------------------------------------------- * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -