File: dbbook.cpp

package info (click to toggle)
wxsqlite3 3.0.0.1~dfsg0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,740 kB
  • sloc: cpp: 20,130; sh: 2,837; makefile: 302; ansic: 197; php: 9
file content (87 lines) | stat: -rwxr-xr-x 3,452 bytes parent folder | download | duplicates (2)
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
81
82
83
84
85
86
87
/*---------------------------------------------------------------------------*/
/* Logiciel de gestion de fichier de bases de donnes SQLite                 */
/*---------------------------------------------------------------------------*/
/* Projet  : wxSQLitePlus                              Version  : 0.2.1.0    */
/* Fichier : dbbook.cpp                                                      */
/* Auteur  : Fred Cailleau-Lepetit                     Date     : 29/07/2007 */
/* email   : softinthebox@free.fr                      Rvision : 04/05/2008 */
/*---------------------------------------------------------------------------*/
/* Copyright (C) Fred Cailleau-Lepetit 2007-2008                             */
/* Licence GNU General Public License  http://www.fsf.org/copyleft/gpl.html  */
/*---------------------------------------------------------------------------*/
/*
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 (version 3);

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

Ce programme est libre, vous pouvez le redistribuer et/ou le modifier
selon les termes de la Licence Publique Gnrale GNU publie par la
Free Software Foundation (version 3).

Ce programme est distribu car potentiellement utile, mais
SANS AUCUNE GARANTIE, ni explicite ni implicite, y compris
les garanties de commercialisation ou d'adaptation dans un but
spcifique. Reportez-vous  la Licence Publique Gnrale GNU
pour plus de dtails.
*/
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dbbook.h"
#endif

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

#include "dbbook.h"
#include "sqlite3table.h"
/*---------------------------------------------------------------------------*/
IMPLEMENT_CLASS(wxDbBook, wxPanel)
/*---------------------------------------------------------------------------*/
wxDbBook::wxDbBook()
{
   Init();
}
/*---------------------------------------------------------------------------*/
wxDbBook::wxDbBook(wxWindow* parent, wxWindowID id, const wxPoint& pos,
                   const wxSize& size, long style)
{
   Init();
   Create(parent, id, pos, size, style);
}
/*---------------------------------------------------------------------------*/
bool wxDbBook::Create(wxWindow* parent, wxWindowID id, const wxPoint& pos,
                      const wxSize& size, long style)
{
   wxPanel::Create( parent, id, pos, size, style );
   return true;
}
/*---------------------------------------------------------------------------*/
wxDbBook::~wxDbBook()
{
}
/*---------------------------------------------------------------------------*/
void wxDbBook::Init()
{
   m_db = NULL;
}
/*---------------------------------------------------------------------------*/
void wxDbBook::SetDbObjectName(wxSQLite3Database* db,
                               const wxString objectname, const wxString& base)
{
   m_db = db;
   m_Base = base;
   m_DbObjectName = objectname;
}                               
/*---------------------------------------------------------------------------*/