Unix Technical Forum

SVN Commit by andreas: r4171 - in trunk/pgadmin3/src: . base ctl include/base

This is a discussion on SVN Commit by andreas: r4171 - in trunk/pgadmin3/src: . base ctl include/base within the pgsql Interfaces Pgadmin Hackers forums, part of the PostgreSQL category; --> Author: andreas Date: 2005-05-09 01:12:52 +0100 (Mon, 09 May 2005) New Revision: 4171 Modified: trunk/pgadmin3/src/Makefile.am trunk/pgadmin3/src/base/pgSetBase.cpp trunk/pgadmin3/src/ctl/explainCanvas.cpp trunk/pgadmin3/src/include/base/pgSetBase.h Log: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 04:42 PM
svn@pgadmin.org
 
Posts: n/a
Default SVN Commit by andreas: r4171 - in trunk/pgadmin3/src: . base ctl include/base

Author: andreas
Date: 2005-05-09 01:12:52 +0100 (Mon, 09 May 2005)
New Revision: 4171

Modified:
trunk/pgadmin3/src/Makefile.am
trunk/pgadmin3/src/base/pgSetBase.cpp
trunk/pgadmin3/src/ctl/explainCanvas.cpp
trunk/pgadmin3/src/include/base/pgSetBase.h
Log:
gcc fixes

Modified: trunk/pgadmin3/src/Makefile.am
================================================== =================
--- trunk/pgadmin3/src/Makefile.am 2005-05-08 23:29:06 UTC (rev 4170)
+++ trunk/pgadmin3/src/Makefile.am 2005-05-09 00:12:52 UTC (rev 4171)
@@ -79,8 +79,13 @@
noinst_HEADERS = \
$(srcdir)/include/base/base.h $(srcdir)/include/base/appbase.h $(srcdir)/include/base/sysLogger.h \
$(srcdir)/include/base/pgDefs.h $(srcdir)/include/base/pgConnBase.h $(srcdir)/include/base/pgSetBase.h \
-$(srcdir)/include/copyright.h $(srcdir)/include/version.h $(srcdir)/include/ctlSQLBox.h \
-$(srcdir)/include/ctlSQLResult.h $(srcdir)/include/ctlListView.h \
+$(srcdir)/include/copyright.h $(srcdir)/include/version.h\
+\
+$(srcdir)/include/ctl/ctlSQLBox.h $(srcdir)/include/ctl/ctlSQLResult.h \
+$(srcdir)/include/ctl/ctlListView.h $(srcdir)/include/ctl/calbox.h \
+$(srcdir)/include/ctl/timespin.h $(srcdir)/include/ctl/ctlComboBox.h \
+$(srcdir)/include/ctl/xh_timespin.h $(srcdir)/include/ctl/xh_calb.h $(srcdir)/include/ctl/xh_sqlbox.h \
+$(srcdir)/include/ctl/xh_ctlcombo.h \
$(srcdir)/include/parser/parse.h $(srcdir)/include/parser/keywords.h $(srcdir)/include/nodes/parsenodes.h \
$(srcdir)/include/postgres.h $(srcdir)/include/pgDefs.h $(srcdir)/include/pgDatatype.h \
$(srcdir)/include/ctlSecurityPanel.h $(srcdir)/include/dlgClasses.h $(srcdir)/include/frmGrantWizard.h \
@@ -113,8 +118,6 @@
$(srcdir)/include/pgServer.h $(srcdir)/include/pgSet.h $(srcdir)/include/pgTable.h \
$(srcdir)/include/pgTrigger.h $(srcdir)/include/pgType.h $(srcdir)/include/pgUser.h \
$(srcdir)/include/pgView.h $(srcdir)/include/sysLogger.h $(srcdir)/include/utffile.h \
-$(srcdir)/include/calbox.h $(srcdir)/include/timespin.h $(srcdir)/include/ctlComboBox.h \
-$(srcdir)/include/xh_timespin.h $(srcdir)/include/xh_calb.h $(srcdir)/include/xh_sqlbox.h $(srcdir)/include/xh_ctlcombo.h \
$(srcdir)/include/sysSettings.h $(srcdir)/include/sysProcess.h $(srcdir)/include/wxgridsel.h $(srcdir)/include/menu.h\
$(srcdir)/include/pgconfig.h $(srcdir)/include/update.h $(srcdir)/include/frmUpdate.h \
$(srcdir)/include/dlgHbaConfig.h $(srcdir)/include/dlgMainConfig.h $(srcdir)/include/frmHint.h \

