/usr/include/wxsmith/wxsgui.h is in libwxsmithlib-dev 13.12-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | /*
* This file is part of wxSmith plugin for Code::Blocks Studio
* Copyright (C) 2006-2007 Bartlomiej Swiecki
*
* wxSmith is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* wxSmith is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with wxSmith. If not, see <http://www.gnu.org/licenses/>.
*
* $Revision: 7109 $
* $Id: wxsgui.h 7109 2011-04-15 11:53:16Z mortenmacfly $
* $HeadURL: http://svn.code.sf.net/p/codeblocks/code/branches/release-xx.yy/src/plugins/contrib/wxSmith/wxsgui.h $
*/
#ifndef WXSGUI_H
#define WXSGUI_H
#include <configurationpanel.h>
#include <tinyxml/tinyxml.h>
#include "wxsguifactory.h"
#include "wxsproject.h"
/** \brief This class is interface for GUI types.
*
* Each project has it's main GUI and each resource uses particular GUI.
* GUI class is responsible for editing base GUI parameters and for
* creating / setting up main application class. Each project may have
* only one GUI managed.
*/
class wxsGUI: public wxObject
{
DECLARE_CLASS(wxsGUI)
public:
/** \brief Ctor
* \param GUIName name of GUI (f.ex. wxWidgets for wx, MFC, Qt etc)
* \param Project project class using this GUI
*/
wxsGUI(const wxString& GUIName,wxsProject* Project);
/** \brief Dctor */
virtual ~wxsGUI();
/** \brief Getting project item */
inline wxsProject* GetProject() const { return m_Project; }
/** \brief Getting name of this GUI */
inline const wxString& GetName() const { return m_Name; }
/** \brief Helper function for fetching project path */
inline wxString GetProjectPath() { return m_Project->GetProjectPath(); }
/** \brief Function notifying that modification to GUI settings has been made */
inline void NotifyChange() { m_Project->NotifyChange(); }
/** \brief Reading configuration from given GUI module
* \note this function is only a wrapped for OnReadConfig function
*/
inline void ReadConfig(TiXmlElement* Node) { OnReadConfig(Node); }
/** \brief Storing configuration of this GUI module
* \note this function is only a wrapper for OnWriteConfig function
*/
inline void WriteConfig(TiXmlElement* Node) { OnWriteConfig(Node); }
/** \brief Function checking if project's main application code is managed using
* this GUI.
* \note This function is only a wrapper to OnCheckIfApplicationManaged function
*/
inline bool CheckIfApplicationManaged() { return OnCheckIfApplicationManaged(); }
/** \brief Function called to build configuration panel
* \note This function is only a wrapper to OnBuildConfigurationPanel function
*/
inline cbConfigurationPanel* BuildConfigurationPanel(wxWindow* Parent) { return OnBuildConfigurationPanel(Parent); }
/** \brief Function trying to create bindings between this GUI class and
* application class.
* \note This functions is only a wrapper to OnCreateApplicationBinding()
*/
inline bool CreateApplicationBinding() { return OnCreateApplicationBinding(); }
/** \brief Rebuilding application's code */
inline void RebuildApplicationCode() { OnRebuildApplicationCode(); }
protected:
/** \brief Function called to build configuration panel */
virtual cbConfigurationPanel* OnBuildConfigurationPanel(wxWindow* Parent) = 0;
/** \brief Function called when there's need to rebuild application code */
virtual void OnRebuildApplicationCode() = 0;
/** \brief Function checking if project's main application code is managed using
* this GUI.
*/
virtual bool OnCheckIfApplicationManaged() = 0;
/** \brief Function trying to create bindings between this GUI class and
* application class.
*
* Creating application binding may require scanning of files / selecting
* application file, creating new files or anything else needed.
*
* \return true if added bindings, false otherwise.
*/
virtual bool OnCreateApplicationBinding() = 0;
/** \brief Reading configuration from given GUI module */
virtual void OnReadConfig(TiXmlElement* element) = 0;
/** \brief Storing configuration of this GUI module */
virtual void OnWriteConfig(TiXmlElement* element) = 0;
private:
const wxString m_Name; ///< \brief name of this GUI module (f.ex wxWidgets)
wxsProject* const m_Project; ///< \brief wxsProject class using this GUI class
};
#endif
|