#ifndef _CT_CONFIGTOOLDOC_H_
#define _CT_CONFIGTOOLDOC_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "configtooldoc.cpp"
-#endif
-
#include "wx/docview.h"
#include "wx/cmdproc.h"
/// 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;
}
bool Do();
bool Undo();
bool DoAndUndo(bool doCmd); // Combine Do and Undo into one
-
+
protected:
ctConfigItem* m_activeState;
ctConfigItem* m_savedState;