~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/contrib/ThreadSearch/ThreadSearchViewManagerMessagesNotebook.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************
 
2
 * Name:      ThreadSearchViewManagerMessagesNotebook
 
3
 * Purpose:   Implements the ThreadSearchViewManagerBase
 
4
 *            interface to make the ThreadSearchView panel
 
5
 *            managed by the Messages notebook.
 
6
 * Author:    Jerome ANTOINE
 
7
 * Created:   2007-07-19
 
8
 * Copyright: Jerome ANTOINE
 
9
 * License:   GPL
 
10
 **************************************************************/
 
11
 
 
12
 
 
13
#ifndef THREAD_SEARCH_VIEW_MANAGER_MESSAGES_NOTEBOOK_H
 
14
#define THREAD_SEARCH_VIEW_MANAGER_MESSAGES_NOTEBOOK_H
 
15
 
 
16
#include "logger.h"
 
17
 
 
18
#include "ThreadSearchViewManagerBase.h"
 
19
 
 
20
class wxWindow;
 
21
class ThreadSearchView;
 
22
class ThreadSearchLogger;
 
23
 
 
24
 
 
25
class ThreadSearchViewManagerMessagesNotebook : public ThreadSearchViewManagerBase
 
26
{
 
27
public:
 
28
        /** Constructor. */
 
29
        ThreadSearchViewManagerMessagesNotebook(ThreadSearchView* pThreadSearchView)
 
30
                : ThreadSearchViewManagerBase(pThreadSearchView)
 
31
        {}
 
32
 
 
33
        /** Destructor. */
 
34
        virtual ~ThreadSearchViewManagerMessagesNotebook();
 
35
 
 
36
        eManagerTypes GetManagerType() {return TypeMessagesNotebook;}
 
37
 
 
38
        /** By default, view is not managed by the manager.
 
39
          * This method adds view to manager if not already managed.
 
40
          * No parameters because only m_pThreadSearchView is managed
 
41
          * and given in constructor.
 
42
          */
 
43
        virtual void AddViewToManager();
 
44
 
 
45
        /** By default, view is not managed by the manager.
 
46
          * This method removes view from manager if managed.
 
47
          * No parameters because only m_pThreadSearchView is managed
 
48
          * and given in constructor.
 
49
          * m_pThreadSearchView is not modified.
 
50
          */
 
51
        virtual void RemoveViewFromManager();
 
52
 
 
53
        /** Return true if success. Fails if view is not managed.
 
54
          * @param show : true => show, false => hide
 
55
          * @return true if success.
 
56
          */
 
57
        virtual bool ShowView(bool show = true);
 
58
 
 
59
        /** Return true if view is visible.
 
60
          * @param show : true => show, false => hide
 
61
          * @return true if view is visible.
 
62
          */
 
63
        bool IsViewShown();
 
64
};
 
65
 
 
66
#endif // THREAD_SEARCH_VIEW_MANAGER_MESSAGES_NOTEBOOK_H