#ifndef _CT_CONFIGTOOLDOC_H_
#define _CT_CONFIGTOOLDOC_H_
-#ifdef __GNUG__
-#pragma interface "configtooldoc.cpp"
-#endif
-
#include "wx/docview.h"
#include "wx/cmdproc.h"
virtual bool OnCreate(const wxString& path, long flags);
virtual bool OnOpenDocument(const wxString& filename);
virtual bool OnSaveDocument(const wxString& filename);
- virtual bool OnNewDocument() { return TRUE; }
+ virtual bool OnNewDocument() { return true; }
virtual bool OnCloseDocument() ;
- virtual bool Save(); // Overridden only to correct bug in wxWindows, docview.cpp
+ virtual bool Save(); // Overridden only to correct bug in wxWidgets, docview.cpp
//// Accessors
/// Generate the text of a setup.h
wxString GenerateSetup();
-
+
/// Helper function
void GenerateSetup(ctConfigItem* item, wxString& str);
-
+
/// Generate a configure command
wxString GenerateConfigureCommand();
/// Finds the next item in the tree
ctConfigItem* FindNextItem(ctConfigItem* item, bool wrap);
-
+
/// Finds the next sibling in the tree
ctConfigItem* FindNextSibling(ctConfigItem* item);
-
+
protected:
ctConfigItem* m_topItem;
ctConfigItem* m_clipboardItem;
~ctConfiguration();
/// Copy constructor.
- ctConfiguration(const ctConfiguration& configuration)
+ ctConfiguration(const ctConfiguration& configuration) : wxObject()
{
(*this) = configuration;
}
ctConfigCommand(const wxString& name, int cmdId,
ctConfigItem* activeState, ctConfigItem* savedState,
ctConfigItem* parent = NULL, ctConfigItem* insertBefore = NULL,
- bool ignoreFirstTime = FALSE);
+ bool ignoreFirstTime = false);
ctConfigCommand(const wxString& name, int cmdId,
ctConfigItem* activeState, ctProperties* properties,
- bool ignoreFirstTime = FALSE);
+ bool ignoreFirstTime = false);
~ctConfigCommand();
bool Do();
bool Undo();
bool DoAndUndo(bool doCmd); // Combine Do and Undo into one
-
+
protected:
ctConfigItem* m_activeState;
ctConfigItem* m_savedState;