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

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by andreas: r4171 - in trunk/pgadmin3/src: . base ctl include/base
Date: 2005-05-09 00:12:52
Message-ID: 200505090012.j490CqhO010758@developer.pgadmin.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

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::pgSetIterator(pgConnBase *conn, const wxString &qry)
+{
+ set=conn->ExecuteSet(qry);
+ first=true;
+}
+
+
pgSetIterator::pgSetIterator(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); }

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2005-05-09 07:08:12 Re: SVN Commit by andreas: r4171 - in trunk/pgadmin3/src: . base ctl include/base
Previous Message svn 2005-05-08 21:50:55 SVN Commit by dpage: r4169 - trunk/www/pgadmin3/class