root/trunk/tests/DumbFindView.h

Revision 198, 1.7 kB (checked in by jordi, 2 years ago)

Added the PreferencesPter? and IPreferencesView classes as well as they test suite PreferencesPterTest? and DumbPreferencesView? classes. The first test, that tests that setting the browser command line changes the configuration, works.

Line 
1// ePDFView - Dumb Test Find View.
2// Copyright (C) 2006 Emma's Software.
3//
4// This program is free software; you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation; either version 2 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program; if not, write to the Free Software
16// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18#if !defined (__DUMB_FIND_VIEW_H__)
19#define __DUMB_FIND_VIEW_H__
20
21namespace ePDFView
22{
23    class DumbFindView: public IFindView
24    {
25        public:
26            DumbFindView (void);
27            ~DumbFindView (void);
28
29            const gchar *getTextToFind (void);
30            void hide (void);
31            void sensitiveFindNext (gboolean sensitive);
32            void sensitiveFindPrevious (gboolean sensitive);
33            void setInformationText (const gchar *text);
34
35            // Methods for test only purposes.
36            const gchar *getInformationText (void);
37            gboolean isFindNextSensitive (void);
38            gboolean isFindPreviousSensitive (void);
39            void setTextToFind (const gchar *text);
40
41        protected:
42            gboolean m_FindNextSensitive;
43            gboolean m_FindPreviousSensitive;
44            gchar *m_InformationText;
45            gchar *m_TextToFind;
46    };
47}
48
49#endif // !__DUMB_FIND_VIEW_H__
Note: See TracBrowser for help on using the browser.