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

« back to all changes in this revision

Viewing changes to src/plugins/contrib/codesnippets/codesnippetswindow.h

  • 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:
26
26
#include <wx/string.h>
27
27
#include <wx/treectrl.h>
28
28
#include <wx/datetime.h>
29
 
#include <wx/dialog.h>
 
29
#include "scrollingdialog.h"
30
30
 
31
31
#include "snippetsconfig.h"
32
32
#include "codesnippetstreectrl.h"
36
36
class wxTreeCtrl;
37
37
class wxCommandEvent;
38
38
class wxTreeEvent;
 
39
class ThreadSearchFrame;
 
40
class CodeSnippetsEvent;
39
41
 
40
42
// ----------------------------------------------------------------------------
41
43
class CodeSnippetsWindow : public wxPanel
64
66
        wxImageList*            GetSnipImageList(){ return GetConfig()->GetSnipImages()->GetSnipImageList();}
65
67
 
66
68
        bool GetFileChanged( )
67
 
            {return GetSnippetsTreeCtrl()->GetFileChanged();}
 
69
            {return GetSnippetsTreeCtrl() && GetSnippetsTreeCtrl()->GetFileChanged();}
68
70
        bool SetFileChanged( bool truefalse )
69
71
            {return GetSnippetsTreeCtrl()->SetFileChanged(truefalse);}
70
72
 
71
73
        wxString GetSnippet() { return GetSnippetsTreeCtrl()->GetSnippet();}
72
74
        wxString GetSnippet( wxTreeItemId itemId ) { return GetSnippetsTreeCtrl()->GetSnippet(itemId);}
73
75
        wxTreeItemId GetAssociatedItemID(){return GetSnippetsTreeCtrl()->GetAssociatedItemID();}
74
 
 
75
 
 
 
76
        void CloseThreadSearchFrame();
 
77
 
 
78
        bool IsEditingLabel() {return m_bIsEditingLabel;}
 
79
        void IsEditingLabel( bool trueorfalse) { m_bIsEditingLabel = trueorfalse;}
 
80
        bool IsAppendingFile(){return m_AppendItemsFromFile;}
 
81
 
76
82
        private:
77
83
                void InitDlg();
78
84
                void ApplySnippet(const wxTreeItemId& itemID);
82
88
        void CheckForExternallyModifiedFiles();
83
89
        void ShowSnippetsAbout(wxString buildInfo);
84
90
                wxTreeItemId SearchSnippet(const wxString& searchTerms, const wxTreeItemId& node);
85
 
                bool IsTreeBusy(){return GetSnippetsTreeCtrl()->IsTreeBusy();}
 
91
                bool IsTreeBusy(){
 
92
                    if (not GetSnippetsTreeCtrl()) return true; //debugging
 
93
                    return GetSnippetsTreeCtrl()->IsTreeBusy();
 
94
        }//IsTreeBusy
86
95
 
87
96
                wxTextCtrl*             m_SearchSnippetCtrl;
88
97
                wxButton*               m_SearchCfgBtn;
91
100
//-             SearchConfiguration     m_SearchConfig;
92
101
                bool                    m_isCheckingForExternallyModifiedFiles;
93
102
        TiXmlDocument*          pTiXmlDoc;
 
103
        bool                    m_bIsEditingLabel;
94
104
 
 
105
        //-Utils utils;
95
106
 
96
107
                void OnSearchCfg(wxCommandEvent& event);
97
108
                void OnSearch(wxCommandEvent& event);
122
133
        void OnMnuOpenFileLink(wxCommandEvent& event);
123
134
        void OnMnuSaveSnippetAsFileLink(wxCommandEvent& event);
124
135
        void OnMnuSettings(wxCommandEvent& event);
125
 
        void OnMnuAbout(wxCommandEvent& event);
 
136
        void OnMnuAbout(wxCommandEvent& event);
 
137
        void OnMnuTest(wxCommandEvent& event);
126
138
        void OnShutdown(wxCloseEvent& event);
127
139
        void OnMnuCopy(wxCommandEvent& event);
128
140
        void OnMnuPaste(wxCommandEvent& event);
129
141
        void OnMnuFileBackup(wxCommandEvent& event);
130
142
        void OnClose(wxCloseEvent& event); //never occurs
131
143
        void OnIdle(wxIdleEvent& event);
 
144
        void OnMnuSearchExtended(wxCommandEvent& event);
 
145
        void OnLeaveWindow (wxMouseEvent &event);
 
146
        void OnEnterWindow (wxMouseEvent &event);
 
147
 
 
148
        void OnCodeSnippetsNewIndex(CodeSnippetsEvent& event);
132
149
 
133
150
                DECLARE_EVENT_TABLE()
134
151
};