channelview.cpp

来自「This a framework to test new ideas in tr」· C++ 代码 · 共 53 行

CPP
53
字号
/***************************************************************************         channelview.cpp  -  Shows one or more channels                            -------------------    begin                :  2003    authors              :  Linus Gasser    emails               :  linus.gasser@epfl.ch ***************************************************************************//***************************************************************************                                 Changes                                 ------- date - name - description 03/01/20 - ineiti - begin **************************************************************************//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************/#include <qwidget.h>#include <qlayout.h>#include <qlabel.h>#include "channelview.h"ChannelView::ChannelView( QString path ) : QWidget(0,"widget") {  server = new ServerPlug( path );  ch_nbr = server->getNbrChannels();  max_filter = server->getMaxFilterLength();  QHBoxLayout *hBox = new QHBoxLayout( this, 5, 5, "horizontal" );    for ( int i = 0; i < ch_nbr; i++ ){    Channel *ch = new Channel( this, server, i );    hBox->addWidget( ch );  }}ChannelView::~ChannelView(){}

⌨️ 快捷键说明

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