docs: def titleForFilepath( url ):
          """
          Returns a gui title for this url.
          
          :return     <str>
          """
          url = nativestring(url)
          if url in XdkEntryItem.TITLE_MAP:
              return XdkEntryItem.TITLE_MAP.get(url)
          
          url      = nativestring(url).replace('\\', '/')
          basename = os.path.basename(url)
          title    = os.path.splitext(basename)[0]
          
          if title == 'index':
              title = url.split('/')[-2]
          
          if title.endswith('-allmembers'):
              title = 'List of All Members for %s' % title.split('-')[-2]
          elif title.endswith('-source'):
              title = 'Source Code for %s' % title.split('-')[-2]
          elif len(nativestring(url).split('/')) <= 2 and title in TITLE_MAP:
              title = TITLE_MAP[title]
          elif not 'api/' in url:
              title = projex.text.pretty(title)
          
          return title