mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
init
This commit is contained in:
commit
9c6f9f3405
1784 changed files with 440662 additions and 0 deletions
45
ctl/xh_sqlbox.cpp
Normal file
45
ctl/xh_sqlbox.cpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
//////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// pgAdmin III - PostgreSQL Tools
|
||||
//
|
||||
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
|
||||
// This software is released under the PostgreSQL Licence
|
||||
//
|
||||
// xh_sqlbox.cpp - ctlSQLBox handler
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "pgAdmin3.h"
|
||||
|
||||
#include "wx/wx.h"
|
||||
#include "ctl/xh_sqlbox.h"
|
||||
#include "ctl/ctlSQLBox.h"
|
||||
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(ctlSQLBoxXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
ctlSQLBoxXmlHandler::ctlSQLBoxXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
XRC_ADD_STYLE(wxTE_MULTILINE);
|
||||
XRC_ADD_STYLE(wxSIMPLE_BORDER);
|
||||
XRC_ADD_STYLE(wxSUNKEN_BORDER);
|
||||
XRC_ADD_STYLE(wxTE_RICH2);
|
||||
|
||||
AddWindowStyles();
|
||||
}
|
||||
|
||||
|
||||
wxObject *ctlSQLBoxXmlHandler::DoCreateResource()
|
||||
{
|
||||
ctlSQLBox *sqlbox = new ctlSQLBox(m_parentAsWindow, GetID(), GetPosition(), GetSize(), GetStyle());
|
||||
|
||||
SetupWindow(sqlbox);
|
||||
|
||||
return sqlbox;
|
||||
}
|
||||
|
||||
bool ctlSQLBoxXmlHandler::CanHandle(wxXmlNode *node)
|
||||
{
|
||||
return IsOfClass(node, wxT("ctlSQLBox"));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue