/* SECU-3  - An open source, free engine control unit
   Copyright (C) 2007 Alexey A. Shabelnikov. Ukraine, Kiev

   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 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.

   contacts:
              http://secu-3.org
              email: shabelnikov@secu-3.org
*/

/** \file ChildViewManager.h
 * \author Alexey A. Shabelnikov
 */

#pragma once

#include <memory>

class CChildView;
class CMainFrame;
class CMainTabController;

class CChildViewManager
{
 public:
  CChildViewManager();
  virtual ~CChildViewManager();

  bool Init(CMainFrame* i_pMainFrame);

  virtual bool OnClose(void);
  virtual void OnCloseNotify(void);
  virtual bool OnAskFullScreen(void);
  virtual void OnFullScreen(bool i_what);

 private:
  std::auto_ptr<CChildView> mp_wndView;
  std::auto_ptr<CMainTabController> mp_MainTabController;

  //контроллеры вкладок
  class CParamMonTabController* m_pParamMonTabController;
  class CFirmwareTabController* m_pFirmwareTabController;
  class CCheckEngineTabController* m_pCheckEngineTabController;
  class CKnockChannelTabController* m_pKnockChannelTabController;
  class CLogPlayerTabController* m_pLogPlayerTabController;
  class CDevDiagnostTabController* m_pDevDiagnostTabController;

  //диалоги вкладок
  class CParamMonTabDlg* m_pParamMonTabDlg;
  class CFirmwareTabDlg* m_pFirmwareTabDlg;
  class CCheckEngineTabDlg* m_pCheckEngineTabDlg;
  class CKnockChannelTabDlg* m_pKnockChannelTabDlg;
  class CLogPlayerTabDlg* m_pLogPlayerTabDlg;
  class CDevDiagnostTabDlg* m_pDevDiagnostTabDlg;
};
