📄 mapper.h
字号:
/*******************************************************************************//* Project: SOFTWARE RADIO - LCM Laboratoire de Communications Mobiles *//* -------------------------------------------------------------------------- *//* Filename: mapper.h *//* Description: The mapper is the object that decides in which order the *//* modules are to be drawn on the canvas. It then draws them. *//* This object contains the list of all modules (instances) *//* currently used in the software radio system. *//* -------------------------------------------------------------------------- *//* Date: January 09 2003 *//* Version: v1.0 *//* Author: Braure Jerome, Ferreiro Jose *//* Communication Systems (9th semester) - EPFL *//*******************************************************************************//*******************************************************************************//* 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 MAPPER_H#define MAPPER_H#include <qvaluevector.h>#include <qptrlist.h>#include "module.h"#include "iolink.h"#define MAX_STFAS 16class Mapper {public: Mapper(); void map(QCanvas* canvas); void addModule(Module* module); Module* getModule(int x, int y); Module* getModule(int moduleNumber); // 'Slot To Frame Allocation' module (the central module) Module* stfas[MAX_STFAS]; int stfaChosen; int stfaNbr; // list of all modules QPtrList<Module> moduleList; private: QPtrList<QCanvasLine> connectionList;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -