Blame view

GUI/SW2/SRC/src/main/NbkTxtCtls.hpp 3.04 KB
886c558b   Steve Greedy   SACAMOS Public Re...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//**************************************************************************************************
//                                         NbkTxtCtls.hpp                                          *
//                                        ----------------                                         *
// Description : This class extends wxNotebook, it contains all text control objects which appear  *
//               at the bottom of the GUI.                                                         *
// Started     : 2005-06-14                                                                        *
// Last Update : 2016-03-28                                                                        *
// Copyright   : (C) 2005-2016 MSWaters                                                            *
//**************************************************************************************************

//**************************************************************************************************
//                                                                                                 *
//      This program is free software; you can redistribute it and/or modify it under the          *
//      terms of the GNU General Public License as published by the Free Software Foundation;      *
//      either version 3 of the License, or (at your option) any later version.                    *
//                                                                                                 *
//**************************************************************************************************

#ifndef NBKTXTCTLS_HPP
#define NBKTXTCTLS_HPP

// Application Includes

#include "TypeDefs.hpp"
#include "utility/TextCtrl.hpp"

// wxWidgets Includes

#include <wx/notebook.h>

// Local Constant Declarations

#define  NBKTXTCTLS_WIDTH   572
#define  NBKTXTCTLS_HEIGHT  179

//**************************************************************************************************

class NbkTxtCtls : public wxNotebook
{
  public :

    // The various page identifiers
    enum ePageType
    {
      ePAGE_CONSOLE = 0,
      ePAGE_NETLIST,
      ePAGE_SIMULTN,
      ePAGE_NGSPICE,
      ePAGE_GNUCAP,

      ePAGE_ALL,
      ePAGE_CURRENT,
      ePAGE_NONE,

      ePAGE_FST = ePAGE_CONSOLE,
      ePAGE_LST = ePAGE_NGSPICE
    };

          NbkTxtCtls( void );
         ~NbkTxtCtls( );

    bool  bCreate( wxWindow * poWin, wxWindowID oWinID );
    bool  bIsCreated( void ) { return( GetParent( )!=NULL ? true : false ); }

    bool  bClear     ( ePageType ePage=ePAGE_ALL );
    bool  bInitialize( ePageType ePage=ePAGE_ALL );

    bool  bSetPage( ePageType ePage );
    bool  bSetPosn( long liPosn );

    ePageType   eGetPage( void );
    TextCtrl * poGetPage( ePageType ePage=ePAGE_CURRENT );

    bool  bSetLinesMax( int iLines ) { return( TextCtrl::bSetLinesMax( iLines ) ); }
    bool  bSetLinesDsp( int iLines ) { return( TextCtrl::bSetLinesDsp( iLines ) ); }
};

//**************************************************************************************************

#endif // NBKTXTCTLS_HPP