recordreaderconnector.cpp
1 /***************************************************************************
2  Copyright (C) 2002-2015 Kentaro Kitagawa
3  kitagawa@phys.s.u-tokyo.ac.jp
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  You should have received a copy of the GNU Library General
11  Public License and a list of authors along with this program;
12  see the files COPYING and AUTHORS.
13 ***************************************************************************/
14 //---------------------------------------------------------------------------
15 #include "recordreaderconnector.h"
16 #include "recordreader.h"
17 #include <QPushButton>
18 
19 #include "ui_recordreaderform.h"
20 
21 XRawStreamRecordReaderConnector::XRawStreamRecordReaderConnector(
22  const shared_ptr<XRawStreamRecordReader> &reader, FrmRecordReader *form) :
23  XQConnector(reader, form),
24  m_reader(reader),
25  m_pForm(form),
26  m_conRecordFile(xqcon_create<XFilePathConnector>(
27  reader->filename(), form->m_edPath, form->m_btnPath,
28  ("Binary files (*.bin);;All files (*.*)"), false)),
29  m_conFF(xqcon_create<XQToggleButtonConnector>(reader->fastForward(), form->btnFF)),
30  m_conRW(xqcon_create<XQToggleButtonConnector>(reader->rewind(), form->btnRW)),
31  m_conStop(xqcon_create<XQButtonConnector>(reader->stop(), form->btnStop)),
32  m_conFirst(xqcon_create<XQButtonConnector>(reader->first(), form->btnFirst)),
33  m_conNext(xqcon_create<XQButtonConnector>(reader->next(), form->btnNext)),
34  m_conBack(xqcon_create<XQButtonConnector>(reader->back(), form->btnBack)),
35  m_conPosString(xqcon_create<XQLineEditConnector>(reader->posString(), form->edTime)),
36  m_conSpeed(xqcon_create<XQComboBoxConnector>(reader->speed(), form->cmbSpeed, Snapshot( *reader->speed()))) {
37 
38  form->btnNext->setIcon(
39  QApplication::style()->standardIcon(QStyle::SP_MediaSeekForward));
40  form->btnBack->setIcon(
41  QApplication::style()->standardIcon(QStyle::SP_MediaSeekBackward));
42  form->btnFF->setIcon(
43  QApplication::style()->standardIcon(QStyle::SP_MediaSkipForward));
44  form->btnRW->setIcon(
45  QApplication::style()->standardIcon(QStyle::SP_MediaSkipBackward));
46  form->btnFirst->setIcon(
47  QApplication::style()->standardIcon(QStyle::SP_MediaPlay));
48  form->btnStop->setIcon(
49  QApplication::style()->standardIcon(QStyle::SP_MediaPause));
50 }

Generated for KAME4 by  doxygen 1.8.3