cvs: php-gtk-web / manual-lookup-indexed2.php /include manual-lookup-indexed.inc
| From: | Christian Weiske | Date: | Fri, 27 Aug 2004 08:46:10 +0000 |
| Subject: | cvs: php-gtk-web / manual-lookup-indexed2.php /include manual-lookup-indexed.inc | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-2586@lists.php.net to get a copy of this message | ||
cweiske Fri Aug 27 04:46:10 2004 EDT
Modified files:
/php-gtk-web manual-lookup-indexed2.php
/php-gtk-web/include manual-lookup-indexed.inc
Log:
gtkextra, scintilla and tutorials get nice titles now
http://cvs.php.net/diff.php/php-gtk-web/manual-lookup-indexed2.php?r1=1.2&r2=1.3&ty=u
Index: php-gtk-web/manual-lookup-indexed2.php
diff -u php-gtk-web/manual-lookup-indexed2.php:1.2 php-gtk-web/manual-lookup-indexed2.php:1.3
--- php-gtk-web/manual-lookup-indexed2.php:1.2 Fri Aug 27 04:21:54 2004
+++ php-gtk-web/manual-lookup-indexed2.php Fri Aug 27 04:46:10 2004
@@ -85,6 +85,7 @@
'property' => 'Properties',
'signal' => 'Signals',
'enum' => 'Enumerators',
+ 'tutorials' => 'Tutorials',
'unknown' => 'Other files'
);
$arIdNames = array( 1 => 'classes', 2 => 'direct functions', 3
=> 'in the class name');
http://cvs.php.net/diff.php/php-gtk-web/include/manual-lookup-indexed.inc?r1=1.2&r2=1.3&ty=u
Index: php-gtk-web/include/manual-lookup-indexed.inc
diff -u php-gtk-web/include/manual-lookup-indexed.inc:1.2
php-gtk-web/include/manual-lookup-indexed.inc:1.3
--- php-gtk-web/include/manual-lookup-indexed.inc:1.2 Fri Aug 27 04:21:57 2004
+++ php-gtk-web/include/manual-lookup-indexed.inc Fri Aug 27 04:46:10 2004
@@ -46,7 +46,7 @@
$GLOBALS['base.dir'] = dirname( __FILE__) . '/../manual/';
-$GLOBALS['sections'] = array( 'gtk', 'gdk',
'extra', 'scn');
+$GLOBALS['sections'] = array( 'gdk', 'glade',
'gtk', 'extra', 'scn');
//the following 2 arrays are currently not used, but keep them here
$GLOBALS['reserved'] = array( 'gtk', 'gdk',
'scn', 'method', 'property', 'prop', 'enum',
'signal', 'constructor');
$GLOBALS['reserved_method'] = array( 'get', 'set');
@@ -396,6 +396,8 @@
{
$arSected = array();
+ $arRegexs['tutorials'] = '/^tutorials\\./';//has to be before class and
method
+
$arRegexs['class'] = '/^[a-zA-Z0-9]+\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$/';
$arRegexs['constructor']= '/\\.constructor\\.[a-zA-Z0-9]+$/';
$arRegexs['enum'] = '/^[a-zA-Z0-9]+\\.[a-zA-Z0-9]+\\.enum\\./';
@@ -444,30 +446,45 @@
function getFileTitle( $strFilename, $strCategory)
{
$arParts = explode( '.', $strFilename);
+ $nParts = count( $arParts);
switch( $strCategory)
{
case 'class':
- return niceClassName( $arParts[1]);
+ if( $arParts[1] == 'functions') {
+ //function list gtk.functions.php
+ return niceClassName( $arParts[0]) . ' functions';
+ } else {
+ //normal class name gtk.gtkentry.php
+ return niceClassName( $arParts[1]);
+ }
case 'constructor':
return niceClassName( $arParts[1]) . ' constructor';
case 'method':
- if( count( $arParts) == 5) {//class with method
+ if( $nParts == 5) {//class with method
return niceClassName( $arParts[1]) . '::' . $arParts[3] . '()';
} else {//gtk/gdk method
return niceClassName( $arParts[0]) . '::' . $arParts[2] . '()';
}
case 'property':
- if( count( $arParts) == 5) {//class property
+ if( $nParts == 5) {//class property
return niceClassName( $arParts[1]) . '::' . $arParts[3];
} else {//gtk/gdk property
return niceClassName( $arParts[0]) . '::' . $arParts[2];
}
case 'signal':
- if( count( $arParts) == 5) {//class signal
+ if( $nParts == 5) {//class signal
return niceClassName( $arParts[1]) . ': ' . $arParts[3];
} else {//gtk/gdk signal
return niceClassName( $arParts[0]) . ': ' . $arParts[2];
+ }
+ case 'tutorials':
+ if( $nParts == 2) {
+ return 'Tutorial list';
+ } else if( $nParts == 3) {
+ return ucfirst( $arParts[1]) . ' tutorial';
+ } else {
+ return ucfirst( $arParts[1]) . ' tutorial: ' . $arParts[2];
}
default:
return $strFilename;