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

« back to all changes in this revision

Viewing changes to src/plugins/contrib/HexEditor/SearchDialog.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:
 
1
/*
 
2
* This file is part of HexEditor plugin for Code::Blocks Studio
 
3
* Copyright (C) 2009 Bartlomiej Swiecki
 
4
*
 
5
* HexEditor plugin is free software; you can redistribute it and/or modify
 
6
* it under the terms of the GNU General Public License as published by
 
7
* the Frsee Software Foundation; either version 3 of the License, or
 
8
* (at your option) any later version.
 
9
*
 
10
* HexEditor pluging is distributed in the hope that it will be useful,
 
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
13
* GNU General Public License for more details.
 
14
*
 
15
* You should have received a copy of the GNU General Public License
 
16
* along with HexEditor. If not, see <http://www.gnu.org/licenses/>.
 
17
*
 
18
* $Revision: 5445 $
 
19
* $Id: FileContentDisk.cpp 5445 2009-02-07 00:35:09Z byo $
 
20
* $HeadURL: svn+ssh://byo@svn.berlios.de/svnroot/repos/codeblocks/trunk/src/plugins/contrib/HexEditor/FileContentDisk.cpp $
 
21
*/
 
22
 
 
23
#ifndef SEARCHDIALOG_H
 
24
#define SEARCHDIALOG_H
 
25
 
 
26
//(*Headers(SearchDialog)
 
27
#include <wx/combobox.h>
 
28
#include <wx/sizer.h>
 
29
#include <wx/button.h>
 
30
#include <wx/radiobut.h>
 
31
#include <wx/radiobox.h>
 
32
#include "scrollingdialog.h"
 
33
//*)
 
34
 
 
35
#include "FileContentBase.h"
 
36
 
 
37
class SearchDialog: public wxScrollingDialog
 
38
{
 
39
        public:
 
40
 
 
41
                SearchDialog( wxWindow* parent, FileContentBase* content, FileContentBase::OffsetT current );
 
42
                virtual ~SearchDialog();
 
43
                inline FileContentBase::OffsetT GetOffset() { return m_Offset; }
 
44
 
 
45
        private:
 
46
 
 
47
                void BuildContent(wxWindow* parent);
 
48
 
 
49
                //(*Identifiers(SearchDialog)
 
50
                static const long ID_COMBOBOX1;
 
51
                static const long ID_RADIOBUTTON1;
 
52
                static const long ID_RADIOBUTTON2;
 
53
                static const long ID_RADIOBUTTON3;
 
54
                static const long ID_BUTTON1;
 
55
                static const long ID_RADIOBOX2;
 
56
                static const long ID_RADIOBOX1;
 
57
                //*)
 
58
 
 
59
                //(*Declarations(SearchDialog)
 
60
                wxRadioButton* m_SearchTypeString;
 
61
                wxComboBox* m_SearchValue;
 
62
                wxRadioButton* m_SearchTypeExpression;
 
63
                wxButton* Button1;
 
64
                wxRadioBox* m_Direction;
 
65
                wxRadioBox* m_StartFrom;
 
66
                wxRadioButton* m_SearchTypeHex;
 
67
                //*)
 
68
 
 
69
                //(*Handlers(SearchDialog)
 
70
                void OnOk( wxCommandEvent& event );
 
71
                void OnButton1Click(wxCommandEvent& event);
 
72
                //*)
 
73
 
 
74
        void SearchAscii( const char* text );
 
75
        void SearchHex( const wxChar* text );
 
76
                void SearchBuffer( const unsigned char* data, size_t length );
 
77
                void SearchExpression( const wxString& expression );
 
78
 
 
79
                void NotFound();
 
80
                void FoundAt( FileContentBase::OffsetT pos );
 
81
                void ReadError();
 
82
                void Cancel();
 
83
 
 
84
                static int BlockCompare( const unsigned char* searchIn, size_t inLength, const unsigned char* searchFor, size_t forLength, bool backwards );
 
85
 
 
86
                FileContentBase*         m_Content;
 
87
                FileContentBase::OffsetT m_Offset;
 
88
};
 
89
 
 
90
#endif