/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in * compliance with the NPL. You may obtain a copy of the NPL at * http://www.mozilla.org/NPL/ * * Software distributed under the NPL is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL * for the specific language governing rights and limitations under the * NPL. * * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All Rights * Reserved. */ // WizardMachine.h : main header file for the WIZARDMACHINE application // #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols #include "WizardMachineDlg.h" #include "WizardTypes.h" //NODE WizardTree; void CreateRshell(); //extern WIDGET GlobalWidgetArray[1000]; //extern int GlobalArrayIndex; ///////////////////////////////////////////////////////////////////////////// // CWizardMachineApp: // See WizardMachine.cpp for the implementation of this class // class CWizardMachineApp : public CWinApp { public: CWizardMachineApp(); void InitializeTree(CString rootIniFile); NODE* CreateNode(NODE *parentNode, CString iniFileName); void CreateNode(); void SetGlobalDefaults(); void CreateFirstLeaf(NODE *parent, CString iniFile); BOOL SectionFound(CString iniFile, CString section); int GetBufferCount(char *buffer); char* GetBufferElement(const char *buffer, int index); char* GetSectionBuffer(CString iniFile, CString section); void ExecuteAction(char action); CString replaceVars(char *str); BOOL interpret(CString cmd); BOOL GoToNextNode(); BOOL GoToPrevNode(); void ExitApp(); BOOL CheckForPreBuiltPath(); FILE* OpenAFile(CString outputFile, CString mode); void PrintNodeInfo(NODE* node); void CheckIniFileExistence(CString file); BOOL FileExists(CString file); BOOL FillGlobalWidgetArray(CString file); BOOL FillGlobalWidgetArray(); void CreateNewCache(); BOOL IsLastNode(NODE* treeNode); BOOL IsFirstNode(NODE* treeNode); CString GetModulePath(); CString GetGlobal(CString theName); WIDGET* SetGlobal(CString theName, CString theValue); CString GetGlobalOptions(CString theName); WIDGET* findWidget(char *name); void BuildWidget(WIDGET* aWidget, CString iniSection, CString iniFile, int pageBaseIndex, BOOL readValue); // void BuildHelpWidget(WIDGET* aWidget, CString iniSection, CString iniFile, int pageBaseIndex); void GenerateList(CString action, WIDGET* targetWidget, CString ext); void HelpWiz(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CWizardMachineApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CWizardMachineApp) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; /////////////////////////////////////////////////////////////////////////////