Really set svn:eol-style property.
The last commit used incorrect property name, remove the erroneous property and set the correct svn:eol-style one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*****************************************************************************
|
||||
** Name: wxwidgets.js
|
||||
/*****************************************************************************
|
||||
** Name: wxwidgets.js
|
||||
** Purpose: The wxWidgets documentation javascript
|
||||
** Author: Doxygen team
|
||||
** RCS-ID: $Id$
|
||||
@@ -7,79 +7,79 @@
|
||||
*****************************************************************************/
|
||||
|
||||
// from w3schools
|
||||
function getCookie(c_name)
|
||||
{
|
||||
if (document.cookie.length>0)
|
||||
{
|
||||
c_start=document.cookie.indexOf(c_name + "=");
|
||||
if (c_start!=-1)
|
||||
{
|
||||
c_start=c_start + c_name.length+1;
|
||||
c_end=document.cookie.indexOf(";",c_start);
|
||||
if (c_end==-1) c_end=document.cookie.length;
|
||||
return unescape(document.cookie.substring(c_start,c_end));
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
// from w3schools
|
||||
function setCookie(c_name,value,expiredays)
|
||||
{
|
||||
var exdate=new Date();
|
||||
exdate.setDate(exdate.getDate()+expiredays);
|
||||
document.cookie=c_name+ '=' +escape(value)+
|
||||
((expiredays==null) ? '' : ';expires='+exdate.toGMTString());
|
||||
}
|
||||
|
||||
// Reimplementation of changeDisplayState
|
||||
function mychangeDisplayState( e )
|
||||
{
|
||||
var num=this.id.replace(/[^[0-9]/g,'');
|
||||
var button=this.firstChild;
|
||||
var sectionDiv=document.getElementById('dynsection'+num);
|
||||
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
||||
sectionDiv.style.display='block';
|
||||
button.src='open.gif';
|
||||
}else{
|
||||
sectionDiv.style.display='none';
|
||||
button.src='closed.gif';
|
||||
}
|
||||
|
||||
setCookie( 'sectionDiv.style.display', sectionDiv.style.display );
|
||||
|
||||
}
|
||||
|
||||
window.onload = function myinitDynSections()
|
||||
{
|
||||
var divs=document.getElementsByTagName('div');
|
||||
var sectionCounter=1;
|
||||
for(var i=0;i<divs.length-1;i++){
|
||||
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
||||
var header=divs[i];
|
||||
var section=divs[i+1];
|
||||
var button=header.firstChild;
|
||||
if (button!='IMG'){
|
||||
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
||||
button=document.createElement('img');
|
||||
divs[i].insertBefore(button,divs[i].firstChild);
|
||||
}
|
||||
header.style.cursor='pointer';
|
||||
header.onclick=mychangeDisplayState;
|
||||
header.id='dynheader'+sectionCounter;
|
||||
section.id='dynsection'+sectionCounter;
|
||||
|
||||
var display = getCookie( 'sectionDiv.style.display' );
|
||||
if ( display == '' || display == 'block' ){
|
||||
section.style.display='block'; // default
|
||||
button.src='open.gif';
|
||||
}else{
|
||||
section.style.display='none';
|
||||
button.src='closed.gif';
|
||||
}
|
||||
setCookie( 'sectionDiv.style.display', section.style.display );
|
||||
|
||||
section.style.marginLeft='14px';
|
||||
sectionCounter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
function getCookie(c_name)
|
||||
{
|
||||
if (document.cookie.length>0)
|
||||
{
|
||||
c_start=document.cookie.indexOf(c_name + "=");
|
||||
if (c_start!=-1)
|
||||
{
|
||||
c_start=c_start + c_name.length+1;
|
||||
c_end=document.cookie.indexOf(";",c_start);
|
||||
if (c_end==-1) c_end=document.cookie.length;
|
||||
return unescape(document.cookie.substring(c_start,c_end));
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
// from w3schools
|
||||
function setCookie(c_name,value,expiredays)
|
||||
{
|
||||
var exdate=new Date();
|
||||
exdate.setDate(exdate.getDate()+expiredays);
|
||||
document.cookie=c_name+ '=' +escape(value)+
|
||||
((expiredays==null) ? '' : ';expires='+exdate.toGMTString());
|
||||
}
|
||||
|
||||
// Reimplementation of changeDisplayState
|
||||
function mychangeDisplayState( e )
|
||||
{
|
||||
var num=this.id.replace(/[^[0-9]/g,'');
|
||||
var button=this.firstChild;
|
||||
var sectionDiv=document.getElementById('dynsection'+num);
|
||||
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
||||
sectionDiv.style.display='block';
|
||||
button.src='open.gif';
|
||||
}else{
|
||||
sectionDiv.style.display='none';
|
||||
button.src='closed.gif';
|
||||
}
|
||||
|
||||
setCookie( 'sectionDiv.style.display', sectionDiv.style.display );
|
||||
|
||||
}
|
||||
|
||||
window.onload = function myinitDynSections()
|
||||
{
|
||||
var divs=document.getElementsByTagName('div');
|
||||
var sectionCounter=1;
|
||||
for(var i=0;i<divs.length-1;i++){
|
||||
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
||||
var header=divs[i];
|
||||
var section=divs[i+1];
|
||||
var button=header.firstChild;
|
||||
if (button!='IMG'){
|
||||
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
||||
button=document.createElement('img');
|
||||
divs[i].insertBefore(button,divs[i].firstChild);
|
||||
}
|
||||
header.style.cursor='pointer';
|
||||
header.onclick=mychangeDisplayState;
|
||||
header.id='dynheader'+sectionCounter;
|
||||
section.id='dynsection'+sectionCounter;
|
||||
|
||||
var display = getCookie( 'sectionDiv.style.display' );
|
||||
if ( display == '' || display == 'block' ){
|
||||
section.style.display='block'; // default
|
||||
button.src='open.gif';
|
||||
}else{
|
||||
section.style.display='none';
|
||||
button.src='closed.gif';
|
||||
}
|
||||
setCookie( 'sectionDiv.style.display', section.style.display );
|
||||
|
||||
section.style.marginLeft='14px';
|
||||
sectionCounter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,55 +1,55 @@
|
||||
How to add a new XRC handler
|
||||
============================
|
||||
|
||||
0. Purpose
|
||||
----------
|
||||
|
||||
This note describes what needs to be done to add a new XRC handler, i.e. add
|
||||
support for loading the objects of some class wxFoo from XRC.
|
||||
|
||||
|
||||
1. Implement the handler
|
||||
------------------------
|
||||
|
||||
By convention, the XRC handler for a class wxFoo declared in wx/foo.h is called
|
||||
wxFooXmlHandler and is declared in the file wx/xrc/xh_foo.h (this last rule
|
||||
wasn't always respected in the past, however it's not a reason to not respect
|
||||
it in the future). The steps for adding a new handler are:
|
||||
|
||||
a) Add handler declaration in include/wx/xrc/xh_foo.h, it will usually be the
|
||||
same as in the other files so you can get inspiration for your brand new
|
||||
handler from e.g. wx/xrc/xh_srchctrl.h. Notice the use of wxUSE_FOO if wxFoo
|
||||
is guarded by this symbol.
|
||||
|
||||
b) Add implementation in src/xrc/xh_foo.cpp: again, it will be almost always
|
||||
very similar to the existing controls. You will need to add support for
|
||||
the control-specific styles.
|
||||
|
||||
|
||||
2. Update the other files
|
||||
-------------------------
|
||||
|
||||
There are a few other files to update to make wxWidgets aware of the new
|
||||
handler:
|
||||
|
||||
a) Add the new files created above to build/bakefiles/files.bkl: search for
|
||||
"xh_srchctrl" to see where you need to add them
|
||||
|
||||
b) Add #include "wx/xrc/xh_foo.h" to wx/xrc/xh_all.h.
|
||||
|
||||
c) Register the new handler in wxXmlResource::InitAllHandlers() in
|
||||
src/xrc/xmlrsall.cpp
|
||||
|
||||
|
||||
3. Update the sample
|
||||
--------------------
|
||||
|
||||
Demonstrate that the new handler works by adding a control using it to
|
||||
samples/xrc/rc/controls.xrc.
|
||||
|
||||
|
||||
=== EOF ===
|
||||
|
||||
Author: VZ
|
||||
Version: $Id: tn0021.txt 47865 2007-08-03 20:00:32Z VZ $
|
||||
|
||||
How to add a new XRC handler
|
||||
============================
|
||||
|
||||
0. Purpose
|
||||
----------
|
||||
|
||||
This note describes what needs to be done to add a new XRC handler, i.e. add
|
||||
support for loading the objects of some class wxFoo from XRC.
|
||||
|
||||
|
||||
1. Implement the handler
|
||||
------------------------
|
||||
|
||||
By convention, the XRC handler for a class wxFoo declared in wx/foo.h is called
|
||||
wxFooXmlHandler and is declared in the file wx/xrc/xh_foo.h (this last rule
|
||||
wasn't always respected in the past, however it's not a reason to not respect
|
||||
it in the future). The steps for adding a new handler are:
|
||||
|
||||
a) Add handler declaration in include/wx/xrc/xh_foo.h, it will usually be the
|
||||
same as in the other files so you can get inspiration for your brand new
|
||||
handler from e.g. wx/xrc/xh_srchctrl.h. Notice the use of wxUSE_FOO if wxFoo
|
||||
is guarded by this symbol.
|
||||
|
||||
b) Add implementation in src/xrc/xh_foo.cpp: again, it will be almost always
|
||||
very similar to the existing controls. You will need to add support for
|
||||
the control-specific styles.
|
||||
|
||||
|
||||
2. Update the other files
|
||||
-------------------------
|
||||
|
||||
There are a few other files to update to make wxWidgets aware of the new
|
||||
handler:
|
||||
|
||||
a) Add the new files created above to build/bakefiles/files.bkl: search for
|
||||
"xh_srchctrl" to see where you need to add them
|
||||
|
||||
b) Add #include "wx/xrc/xh_foo.h" to wx/xrc/xh_all.h.
|
||||
|
||||
c) Register the new handler in wxXmlResource::InitAllHandlers() in
|
||||
src/xrc/xmlrsall.cpp
|
||||
|
||||
|
||||
3. Update the sample
|
||||
--------------------
|
||||
|
||||
Demonstrate that the new handler works by adding a control using it to
|
||||
samples/xrc/rc/controls.xrc.
|
||||
|
||||
|
||||
=== EOF ===
|
||||
|
||||
Author: VZ
|
||||
Version: $Id: tn0021.txt 47865 2007-08-03 20:00:32Z VZ $
|
||||
|
||||
|
Reference in New Issue
Block a user