"Fossies" - the Fresh Open Source Software Archive

Member "ldapexplorertool-2.0.1/src/mainframe.h" (28 Nov 2006, 2682 Bytes) of package /linux/privat/old/ldapexplorertool-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "mainframe.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef __LET_FRAME_H
    2 #define __LET_FRAME_H
    3 
    4 #include <wx/splitter.h>
    5 #include <wx/treectrl.h>
    6 #include <wx/listctrl.h>
    7 #include <wx/wizard.h>
    8 #include <ldap.h>
    9 #include "ldapentry.h"
   10 #include "ldapclass.h"
   11 #include "schema.h"
   12 
   13 #define BINARY_VALUES   1
   14 #define STRING_VALUES   2
   15 class LDAPItemData: public wxTreeItemData
   16 {   
   17     public:
   18         LDAPItemData( const wxString& p_Value) : wxTreeItemData()
   19         {
   20             m_Value = p_Value ;
   21         }
   22     
   23         wxString m_Value;
   24         
   25 };
   26 
   27 class ValueItemData: public wxTreeItemData
   28 {
   29     public:
   30         ValueItemData( int p_ValueType, berval* p_BerVal = NULL )
   31         {
   32             m_Type = p_ValueType ;
   33             m_BerVal = p_BerVal ;
   34         }
   35         ~ValueItemData( void )
   36         {
   37             if( m_BerVal != NULL )
   38                 ber_bvfree( m_BerVal );
   39         }
   40         int m_Type ;
   41         berval* m_BerVal ;
   42 };
   43 class MainFrame: public wxFrame
   44 {
   45     public:
   46         MainFrame();
   47         virtual ~MainFrame();
   48 
   49     private:
   50         void OnQuit( wxCommandEvent& WXUNUSED( p_Event ) ) ;
   51         void OnViewSchema( wxCommandEvent& WXUNUSED( p_Event ) );
   52         void OnOpen( wxCommandEvent& WXUNUSED( p_Event ) );
   53         void OnOpenLast( wxCommandEvent& WXUNUSED( p_Event ) );
   54         void OnNewConnection( wxCommandEvent& WXUNUSED( p_Event ) );
   55         void OnDeleteConnection( wxCommandEvent& WXUNUSED( p_Event ) );
   56 
   57         void OnOpenConnection( wxCommandEvent& WXUNUSED( p_Event ) );
   58         void OnEditConnection( wxCommandEvent& WXUNUSED( p_Event ) );
   59         void OnLeftSelectionChanged( wxTreeEvent& WXUNUSED( p_Event ) );
   60         void OnRightSelectionChanged( wxTreeEvent& WXUNUSED( p_Event ) );
   61         void OnRight_PopupMenu( wxTreeEvent& WXUNUSED( p_Event ) );
   62         void OnLeftMove( wxCommandEvent& WXUNUSED( p_Event ) );
   63         void OnLeft_PopupMenu( wxTreeEvent& WXUNUSED( p_Event ) );
   64 
   65         void OnAddEntry( wxCommandEvent& WXUNUSED( p_Event ) );
   66         
   67         void OnCopyEntry( wxCommandEvent& WXUNUSED( p_Event ) );
   68         void OnRenameEntry( wxCommandEvent& WXUNUSED( p_Event ) );
   69         void OnDeleteEntry( wxCommandEvent& WXUNUSED( p_Event ) );
   70         void OnAddAttribute( wxCommandEvent& WXUNUSED( p_Event ) );
   71         void OnDeleteAttribute( wxCommandEvent& WXUNUSED( p_Event ) );
   72         void OnAddValue( wxCommandEvent& WXUNUSED( p_Event ) );
   73         void OnAddBinValue( wxCommandEvent& WXUNUSED( p_Event ) );
   74         void OnModifyValue( wxCommandEvent& WXUNUSED( p_Event ) );
   75         void OnDeleteValue( wxCommandEvent& WXUNUSED( p_Event ) );
   76         void OnSearch( wxCommandEvent& WXUNUSED( p_Event ) );
   77         
   78         
   79         //void GetConfigurations( wxArrayString& p_List );
   80         
   81         void OnConnect( const wxString& p_Config );
   82         
   83         void Left_Display( wxTreeItemId p_ParentId, const wxString& p_Url );
   84         void Right_Display( wxString p_Url );
   85 
   86         SchemaUtil  m_Ldap ;
   87         wxString    m_ConfigName ;
   88         
   89         wxTreeCtrl* left_tree_ctrl;
   90 
   91         wxTreeCtrl* right_tree_ctrl;
   92 
   93         DECLARE_EVENT_TABLE()
   94 };
   95 #endif