~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

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

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

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
      * @return true if view is visible.
 
61
      */
 
62
    bool IsViewShown();
 
63
 
 
64
    virtual void Raise();
 
65
};
 
66
 
 
67
#endif // THREAD_SEARCH_VIEW_MANAGER_MESSAGES_NOTEBOOK_H