~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/sdk/editorbase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3
3
 * http://www.gnu.org/licenses/lgpl-3.0.html
4
4
 *
5
 
 * $Revision: 4909 $
6
 
 * $Id: editorbase.cpp 4909 2008-02-27 13:15:26Z mortenmacfly $
7
 
 * $HeadURL: svn://svn.berlios.de/codeblocks/tags/8.02/src/sdk/editorbase.cpp $
 
5
 * $Revision: 6131 $
 
6
 * $Id: editorbase.cpp 6131 2010-02-03 11:28:50Z jenslody $
 
7
 * $HeadURL: svn+ssh://jenslody@svn.berlios.de/svnroot/repos/codeblocks/trunk/src/sdk/editorbase.cpp $
8
8
 */
9
9
 
10
10
#include "sdk_precomp.h"
21
21
    #include "cbproject.h" // FileTreeData
22
22
    #include <wx/wfstream.h>
23
23
#endif
 
24
 
 
25
#include "cbauibook.h"
 
26
 
24
27
#include "cbstyledtextctrl.h"
25
28
 
26
 
#include "wx/wxFlatNotebook/wxFlatNotebook.h"
27
 
 
28
29
// needed for initialization of variables
29
30
int editorbase_RegisterId(int id)
30
31
{
75
76
void EditorBase::InitFilename(const wxString& filename)
76
77
{
77
78
    if (filename.IsEmpty())
78
 
        m_Filename = CreateUniqueFilename();
 
79
        m_Filename = realpath(CreateUniqueFilename());
79
80
    else
80
 
        m_Filename = filename;
 
81
        m_Filename = realpath(filename);
81
82
 
82
83
    wxFileName fname;
83
84
    fname.Assign(m_Filename);
380
381
        }
381
382
        else if (id == idMsdn)
382
383
        {
383
 
            wxLaunchDefaultBrowser(wxString(_T("http://search.microsoft.com/search/results.aspx?qu=")) << URLEncode(lastWord) << _T("&View=msdn"));
 
384
            wxLaunchDefaultBrowser(wxString(_T("http://social.msdn.microsoft.com/Search/en-US/?query=")) << URLEncode(lastWord) << _T("&ac=8"));
384
385
        }
385
386
    }
386
387
    else
388
389
        event.Skip();
389
390
    }
390
391
}
 
392
 
 
393
bool EditorBase::IsContextMenuOpened() const
 
394
{
 
395
    return m_pData->m_DisplayingPopupMenu;
 
396
}