KiCad PCB EDA Suite
kiway.cpp
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2014 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
5  * Copyright (C) 2014-2017 KiCad Developers, see CHANGELOG.TXT for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
25 #include <string.h>
26 
27 #include <macros.h>
28 #include <kiway.h>
29 #include <kiway_player.h>
30 #include <kiway_express.h>
31 #include <pgm_base.h>
32 #include <config.h>
33 #include <id.h>
34 
35 #include <wx/stdpaths.h>
36 #include <wx/debug.h>
37 #include <wx/utils.h>
38 
39 
40 KIFACE* KIWAY::m_kiface[KIWAY_FACE_COUNT];
41 int KIWAY::m_kiface_version[KIWAY_FACE_COUNT];
42 
43 
44 
45 KIWAY::KIWAY( PGM_BASE* aProgram, int aCtlBits, wxFrame* aTop ):
46  m_program( aProgram ), m_ctl( aCtlBits ), m_top( 0 )
47 {
48  SetTop( aTop ); // hook player_destroy_handler() into aTop.
49 
50 
51  // Prepare the room to store the frame names, once they will be created
52  // with FRAME_T type as index in this table.
53  // (note this is a list of frame names, but a non empty entry
54  // does not mean the frame still exists. It means only the frame was created
55  // at least once. It can be destroyed after. These entries are not cleared.
56  // the purpose is just to allow a call to wxWindow::FindWindowByName(), from
57  // a FRAME_T frame type
58  m_playerFrameName.Add( wxEmptyString, KIWAY_PLAYER_COUNT );
59 }
60 
61 
62 #if 0
63 // Any event types derived from wxCommandEvt, like wxWindowDestroyEvent, are
64 // propagated upwards to parent windows if not handled below. Therefore the
65 // m_top window should receive all wxWindowDestroyEvents originating from
66 // KIWAY_PLAYERs. It does anyways, but now player_destroy_handler eavesdrops
67 // on that event stream looking for KIWAY_PLAYERs being closed.
68 
69 void KIWAY::player_destroy_handler( wxWindowDestroyEvent& event )
70 {
71  // Currently : do nothing
72  event.Skip(); // skip to who, the wxApp? I'm the top window.
73 }
74 #endif
75 
76 
77 void KIWAY::SetTop( wxFrame* aTop )
78 {
79 #if 0
80  if( m_top )
81  {
82  m_top->Disconnect( wxEVT_DESTROY, wxWindowDestroyEventHandler( KIWAY::player_destroy_handler ), NULL, this );
83  }
84 
85  if( aTop )
86  {
87  aTop->Connect( wxEVT_DESTROY, wxWindowDestroyEventHandler( KIWAY::player_destroy_handler ), NULL, this );
88  }
89 #endif
90 
91  m_top = aTop;
92 }
93 
94 
95 const wxString KIWAY::dso_search_path( FACE_T aFaceId )
96 {
97  const char* name;
98  const char* dirName;
99 
100  switch( aFaceId )
101  {
102  case FACE_SCH: name = KIFACE_PREFIX "eeschema"; break;
103  case FACE_PCB: name = KIFACE_PREFIX "pcbnew"; break;
104  case FACE_CVPCB: name = KIFACE_PREFIX "cvpcb"; break;
105  case FACE_GERBVIEW: name = KIFACE_PREFIX "gerbview"; break;
106  case FACE_PL_EDITOR: name = KIFACE_PREFIX "pl_editor"; break;
107  case FACE_PCB_CALCULATOR: name = KIFACE_PREFIX "pcb_calculator"; break;
108  case FACE_BMP2CMP: name = KIFACE_PREFIX "bitmap2component"; break;
109 
110  default:
111  wxASSERT_MSG( 0, wxT( "caller has a bug, passed a bad aFaceId" ) );
112  return wxEmptyString;
113  }
114 
115  // The subdirectories usually have the same name as the kiface
116  switch( aFaceId )
117  {
118  case FACE_PL_EDITOR: dirName = "pagelayout_editor"; break;
119  default: dirName = name + 1; break;
120  }
121 
122 #ifndef __WXMAC__
123  wxString path;
124 
126  {
127  // The 2 *.cpp program launchers: single_top.cpp and kicad.cpp expect
128  // the *.kiface's to reside in same directory as their binaries do.
129  // Not so for python launcher, identified by KFCTL_PY_PROJECT_SUITE
130  path = wxStandardPaths::Get().GetExecutablePath();
131  }
132 
133  wxFileName fn = path;
134 #else
135  // we have the dso's in main OSX bundle kicad.app/Contents/PlugIns
136  wxFileName fn = Pgm().GetExecutablePath();
137  fn.AppendDir( wxT( "Contents" ) );
138  fn.AppendDir( wxT( "PlugIns" ) );
139 #endif
140 
141  fn.SetName( name );
142 
143 #ifdef DEBUG
144  // To speed up development, it's sometimes nice to run kicad from inside
145  // the build path. In that case, each program will be in a subdirectory.
146  // To find the DSOs, we need to go up one directory and then enter a subdirectory.
147 
148  if( wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
149  {
150 #ifdef __WXMAC__
151  fn = wxStandardPaths::Get().GetExecutablePath();
152  fn.RemoveLastDir();
153  fn.AppendDir( wxT( "PlugIns" ) );
154  fn.SetName( name );
155 #else
156  fn.RemoveLastDir();
157  fn.AppendDir( dirName );
158 #endif
159  }
160 #endif
161 
162  // Here a "suffix" == an extension with a preceding '.',
163  // so skip the preceding '.' to get an extension
164  fn.SetExt( KIFACE_SUFFIX + 1 ); // + 1 => &KIFACE_SUFFIX[1]
165 
166  return fn.GetFullPath();
167 }
168 
169 
171 {
172  return *(PROJECT*) &m_project; // strip const-ness, function really is const.
173 }
174 
175 
176 KIFACE* KIWAY::KiFACE( FACE_T aFaceId, bool doLoad )
177 {
178  // Since this will be called from python, cannot assume that code will
179  // not pass a bad aFaceId.
180  if( (unsigned) aFaceId >= arrayDim( m_kiface ) )
181  {
182  // @todo : throw an exception here for python's benefit, at least that
183  // way it gets some explanatory text.
184 
185  wxASSERT_MSG( 0, wxT( "caller has a bug, passed a bad aFaceId" ) );
186  return NULL;
187  }
188 
189  // return the previously loaded KIFACE, if it was.
190  if( m_kiface[aFaceId] )
191  return m_kiface[aFaceId];
192 
193  wxString msg;
194 
195  // DSO with KIFACE has not been loaded yet, does caller want to load it?
196  if( doLoad )
197  {
198  wxString dname = dso_search_path( aFaceId );
199 
200  wxDynamicLibrary dso;
201 
202  void* addr = NULL;
203 
204  if( !dso.Load( dname, wxDL_VERBATIM | wxDL_NOW | wxDL_GLOBAL ) )
205  {
206  // Failure: error reporting UI was done via wxLogSysError().
207  // No further reporting required here. Apparently this is not true on all
208  // platforms and/or wxWidgets builds and KiCad will crash. Throwing the exception
209  // here and catching it in the KiCad launcher resolves the crash issue. See bug
210  // report https://bugs.launchpad.net/kicad/+bug/1577786.
211 
212  msg.Printf( _( "Failed to load kiface library \"%s\"." ), GetChars( dname ) );
213  THROW_IO_ERROR( msg );
214  }
215  else if( ( addr = dso.GetSymbol( wxT( KIFACE_INSTANCE_NAME_AND_VERSION ) ) ) == NULL )
216  {
217  // Failure: error reporting UI was done via wxLogSysError().
218  // No further reporting required here. Assume the same thing applies here as
219  // above with the Load() call. This has not been tested.
220  msg.Printf(
221  _( "Could not read instance name and version symbol form kiface library \"%s\"." ),
222  GetChars( dname ) );
223  THROW_IO_ERROR( msg );
224  }
225  else
226  {
227  KIFACE_GETTER_FUNC* getter = (KIFACE_GETTER_FUNC*) addr;
228 
229  KIFACE* kiface = getter( &m_kiface_version[aFaceId], KIFACE_VERSION, m_program );
230 
231  // KIFACE_GETTER_FUNC function comment (API) says the non-NULL is unconditional.
232  wxASSERT_MSG( kiface,
233  wxT( "attempted DSO has a bug, failed to return a KIFACE*" ) );
234 
235  // Give the DSO a single chance to do its "process level" initialization.
236  // "Process level" specifically means stay away from any projects in there.
237  if( kiface->OnKifaceStart( m_program, m_ctl ) )
238  {
239  // Tell dso's wxDynamicLibrary destructor not to Unload() the program image.
240  (void) dso.Detach();
241 
242  return m_kiface[aFaceId] = kiface;
243  }
244  }
245 
246  // In any of the failure cases above, dso.Unload() should be called here
247  // by dso destructor.
248  // However:
249 
250  // There is a file installation bug. We only look for KIFACE_I's which we know
251  // to exist, and we did not find one. If we do not find one, this is an
252  // installation bug.
253 
254  msg = wxString::Format( _(
255  "Fatal Installation Bug. File:\n"
256  "\"%s\"\ncould not be loaded\n" ), GetChars( dname ) );
257 
258  if( ! wxFileExists( dname ) )
259  msg << _( "It is missing.\n" );
260  else
261  msg << _( "Perhaps a shared library (.dll or .so) file is missing.\n" );
262 
263  msg << _( "From command line: argv[0]:\n'" );
264  msg << wxStandardPaths::Get().GetExecutablePath() << wxT( "'\n" );
265 
266  // This is a fatal error, one from which we cannot recover, nor do we want
267  // to protect against in client code which would require numerous noisy
268  // tests in numerous places. So we inform the user that the installation
269  // is bad. This exception will likely not get caught until way up in the
270  // wxApp derivative, at which point the process will exit gracefully.
271  THROW_IO_ERROR( msg );
272  }
273 
274  return NULL;
275 }
276 
277 
279 {
280  switch( aFrameType )
281  {
282  case FRAME_SCH:
284  case FRAME_SCH_VIEWER:
286  case FRAME_SIMULATOR:
287  return FACE_SCH;
288 
289  case FRAME_PCB_EDITOR:
294  case FRAME_PCB_DISPLAY3D:
295  return FACE_PCB;
296 
297  case FRAME_CVPCB:
298  case FRAME_CVPCB_DISPLAY:
299  return FACE_CVPCB;
300 
301  case FRAME_GERBER:
302  return FACE_GERBVIEW;
303 
304  case FRAME_PL_EDITOR:
305  return FACE_PL_EDITOR;
306 
307  case FRAME_CALC:
308  return FACE_PCB_CALCULATOR;
309 
310  case FRAME_BM2CMP:
311  return FACE_BMP2CMP;
312 
313  default:
314  return FACE_T( -1 );
315  }
316 }
317 
318 
320 {
321  if( m_playerFrameName[aFrameType].IsEmpty() )
322  return NULL;
323 
324  return static_cast<KIWAY_PLAYER*>( wxWindow::FindWindowByName( m_playerFrameName[aFrameType] ) );
325 }
326 
327 
328 KIWAY_PLAYER* KIWAY::Player( FRAME_T aFrameType, bool doCreate, wxTopLevelWindow* aParent )
329 {
330  // Since this will be called from python, cannot assume that code will
331  // not pass a bad aFrameType.
332  if( (unsigned) aFrameType >= KIWAY_PLAYER_COUNT )
333  {
334  // @todo : throw an exception here for python's benefit, at least that
335  // way it gets some explanatory text.
336 
337  wxASSERT_MSG( 0, wxT( "caller has a bug, passed a bad aFrameType" ) );
338  return NULL;
339  }
340 
341  // return the previously opened window
342  KIWAY_PLAYER* frame = GetPlayerFrame( aFrameType );
343 
344  if( frame )
345  return frame;
346 
347  if( doCreate )
348  {
349  FACE_T face_type = KifaceType( aFrameType );
350  wxASSERT( face_type != FACE_T(-1) );
351 
352  KIFACE* kiface = KiFACE( face_type );
353  wxASSERT( kiface );
354 
355  if( kiface )
356  {
357  frame = (KIWAY_PLAYER*) kiface->CreateWindow(
358  aParent, // Parent window of frame in modal mode, NULL in non modal mode
359  aFrameType,
360  this,
361  m_ctl // questionable need, these same flags where passed
362  // to the KIFACE::OnKifaceStart()
363  );
364  wxASSERT( frame );
365 
366  m_playerFrameName[aFrameType] = frame->GetName();
367 
368  return frame;
369  }
370  }
371 
372  return NULL;
373 }
374 
375 
376 bool KIWAY::PlayerClose( FRAME_T aFrameType, bool doForce )
377 {
378  // Since this will be called from python, cannot assume that code will
379  // not pass a bad aFrameType.
380  if( (unsigned) aFrameType >= KIWAY_PLAYER_COUNT )
381  {
382  // @todo : throw an exception here for python's benefit, at least that
383  // way it gets some explanatory text.
384 
385  wxASSERT_MSG( 0, wxT( "caller has a bug, passed a bad aFrameType" ) );
386  return false;
387  }
388 
389  KIWAY_PLAYER* frame = GetPlayerFrame( aFrameType );
390 
391  if( frame == NULL ) // Already closed
392  return true;
393 
394  if( frame->Close( doForce ) )
395  return true;
396 
397  return false;
398 }
399 
400 
401 bool KIWAY::PlayersClose( bool doForce )
402 {
403  bool ret = true;
404 
405  for( unsigned i=0; i < KIWAY_PLAYER_COUNT; ++i )
406  {
407  ret = ret && PlayerClose( FRAME_T( i ), doForce );
408  }
409 
410  return ret;
411 }
412 
413 
414 void KIWAY::ExpressMail( FRAME_T aDestination, MAIL_T aCommand, std::string& aPayload, wxWindow* aSource )
415 {
416  KIWAY_EXPRESS mail( aDestination, aCommand, aPayload, aSource );
417 
418  ProcessEvent( mail );
419 }
420 
421 
422 void KIWAY::SetLanguage( int aLanguage )
423 {
424  Pgm().SetLanguageIdentifier( aLanguage );
425  Pgm().SetLanguage();
426 
427 #if 1
428  // This is a risky hack that goes away if we allow the language to be
429  // set only from the top most frame if !Kiface.IsSingle()
430 
431  // Only for the C++ project manager, and not for the python one and not for
432  // single_top do we look for the EDA_BASE_FRAME as the top level window.
433  // For single_top this is not needed because that window is registered in
434  // the array below.
436  {
437  // A dynamic_cast could be better, but creates link issues
438  // (some basic_frame functions not found) on some platforms,
439  // so a static_cast is used.
440  EDA_BASE_FRAME* top = static_cast<EDA_BASE_FRAME*>( m_top );
441 
442  if( top )
443  top->ShowChangedLanguage();
444  }
445 #endif
446 
447  for( unsigned i=0; i < KIWAY_PLAYER_COUNT; ++i )
448  {
449  KIWAY_PLAYER* frame = GetPlayerFrame( ( FRAME_T )i );
450 
451  if( frame )
452  {
453  frame->ShowChangedLanguage();
454  }
455  }
456 }
457 
458 void KIWAY::CommonSettingsChanged( bool aEnvVarsChanged )
459 {
460 #if 1
462  {
463  // A dynamic_cast could be better, but creates link issues
464  // (some basic_frame functions not found) on some platforms,
465  // so a static_cast is used.
466  EDA_BASE_FRAME* top = static_cast<EDA_BASE_FRAME*>( m_top );
467 
468  if( top )
469  top->CommonSettingsChanged( aEnvVarsChanged );
470  }
471 #endif
472 
473  for( unsigned i=0; i < KIWAY_PLAYER_COUNT; ++i )
474  {
475  KIWAY_PLAYER* frame = GetPlayerFrame( ( FRAME_T )i );
476 
477  if( frame )
478  frame->CommonSettingsChanged( aEnvVarsChanged );
479  }
480 }
481 
482 
483 bool KIWAY::ProcessEvent( wxEvent& aEvent )
484 {
485  KIWAY_EXPRESS* mail = dynamic_cast<KIWAY_EXPRESS*>( &aEvent );
486 
487  if( mail )
488  {
489  FRAME_T dest = mail->Dest();
490 
491  // see if recipient is alive
492  KIWAY_PLAYER* alive = Player( dest, false );
493 
494  if( alive )
495  {
496 #if 1
497  return alive->ProcessEvent( aEvent );
498 #else
499  alive->KiwayMailIn( *mail );
500  return true;
501 #endif
502  }
503  }
504 
505  return false;
506 }
507 
508 
510 {
512  {
513  // A dynamic_cast could be better, but creates link issues
514  // (some basic_frame functions not found) on some platforms,
515  // so a static_cast is used.
516  EDA_BASE_FRAME* top = static_cast<EDA_BASE_FRAME*>( m_top );
517 
518  if( top )
519  top->Close( false );
520  }
521 }
522 
523 
525 {
526  for( KIFACE* i : m_kiface )
527  {
528  if( i )
529  i->OnKifaceEnd();
530  }
531 }
#define KFCTL_CPP_PROJECT_SUITE
Am running under C++ project mgr, possibly with others.
Definition: kiway.h:160
VTBL_ENTRY bool PlayersClose(bool doForce)
Function PlayersClose calls the KIWAY_PLAYER::Close( bool force ) function on all the windows and if ...
Definition: kiway.cpp:401
Class KIWAY_PLAYER is a wxFrame capable of the OpenProjectFiles function, meaning it can load a porti...
Definition: kiway_player.h:59
Class KIWAY_EXPRESS carries a payload from one KIWAY_PLAYER to another within a PROJECT.
Definition: kiway_express.h:39
void OnKiCadExit()
Definition: kiway.cpp:509
Class PROJECT holds project specific data.
Definition: project.h:58
static FACE_T KifaceType(FRAME_T aFrameType)
Function KifaceType is a simple mapping function which returns the FACE_T which is known to implement...
Definition: kiway.cpp:278
KIWAY_PLAYER * GetPlayerFrame(FRAME_T aFrameType)
Definition: kiway.cpp:319
VTBL_ENTRY void CommonSettingsChanged(bool aEnvVarsChanged)
Function CommonSettingsChanged Calls CommonSettingsChanged() on all KIWAY_PLAYERs.
Definition: kiway.cpp:458
Class PGM_BASE keeps program (whole process) data for KiCad programs.
Definition: pgm_base.h:166
#define KIFACE_VERSION
Definition: kiway.h:111
FRAME_T
Enum FRAME_T is the set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
Definition: frame_type.h:34
VTBL_ENTRY PROJECT & Prj() const
Function Prj returns the PROJECT associated with this KIWAY.
Definition: kiway.cpp:170
KIWAY(PGM_BASE *aProgram, int aCtlBits, wxFrame *aTop=NULL)
Definition: kiway.cpp:45
PGM_BASE * m_program
Definition: kiway.h:433
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: kicad.cpp:65
VTBL_ENTRY void SetLanguage(int aLanguage)
Function SetLanguage changes the language and then calls ShowChangedLanguage() on all KIWAY_PLAYERs.
Definition: kiway.cpp:422
void OnKiwayEnd()
Definition: kiway.cpp:524
#define KIFACE_INSTANCE_NAME_AND_VERSION
Definition: kiway.h:116
This file contains miscellaneous commonly used macros and functions.
MAIL_T
Enum MAIL_T is the set of mail types sendable via KIWAY::ExpressMail() and supplied as the aCommand p...
Definition: mail_type.h:37
VTBL_ENTRY KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=NULL)
Function Player returns the KIWAY_PLAYER* given a FRAME_T.
Definition: kiway.cpp:328
VTBL_ENTRY void SetLanguageIdentifier(int menu_id)
Function SetLanguageIdentifier sets in .m_language_id member the wxWidgets language identifier Id fro...
Definition: pgm_base.cpp:743
VTBL_ENTRY bool PlayerClose(FRAME_T aFrameType, bool doForce)
Function PlayerClose calls the KIWAY_PLAYER::Close( bool force ) function on the window and if not ve...
Definition: kiway.cpp:376
bool ProcessEvent(wxEvent &aEvent) override
Definition: kiway.cpp:483
KIFACE * KIFACE_GETTER_FUNC(int *aKIFACEversion, int aKIWAYversion, PGM_BASE *aProgram)
Function Pointer KIFACE_GETTER_FUNC points to the one and only KIFACE export.
Definition: kiway.h:470
PROJECT m_project
Definition: kiway.h:446
int m_ctl
Definition: kiway.h:434
virtual void KiwayMailIn(KIWAY_EXPRESS &aEvent)
Function KiwayMailIn receives KIWAY_EXPRESS messages from other players.
pcbnew DSO
Definition: kiway.h:283
#define THROW_IO_ERROR(msg)
const wxString dso_search_path(FACE_T aFaceId)
Get the [path &] name of the DSO holding the requested FACE_T.
Definition: kiway.cpp:95
VTBL_ENTRY KIFACE * KiFACE(FACE_T aFaceId, bool doLoad=true)
Function KiFACE returns the KIFACE* given a FACE_T.
Definition: kiway.cpp:176
void SetTop(wxFrame *aTop)
Function SetTop tells this KIWAY about the top most frame in the program and optionally allows it to ...
Definition: kiway.cpp:77
#define _(s)
VTBL_ENTRY bool SetLanguage(bool first_time=false)
Function SetLanguage sets the dictionary file name for internationalization.
Definition: pgm_base.cpp:651
FACE_T
Known KIFACE implementations.
Definition: kiway.h:280
constexpr std::size_t arrayDim(T const (&)[N]) noexcept
Definition: macros.h:108
eeschema DSO
Definition: kiway.h:282
virtual void CommonSettingsChanged(bool aEnvVarsChanged)
Notification event that some of the common (suite-wide) settings have changed.
VTBL_ENTRY void ExpressMail(FRAME_T aDestination, MAIL_T aCommand, std::string &aPayload, wxWindow *aSource=NULL)
Function ExpressMail send aPayload to aDestination from aSource.
Definition: kiway.cpp:414
FRAME_T Dest()
Function Dest returns the destination player id of the message.
Definition: kiway_express.h:46
static const wxChar * GetChars(const wxString &s)
Function GetChars returns a wxChar* to the actual wxChar* data within a wxString, and is helpful for ...
Definition: macros.h:101
see class PGM_BASE
const char * name
Definition: DXF_plotter.cpp:61
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
VTBL_ENTRY const wxString & GetExecutablePath() const
Definition: pgm_base.h:232
The base frame for deriving all KiCad main window classes.
size_t i
Definition: json11.cpp:649
Class KIFACE is used by a participant in the KIWAY alchemy.
Definition: kiway.h:151
static int m_kiface_version[KIWAY_FACE_COUNT]
Definition: kiway.h:431
wxArrayString m_playerFrameName
Definition: kiway.h:444
return & kiface
Definition: pcbnew.cpp:189
wxFrame * m_top
Definition: kiway.h:436
virtual void ShowChangedLanguage()
Redraw the menus and what not in current language.
bool ProcessEvent(wxEvent &aEvent) override
Override the default process event handler to implement the auto save feature.
int PGM_BASE * aProgram
Definition: pcbnew.cpp:187
static KIFACE * m_kiface[KIWAY_FACE_COUNT]
Definition: kiway.h:430
#define KFCTL_STANDALONE
Am running as a standalone Top.
Definition: kiway.h:159