Second try

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Denis Pershin
1998-08-18 19:54:06 +00:00
parent fb5e0af035
commit 4540e33bb6
2 changed files with 32 additions and 26 deletions

View File

@@ -1,13 +1,12 @@
/* /////////////////////////////////////////////////////////////////////////////
* Author: Robert Roebling // Name: treectrl.h
* // Purpose:
* Copyright: (C) 1997,1998 Robert Roebling // Author: Denis Pershin
* // Created: 08/08/98
* This library is free software; you can redistribute it and/or // Id: $Id$
* modify it under the terms of the wxWindows Licence, which // Copyright: (c) 1998 Denis Pershin and Julian Smart
* you have received with this library (see Licence.htm). // Licence: wxWindows licence
* /////////////////////////////////////////////////////////////////////////////
*/
#ifndef __GTKTREECTRL_H__ #ifndef __GTKTREECTRL_H__
#define __GTKTREECTRL_H__ #define __GTKTREECTRL_H__
@@ -183,8 +182,12 @@ private:
return m_childlist.Number(); return m_childlist.Number();
} }
guit expand_handler; guint expand_handler;
guit collapse_handler; guint collapse_handler;
// It is a quick hack to make TreeCtrl working... I do not know why
// but signals is GTK does not disconnected...
bool ignore;
DECLARE_DYNAMIC_CLASS(wxTreeItem) DECLARE_DYNAMIC_CLASS(wxTreeItem)
}; };
@@ -212,7 +215,7 @@ public:
int GetCount() const; int GetCount() const;
long InsertItem( long parent, const wxString& label, long data = 0, long InsertItem( long parent, const wxString& label,
int image = -1, int selImage = -1, int image = -1, int selImage = -1,
long insertAfter = wxTREE_INSERT_LAST ); long insertAfter = wxTREE_INSERT_LAST );

View File

@@ -1,13 +1,12 @@
/* /////////////////////////////////////////////////////////////////////////////
* Author: Robert Roebling // Name: treectrl.h
* // Purpose:
* Copyright: (C) 1997,1998 Robert Roebling // Author: Denis Pershin
* // Created: 08/08/98
* This library is free software; you can redistribute it and/or // Id: $Id$
* modify it under the terms of the wxWindows Licence, which // Copyright: (c) 1998 Denis Pershin and Julian Smart
* you have received with this library (see Licence.htm). // Licence: wxWindows licence
* /////////////////////////////////////////////////////////////////////////////
*/
#ifndef __GTKTREECTRL_H__ #ifndef __GTKTREECTRL_H__
#define __GTKTREECTRL_H__ #define __GTKTREECTRL_H__
@@ -183,8 +182,12 @@ private:
return m_childlist.Number(); return m_childlist.Number();
} }
guit expand_handler; guint expand_handler;
guit collapse_handler; guint collapse_handler;
// It is a quick hack to make TreeCtrl working... I do not know why
// but signals is GTK does not disconnected...
bool ignore;
DECLARE_DYNAMIC_CLASS(wxTreeItem) DECLARE_DYNAMIC_CLASS(wxTreeItem)
}; };
@@ -212,7 +215,7 @@ public:
int GetCount() const; int GetCount() const;
long InsertItem( long parent, const wxString& label, long data = 0, long InsertItem( long parent, const wxString& label,
int image = -1, int selImage = -1, int image = -1, int selImage = -1,
long insertAfter = wxTREE_INSERT_LAST ); long insertAfter = wxTREE_INSERT_LAST );