Modified: trunk/pgadmin3/src/base/pgSetBase.cpp
================================================== =================
--- trunk/pgadmin3/src/base/pgSetBase.cpp 2005-05-08 23:29:06 UTC (rev 4170)
+++ trunk/pgadmin3/src/base/pgSetBase.cpp 2005-05-09 00:12:52 UTC (rev 4171)
@@ -182,7 +182,7 @@
}


-long pgSetBase::GetLong(const wxString &col)
+long pgSetBase::GetLong(const wxString &col) const
{
char *c=PQgetvalue(res, pos-1, ColNumber(col));
if (c)
@@ -290,6 +290,13 @@

//////////////////////////////////////////////////////////////////

+pgSetIterator:gSetIterator(pgConnBase *conn, const wxString &qry)
+{
+ set=conn->ExecuteSet(qry);
+ first=true;
+}
+
+
pgSetIterator:gSetIterator(pgSetBase *s)
{
set=s;

Modified: trunk/pgadmin3/src/ctl/explainCanvas.cpp
================================================== =================
--- trunk/pgadmin3/src/ctl/explainCanvas.cpp 2005-05-08 23:29:06 UTC (rev 4170)
+++ trunk/pgadmin3/src/ctl/explainCanvas.cpp 2005-05-09 00:12:52 UTC (rev 4171)
@@ -91,10 +91,10 @@
}


- int x0 = rootShape->GetWidth()*3;
- int y0 = rootShape->GetHeight()*3/2;
- int xoffs = rootShape->GetWidth()*3;
- int yoffs = rootShape->GetHeight()*5/4;
+ int x0 = (int)(rootShape->GetWidth()*3);
+ int y0 = (int)(rootShape->GetHeight()*3/2);
+ int xoffs = (int)(rootShape->GetWidth()*3);
+ int yoffs = (int)(rootShape->GetHeight()*5/4);

wxNode *current = GetDiagram()->GetShapeList()->GetFirst();
while (current)
@@ -144,7 +144,7 @@
void ExplainCanvas::ShowPopup(ExplainShape *s)
{
int sx, sy;
- CalcScrolledPosition(s->GetX(), s->GetY(), &sx, &sy);
+ CalcScrolledPosition((int)s->GetX(), (int)s->GetY(), &sx, &sy);

popup->SetShape(s);

@@ -304,4 +304,4 @@
wxDialog::Hide();
}
}
-}
\ No newline at end of file
+}

Modified: trunk/pgadmin3/src/include/base/pgSetBase.h
================================================== =================
--- trunk/pgadmin3/src/include/base/pgSetBase.h 2005-05-08 23:29:06 UTC (rev 4170)
+++ trunk/pgadmin3/src/include/base/pgSetBase.h 2005-05-09 00:12:52 UTC (rev 4171)
@@ -66,7 +66,7 @@
wxString GetVal(const int col) const;
wxString GetVal(const wxString& col) const;
long GetLong(const int col) const;
- long GetLong(const wxString &col);
+ long GetLong(const wxString &col) const;
bool GetBool(const int col) const;
bool GetBool(const wxString &col) const;
double GetDouble(const int col) const;
@@ -99,15 +99,17 @@
{
public:
pgSetIterator(pgSetBase *s);
+ pgSetIterator(pgConnBase *conn, const wxString &sql);
~pgSetIterator();

bool RowsLeft();
+ bool IsValid() { return set != 0; }
pgSetBase *Set() { return set; }

wxString GetVal(const int col) const { return set->GetVal(col); }
wxString GetVal(const wxString& col) const { return set->GetVal(col); }
long GetLong(const int col) const { return set->GetLong(col); }
- long GetLong(const wxString &col) { return set->GetLong(col); }
+ long GetLong(const wxString &col) const { return set->GetLong(col); }
bool GetBool(const int col) const { return set->GetBool(col); }
bool GetBool(const wxString &col) const { return set->GetBool(col); }
double GetDouble(const int col) const { return set->GetDouble(col); }


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:46 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com