Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CreateHelpWindow.cpp
Go to the documentation of this file.
1 /******************************************************************************************************
2  * (C) 2018 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #include "CreateHelpWindow.h"
8 #include "HelpWindow.h"
9 #include "Logger.h"
10 #include "MainWindow.h"
11 #include <QAction>
12 
14 {
15 }
16 
18 #if !defined(OSX_DEBUG) && !defined(OSX_RELEASE)
19  mw
20 #endif
21  )
22 {
23  LOG4CPP_INFO_S ((*mainCat)) << "CreateHelpWindow::create";
24 
25 #if !defined(OSX_DEBUG) && !defined(OSX_RELEASE)
26  mw.m_helpWindow = new HelpWindow (&mw);
27  mw.m_helpWindow->hide ();
28  mw.addDockWidget (Qt::RightDockWidgetArea,
29  mw.m_helpWindow); // Dock area is required by addDockWidget but immediately overridden in next line
30  mw.m_helpWindow->setFloating (true);
31 
32  connect (mw.m_actionHelpHelp, SIGNAL (triggered ()), mw.m_helpWindow, SLOT (show ()));
33 #endif
34 }
35 
Dockable help window.
Definition: HelpWindow.h:16
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
void create(MainWindow &mw)
Create HelpWindow.
log4cpp::Category * mainCat
Definition: Logger.cpp:14
CreateHelpWindow()
Single constructor.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:91