?? toolfactory.cc
字號:
/** @file ToolFactory class, factory that will create special toobar items @author Martin Petricek*/#include "toolfactory.h"//The toolbar items to create//in future ...//Other includes needed#include "toolbar.h"#include <util.h>#include <qobject.h>#include <qstring.h>namespace gui {/** Check if given item name is a special item and load it if it is special item @param tb Toolbar for addition of item @param item Item name @param main Main window associated with this special item @return Pointer to button, if special item was loaded and inserted into toolbar, NULL if item is not a special item*/QWidget *ToolFactory::specialItem(ToolBar *,const QString &item,QMainWindow *) { //All special items start with underscore character if (!item.startsWith("_")) return NULL; QString itemName=item.section(' ',0,0); QString itemParam=item.section(' ',1);/* if (itemName=="_zoom_tool") { //Add ZoomTool to toolbar and return ZoomTool *tool =new ZoomTool(tb,"zoom"); //init ... tool->show(); return tool; }*/ return NULL;}} // namespace gui
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -