Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -252,7 +252,7 @@ bool BrowserDB::OnGetNext(int Cols,int WXUNUSED(Quiet))
|
|||||||
{
|
{
|
||||||
case DB_DATA_TYPE_VARCHAR:
|
case DB_DATA_TYPE_VARCHAR:
|
||||||
wxStrcpy(s_temp,_T(""));
|
wxStrcpy(s_temp,_T(""));
|
||||||
if (!db_BrowserDB->GetData(i+1,(cl_BrowserDB+i)->pColFor->i_dbDataType,&s_temp,sizeof(s_temp), &cb))
|
if (!db_BrowserDB->GetData((UWORD)(i+1),(SWORD)((cl_BrowserDB+i)->pColFor->i_dbDataType),&s_temp[0],sizeof(s_temp), &cb))
|
||||||
{
|
{
|
||||||
Temp0.Printf(_("\n-E-> BrowserDB::OnGetNext - ODBC-Error with GetNext of >%s<.\n-E-> "),(cl_BrowserDB+i)->tableName);
|
Temp0.Printf(_("\n-E-> BrowserDB::OnGetNext - ODBC-Error with GetNext of >%s<.\n-E-> "),(cl_BrowserDB+i)->tableName);
|
||||||
Temp0 += GetExtendedDBErrorMsg(__TFILE__,__LINE__);
|
Temp0 += GetExtendedDBErrorMsg(__TFILE__,__LINE__);
|
||||||
@@ -263,7 +263,7 @@ bool BrowserDB::OnGetNext(int Cols,int WXUNUSED(Quiet))
|
|||||||
break;
|
break;
|
||||||
case DB_DATA_TYPE_INTEGER:
|
case DB_DATA_TYPE_INTEGER:
|
||||||
l_temp = 0;
|
l_temp = 0;
|
||||||
if (!db_BrowserDB->GetData(i+1,(cl_BrowserDB+i)->pColFor->i_sqlDataType,&l_temp,sizeof(l_temp), &cb))
|
if (!db_BrowserDB->GetData((UWORD)(i+1),(SWORD)((cl_BrowserDB+i)->pColFor->i_sqlDataType),&l_temp,sizeof(l_temp), &cb))
|
||||||
{
|
{
|
||||||
Temp0.Printf(_("\n-E-> BrowserDB::OnGetData - ODBC-Error with GetNext \n-E-> "));
|
Temp0.Printf(_("\n-E-> BrowserDB::OnGetData - ODBC-Error with GetNext \n-E-> "));
|
||||||
Temp0 += GetExtendedDBErrorMsg(__TFILE__,__LINE__);
|
Temp0 += GetExtendedDBErrorMsg(__TFILE__,__LINE__);
|
||||||
@@ -276,7 +276,7 @@ bool BrowserDB::OnGetNext(int Cols,int WXUNUSED(Quiet))
|
|||||||
break;
|
break;
|
||||||
case DB_DATA_TYPE_FLOAT:
|
case DB_DATA_TYPE_FLOAT:
|
||||||
f_temp = 0;
|
f_temp = 0;
|
||||||
if (!db_BrowserDB->GetData(i+1,(cl_BrowserDB+i)->pColFor->i_sqlDataType,&f_temp,sizeof(f_temp), &cb))
|
if (!db_BrowserDB->GetData((UWORD)(i+1),(SWORD)((cl_BrowserDB+i)->pColFor->i_sqlDataType),&f_temp,sizeof(f_temp), &cb))
|
||||||
{
|
{
|
||||||
Temp0.Printf(_("\n-E-> BrowserDB::OnGetData - ODBC-Error with GetNext \n-E-> "));
|
Temp0.Printf(_("\n-E-> BrowserDB::OnGetData - ODBC-Error with GetNext \n-E-> "));
|
||||||
Temp0 += GetExtendedDBErrorMsg(__TFILE__,__LINE__);
|
Temp0 += GetExtendedDBErrorMsg(__TFILE__,__LINE__);
|
||||||
@@ -289,8 +289,14 @@ bool BrowserDB::OnGetNext(int Cols,int WXUNUSED(Quiet))
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DB_DATA_TYPE_DATE:
|
case DB_DATA_TYPE_DATE:
|
||||||
t_temp.day = t_temp.month = t_temp.year = t_temp.hour = t_temp.minute = t_temp.second = t_temp.fraction = 0;
|
t_temp.day = 0;
|
||||||
if (!db_BrowserDB->GetData(i+1,(cl_BrowserDB+i)->pColFor->i_sqlDataType,&t_temp,sizeof(t_temp), &cb))
|
t_temp.month = 0;
|
||||||
|
t_temp.year = 0;
|
||||||
|
t_temp.hour = 0;
|
||||||
|
t_temp.minute = 0;
|
||||||
|
t_temp.second = 0;
|
||||||
|
t_temp.fraction = 0;
|
||||||
|
if (!db_BrowserDB->GetData((UWORD)(i+1),(SWORD)((cl_BrowserDB+i)->pColFor->i_sqlDataType),&t_temp,sizeof(t_temp), &cb))
|
||||||
{
|
{
|
||||||
Temp0.Printf(_("\n-E-> BrowserDB::OnGetData - ODBC-Error with GetNext \n-E-> "));
|
Temp0.Printf(_("\n-E-> BrowserDB::OnGetData - ODBC-Error with GetNext \n-E-> "));
|
||||||
Temp0 += GetExtendedDBErrorMsg(__TFILE__,__LINE__);
|
Temp0 += GetExtendedDBErrorMsg(__TFILE__,__LINE__);
|
||||||
|
@@ -50,12 +50,6 @@ twTabInfo::twTabInfo()
|
|||||||
: mpContent( 0 )
|
: mpContent( 0 )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
twTabInfo::~twTabInfo()
|
|
||||||
{
|
|
||||||
// FOR NOW:: nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
int twTabInfo::ImgWidth()
|
int twTabInfo::ImgWidth()
|
||||||
{
|
{
|
||||||
@@ -721,12 +715,6 @@ wxPagedWindow::wxPagedWindow()
|
|||||||
mNoVertScroll = true; // Horizontale Scroll abschalten
|
mNoVertScroll = true; // Horizontale Scroll abschalten
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
wxPagedWindow::~wxPagedWindow()
|
|
||||||
{
|
|
||||||
// nothing (base class handles destruction)
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
wxFont wxPagedWindow::GetLabelingFont()
|
wxFont wxPagedWindow::GetLabelingFont()
|
||||||
{
|
{
|
||||||
|
@@ -112,7 +112,7 @@ public:
|
|||||||
|
|
||||||
virtual void AddTab( wxWindow* pContent,
|
virtual void AddTab( wxWindow* pContent,
|
||||||
wxString tabText,
|
wxString tabText,
|
||||||
wxBitmap* pImage = NULL );
|
wxBitmap* pImage );
|
||||||
|
|
||||||
virtual void RemoveTab( int tabNo );
|
virtual void RemoveTab( int tabNo );
|
||||||
|
|
||||||
@@ -200,7 +200,7 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxPagedWindow();
|
wxPagedWindow();
|
||||||
~wxPagedWindow();
|
~wxPagedWindow(){};
|
||||||
|
|
||||||
// NOTE:: use public methods of the base class
|
// NOTE:: use public methods of the base class
|
||||||
// to add "pages" to this window
|
// to add "pages" to this window
|
||||||
@@ -243,7 +243,7 @@ class twTabInfo : public wxObject
|
|||||||
DECLARE_DYNAMIC_CLASS( twTabInfo )
|
DECLARE_DYNAMIC_CLASS( twTabInfo )
|
||||||
public:
|
public:
|
||||||
twTabInfo();
|
twTabInfo();
|
||||||
~twTabInfo();
|
~twTabInfo(){};
|
||||||
|
|
||||||
int ImgWidth();
|
int ImgWidth();
|
||||||
int ImgHeight();
|
int ImgHeight();
|
||||||
|
@@ -133,17 +133,6 @@ void Card::SetScale(double scale)
|
|||||||
m_height = int(70*scale);
|
m_height = int(70*scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
//+-------------------------------------------------------------+
|
|
||||||
//| Card::~Card() |
|
|
||||||
//+-------------------------------------------------------------+
|
|
||||||
//| Description: |
|
|
||||||
//| Destructor - nothing to do at present. |
|
|
||||||
//+-------------------------------------------------------------+
|
|
||||||
Card::~Card()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//+-------------------------------------------------------------+
|
//+-------------------------------------------------------------+
|
||||||
//| Card::Erase() |
|
//| Card::Erase() |
|
||||||
//+-------------------------------------------------------------+
|
//+-------------------------------------------------------------+
|
||||||
|
@@ -44,7 +44,7 @@ class Card {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
Card(int value, WayUp way_up = facedown);
|
Card(int value, WayUp way_up = facedown);
|
||||||
virtual ~Card();
|
virtual ~Card(){};
|
||||||
|
|
||||||
void Draw(wxDC& pDC, int x, int y);
|
void Draw(wxDC& pDC, int x, int y);
|
||||||
static void DrawNullCard(wxDC& pDC, int x, int y); // Draw card place-holder
|
static void DrawNullCard(wxDC& pDC, int x, int y); // Draw card place-holder
|
||||||
|
@@ -58,10 +58,6 @@ wxColour* FortyApp::m_backgroundColour = 0;
|
|||||||
wxColour* FortyApp::m_textColour = 0;
|
wxColour* FortyApp::m_textColour = 0;
|
||||||
wxBrush* FortyApp::m_backgroundBrush = 0;
|
wxBrush* FortyApp::m_backgroundBrush = 0;
|
||||||
|
|
||||||
FortyApp::FortyApp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
FortyApp::~FortyApp()
|
FortyApp::~FortyApp()
|
||||||
{
|
{
|
||||||
delete m_backgroundColour;
|
delete m_backgroundColour;
|
||||||
@@ -210,10 +206,6 @@ FortyFrame::FortyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos
|
|||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
}
|
}
|
||||||
|
|
||||||
FortyFrame::~FortyFrame()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void FortyFrame::OnCloseWindow(wxCloseEvent& event)
|
void FortyFrame::OnCloseWindow(wxCloseEvent& event)
|
||||||
{
|
{
|
||||||
if (m_canvas->OnCloseCanvas() )
|
if (m_canvas->OnCloseCanvas() )
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
class FortyApp: public wxApp
|
class FortyApp: public wxApp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FortyApp();
|
FortyApp(){};
|
||||||
~FortyApp();
|
~FortyApp();
|
||||||
bool OnInit();
|
bool OnInit();
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ class FortyFrame: public wxFrame
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FortyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, const wxSize& size, bool largecards);
|
FortyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, const wxSize& size, bool largecards);
|
||||||
virtual ~FortyFrame();
|
virtual ~FortyFrame(){};
|
||||||
|
|
||||||
void OnCloseWindow(wxCloseEvent& event);
|
void OnCloseWindow(wxCloseEvent& event);
|
||||||
|
|
||||||
|
@@ -861,11 +861,6 @@ bool Base::AcceptCard(Card* card)
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
Base::~Base()
|
|
||||||
{
|
|
||||||
// nothing special at the moment
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------//
|
//----------------------------------------------------------------//
|
||||||
// The Foundation class: holds the cards built up from the ace... //
|
// The Foundation class: holds the cards built up from the ace... //
|
||||||
@@ -895,11 +890,6 @@ bool Foundation::AcceptCard(Card* card)
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
Foundation::~Foundation()
|
|
||||||
{
|
|
||||||
// nothing special at the moment
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------//
|
//----------------------------------------------------//
|
||||||
// The Discard class: holds cards dealt from the m_pack //
|
// The Discard class: holds cards dealt from the m_pack //
|
||||||
@@ -992,9 +982,3 @@ Card* Discard::RemoveTopCard(wxDC& dc, int m_xOffset, int m_yOffset)
|
|||||||
|
|
||||||
return card;
|
return card;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Discard::~Discard()
|
|
||||||
{
|
|
||||||
// nothing special at the moment
|
|
||||||
};
|
|
||||||
|
@@ -39,7 +39,7 @@ public:
|
|||||||
class Base : public Pile {
|
class Base : public Pile {
|
||||||
public:
|
public:
|
||||||
Base(int x, int y);
|
Base(int x, int y);
|
||||||
~Base();
|
~Base(){};
|
||||||
bool AcceptCard(Card* card);
|
bool AcceptCard(Card* card);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ public:
|
|||||||
class Foundation : public Pile {
|
class Foundation : public Pile {
|
||||||
public:
|
public:
|
||||||
Foundation(int x, int y);
|
Foundation(int x, int y);
|
||||||
~Foundation();
|
~Foundation(){};
|
||||||
bool AcceptCard(Card* card);
|
bool AcceptCard(Card* card);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ public:
|
|||||||
class Discard : public Pile {
|
class Discard : public Pile {
|
||||||
public:
|
public:
|
||||||
Discard(int x, int y);
|
Discard(int x, int y);
|
||||||
~Discard();
|
~Discard(){};
|
||||||
void Redraw(wxDC& dc);
|
void Redraw(wxDC& dc);
|
||||||
void GetTopCardPos(int& x, int& y);
|
void GetTopCardPos(int& x, int& y);
|
||||||
Card* RemoveTopCard(wxDC& dc, int m_xOffset, int m_yOffset);
|
Card* RemoveTopCard(wxDC& dc, int m_xOffset, int m_yOffset);
|
||||||
|
@@ -298,9 +298,3 @@ bool Pile::Overlap(int x, int y)
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Pile::~Pile()
|
|
||||||
{
|
|
||||||
// nothing special at the moment
|
|
||||||
}
|
|
||||||
|
@@ -42,7 +42,7 @@ const int NumCards = 2 * PackSize;
|
|||||||
class Pile {
|
class Pile {
|
||||||
public:
|
public:
|
||||||
Pile(int x, int y, int dx = 0, int dy = 0);
|
Pile(int x, int y, int dx = 0, int dy = 0);
|
||||||
virtual ~Pile();
|
virtual ~Pile(){};
|
||||||
|
|
||||||
// General functions
|
// General functions
|
||||||
virtual void ResetPile() { m_topCard = -1; }
|
virtual void ResetPile() { m_topCard = -1; }
|
||||||
|
@@ -83,10 +83,6 @@ PlayerSelectionDialog::PlayerSelectionDialog(
|
|||||||
CentreOnParent();
|
CentreOnParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerSelectionDialog::~PlayerSelectionDialog()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void PlayerSelectionDialog::OnSize(wxSizeEvent& WXUNUSED(event))
|
void PlayerSelectionDialog::OnSize(wxSizeEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
Layout();
|
Layout();
|
||||||
|
@@ -17,7 +17,7 @@ class PlayerSelectionDialog : public wxDialog
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PlayerSelectionDialog(wxWindow* parent, ScoreFile* file);
|
PlayerSelectionDialog(wxWindow* parent, ScoreFile* file);
|
||||||
virtual ~PlayerSelectionDialog();
|
virtual ~PlayerSelectionDialog(){};
|
||||||
|
|
||||||
const wxString& GetPlayersName();
|
const wxString& GetPlayersName();
|
||||||
void ButtonCallback(wxCommandEvent& event);
|
void ButtonCallback(wxCommandEvent& event);
|
||||||
|
@@ -203,10 +203,6 @@ ScoreDialog::ScoreDialog(wxWindow* parent, ScoreFile* file) :
|
|||||||
CentreOnParent();
|
CentreOnParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
ScoreDialog::~ScoreDialog()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScoreDialog::Display()
|
void ScoreDialog::Display()
|
||||||
{
|
{
|
||||||
ShowModal();
|
ShowModal();
|
||||||
|
@@ -17,7 +17,7 @@ class ScoreDialog : public wxDialog
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScoreDialog(wxWindow* parent, ScoreFile* file);
|
ScoreDialog(wxWindow* parent, ScoreFile* file);
|
||||||
virtual ~ScoreDialog();
|
virtual ~ScoreDialog(){};
|
||||||
|
|
||||||
void Display();
|
void Display();
|
||||||
|
|
||||||
|
@@ -1025,7 +1025,7 @@ void LifeCanvas::OnSize(wxSizeEvent& event)
|
|||||||
|
|
||||||
void LifeCanvas::OnScroll(wxScrollWinEvent& event)
|
void LifeCanvas::OnScroll(wxScrollWinEvent& event)
|
||||||
{
|
{
|
||||||
WXTYPE type = event.GetEventType();
|
WXTYPE type = (WXTYPE)event.GetEventType();
|
||||||
int pos = event.GetPosition();
|
int pos = event.GetPosition();
|
||||||
int orient = event.GetOrientation();
|
int orient = event.GetOrientation();
|
||||||
|
|
||||||
|
@@ -220,7 +220,7 @@ void MainWindow::ScanBuffer(wxDC *dc, bool DrawIt, int *max_x, int *max_y)
|
|||||||
while (((ch = poem_buffer[i]) != 10) && (ch != 0))
|
while (((ch = poem_buffer[i]) != 10) && (ch != 0))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
line[j] = ch;
|
line[j] = (wxChar)ch;
|
||||||
j ++;
|
j ++;
|
||||||
i ++;
|
i ++;
|
||||||
}
|
}
|
||||||
@@ -851,7 +851,7 @@ bool LoadPoem(wxChar *file_name, long position)
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
poem_buffer[i] = ch;
|
poem_buffer[i] = (wxChar)ch;
|
||||||
i ++;
|
i ++;
|
||||||
|
|
||||||
if (i == buf_size)
|
if (i == buf_size)
|
||||||
|
@@ -184,10 +184,13 @@ public:
|
|||||||
const wxString &qryTblName=wxEmptyString, bool qryOnly = !wxDB_QUERY_ONLY,
|
const wxString &qryTblName=wxEmptyString, bool qryOnly = !wxDB_QUERY_ONLY,
|
||||||
const wxString &tblPath=wxEmptyString);
|
const wxString &tblPath=wxEmptyString);
|
||||||
|
|
||||||
// DEPRECATED
|
#if WXWIN_COMPATIBILITY_2_4
|
||||||
|
wxDEPRECATED(
|
||||||
wxDbTable(wxDb *pwxDb, const wxString &tblName, const UWORD numColumns,
|
wxDbTable(wxDb *pwxDb, const wxString &tblName, const UWORD numColumns,
|
||||||
const wxChar *qryTblName=wxEmptyString, bool qryOnly = !wxDB_QUERY_ONLY,
|
const wxChar *qryTblName=wxEmptyString, bool qryOnly = !wxDB_QUERY_ONLY,
|
||||||
const wxString &tblPath=wxEmptyString);
|
const wxString &tblPath=wxEmptyString)
|
||||||
|
);
|
||||||
|
#endif // WXWIN_COMPATIBILITY_2_4
|
||||||
|
|
||||||
virtual ~wxDbTable();
|
virtual ~wxDbTable();
|
||||||
|
|
||||||
|
@@ -56,7 +56,7 @@ public:
|
|||||||
wxString ReadString(); // deprecated: use ReadLine or ReadWord instead
|
wxString ReadString(); // deprecated: use ReadLine or ReadWord instead
|
||||||
wxString ReadLine();
|
wxString ReadLine();
|
||||||
wxString ReadWord();
|
wxString ReadWord();
|
||||||
wxChar GetChar() { wxChar c = NextChar(); return c != wxEOT ? c : 0; }
|
wxChar GetChar() { wxChar c = NextChar(); return (wxChar)(c != wxEOT ? c : 0); }
|
||||||
|
|
||||||
wxString GetStringSeparators() const { return m_separators; }
|
wxString GetStringSeparators() const { return m_separators; }
|
||||||
void SetStringSeparators(const wxString &c) { m_separators = c; }
|
void SetStringSeparators(const wxString &c) { m_separators = c; }
|
||||||
|
@@ -320,7 +320,7 @@ bool wxDbGridTableBase::CanGetValueAs(int row, int col, const wxString& typeName
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_data->IsColNull(m_ColInfo[col].DbCol))
|
if (m_data->IsColNull((UWORD)m_ColInfo[col].DbCol))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -508,7 +508,7 @@ void* wxDbGridTableBase::GetValueAsCustom(int row, int col, const wxString& type
|
|||||||
wxFAIL_MSG (_T("You can not use GetValueAsCustom for virtual columns"));
|
wxFAIL_MSG (_T("You can not use GetValueAsCustom for virtual columns"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (m_data->IsColNull(m_ColInfo[col].DbCol))
|
if (m_data->IsColNull((UWORD)m_ColInfo[col].DbCol))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (typeName == wxGRID_VALUE_DATETIME)
|
if (typeName == wxGRID_VALUE_DATETIME)
|
||||||
@@ -580,7 +580,7 @@ bool wxDbGridTableBase::IsEmptyCell(int row, int col)
|
|||||||
wxLogDebug(wxT("IsEmtpyCell on %i,%i"),row,col);
|
wxLogDebug(wxT("IsEmtpyCell on %i,%i"),row,col);
|
||||||
|
|
||||||
ValidateRow(row);
|
ValidateRow(row);
|
||||||
return m_data->IsColNull(m_ColInfo[col].DbCol);
|
return m_data->IsColNull((UWORD)m_ColInfo[col].DbCol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -116,6 +116,7 @@ wxDbTable::wxDbTable(wxDb *pwxDb, const wxString &tblName, const UWORD numColumn
|
|||||||
|
|
||||||
|
|
||||||
/***** DEPRECATED: use wxDbTable::wxDbTable() format above *****/
|
/***** DEPRECATED: use wxDbTable::wxDbTable() format above *****/
|
||||||
|
#if WXWIN_COMPATIBILITY_2_4
|
||||||
wxDbTable::wxDbTable(wxDb *pwxDb, const wxString &tblName, const UWORD numColumns,
|
wxDbTable::wxDbTable(wxDb *pwxDb, const wxString &tblName, const UWORD numColumns,
|
||||||
const wxChar *qryTblName, bool qryOnly, const wxString &tblPath)
|
const wxChar *qryTblName, bool qryOnly, const wxString &tblPath)
|
||||||
{
|
{
|
||||||
@@ -124,6 +125,7 @@ wxDbTable::wxDbTable(wxDb *pwxDb, const wxString &tblName, const UWORD numColumn
|
|||||||
if (!initialize(pwxDb, tblName, numColumns, tempQryTblName, qryOnly, tblPath))
|
if (!initialize(pwxDb, tblName, numColumns, tempQryTblName, qryOnly, tblPath))
|
||||||
cleanup();
|
cleanup();
|
||||||
} // wxDbTable::wxDbTable()
|
} // wxDbTable::wxDbTable()
|
||||||
|
#endif // WXWIN_COMPATIBILITY_2_4
|
||||||
|
|
||||||
|
|
||||||
/********** wxDbTable::~wxDbTable() **********/
|
/********** wxDbTable::~wxDbTable() **********/
|
||||||
@@ -1260,7 +1262,7 @@ void wxDbTable::BuildWhereClause(wxString &pWhereClause, int typeOfWhere,
|
|||||||
{
|
{
|
||||||
// Determine if this column should be included in the WHERE clause
|
// Determine if this column should be included in the WHERE clause
|
||||||
if ((typeOfWhere == DB_WHERE_KEYFIELDS && colDefs[colNo].KeyField) ||
|
if ((typeOfWhere == DB_WHERE_KEYFIELDS && colDefs[colNo].KeyField) ||
|
||||||
(typeOfWhere == DB_WHERE_MATCHING && (!IsColNull(colNo))))
|
(typeOfWhere == DB_WHERE_MATCHING && (!IsColNull((UWORD)colNo))))
|
||||||
{
|
{
|
||||||
// Skip over timestamp columns
|
// Skip over timestamp columns
|
||||||
if (colDefs[colNo].SqlCtype == SQL_C_TIMESTAMP)
|
if (colDefs[colNo].SqlCtype == SQL_C_TIMESTAMP)
|
||||||
@@ -2217,7 +2219,7 @@ void wxDbTable::ClearMemberVars(bool setToNull)
|
|||||||
|
|
||||||
// Loop through the columns setting each member variable to zero
|
// Loop through the columns setting each member variable to zero
|
||||||
for (i=0; i < noCols; i++)
|
for (i=0; i < noCols; i++)
|
||||||
ClearMemberVar(i,setToNull);
|
ClearMemberVar((UWORD)i,setToNull);
|
||||||
|
|
||||||
} // wxDbTable::ClearMemberVars()
|
} // wxDbTable::ClearMemberVars()
|
||||||
|
|
||||||
@@ -2558,7 +2560,7 @@ bool wxDbTable::SetColNull(const wxString &colName, bool set)
|
|||||||
{
|
{
|
||||||
colDefs[colNo].Null = set;
|
colDefs[colNo].Null = set;
|
||||||
if (set) // Blank out the values in the member variable
|
if (set) // Blank out the values in the member variable
|
||||||
ClearMemberVar(colNo,false); // Must call with false here, or infinite recursion will happen
|
ClearMemberVar((UWORD)colNo,false); // Must call with false here, or infinite recursion will happen
|
||||||
|
|
||||||
setCbValueForColumn(colNo);
|
setCbValueForColumn(colNo);
|
||||||
|
|
||||||
@@ -2665,7 +2667,7 @@ void wxDbTable::SetRowMode(const rowmode_t rowmode)
|
|||||||
wxVariant wxDbTable::GetCol(const int colNo) const
|
wxVariant wxDbTable::GetCol(const int colNo) const
|
||||||
{
|
{
|
||||||
wxVariant val;
|
wxVariant val;
|
||||||
if ((colNo < noCols) && (!IsColNull(colNo)))
|
if ((colNo < noCols) && (!IsColNull((UWORD)colNo)))
|
||||||
{
|
{
|
||||||
switch (colDefs[colNo].SqlCtype)
|
switch (colDefs[colNo].SqlCtype)
|
||||||
{
|
{
|
||||||
@@ -2718,7 +2720,7 @@ void wxDbTable::SetCol(const int colNo, const wxVariant val)
|
|||||||
//FIXME: Add proper wxDateTime support to wxVariant..
|
//FIXME: Add proper wxDateTime support to wxVariant..
|
||||||
wxDateTime dateval;
|
wxDateTime dateval;
|
||||||
|
|
||||||
SetColNull(colNo, val.IsNull());
|
SetColNull((UWORD)colNo, val.IsNull());
|
||||||
|
|
||||||
if (!val.IsNull())
|
if (!val.IsNull())
|
||||||
{
|
{
|
||||||
@@ -2728,7 +2730,7 @@ void wxDbTable::SetCol(const int colNo, const wxVariant val)
|
|||||||
{
|
{
|
||||||
//Returns null if invalid!
|
//Returns null if invalid!
|
||||||
if (!dateval.ParseDate(val.GetString()))
|
if (!dateval.ParseDate(val.GetString()))
|
||||||
SetColNull(colNo, true);
|
SetColNull((UWORD)colNo, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (colDefs[colNo].SqlCtype)
|
switch (colDefs[colNo].SqlCtype)
|
||||||
@@ -2745,7 +2747,7 @@ void wxDbTable::SetCol(const int colNo, const wxVariant val)
|
|||||||
break;
|
break;
|
||||||
case SQL_C_SHORT:
|
case SQL_C_SHORT:
|
||||||
case SQL_C_SSHORT:
|
case SQL_C_SSHORT:
|
||||||
*(short *)(colDefs[colNo].PtrDataObj) = val.GetLong();
|
*(short *)(colDefs[colNo].PtrDataObj) = (short)val.GetLong();
|
||||||
break;
|
break;
|
||||||
case SQL_C_ULONG:
|
case SQL_C_ULONG:
|
||||||
*(unsigned long *)(colDefs[colNo].PtrDataObj) = val.GetLong();
|
*(unsigned long *)(colDefs[colNo].PtrDataObj) = val.GetLong();
|
||||||
@@ -2757,7 +2759,7 @@ void wxDbTable::SetCol(const int colNo, const wxVariant val)
|
|||||||
*(wxChar *)(colDefs[colNo].PtrDataObj) = val.GetChar();
|
*(wxChar *)(colDefs[colNo].PtrDataObj) = val.GetChar();
|
||||||
break;
|
break;
|
||||||
case SQL_C_USHORT:
|
case SQL_C_USHORT:
|
||||||
*(unsigned short *)(colDefs[colNo].PtrDataObj) = val.GetLong();
|
*(unsigned short *)(colDefs[colNo].PtrDataObj) = (unsigned short)val.GetLong();
|
||||||
break;
|
break;
|
||||||
//FIXME: Add proper wxDateTime support to wxVariant..
|
//FIXME: Add proper wxDateTime support to wxVariant..
|
||||||
case SQL_C_DATE:
|
case SQL_C_DATE:
|
||||||
@@ -2765,9 +2767,9 @@ void wxDbTable::SetCol(const int colNo, const wxVariant val)
|
|||||||
DATE_STRUCT *dataptr =
|
DATE_STRUCT *dataptr =
|
||||||
(DATE_STRUCT *)colDefs[colNo].PtrDataObj;
|
(DATE_STRUCT *)colDefs[colNo].PtrDataObj;
|
||||||
|
|
||||||
dataptr->year = dateval.GetYear();
|
dataptr->year = (SQLSMALLINT)dateval.GetYear();
|
||||||
dataptr->month = dateval.GetMonth()+1;
|
dataptr->month = (SQLUSMALLINT)(dateval.GetMonth()+1);
|
||||||
dataptr->day = dateval.GetDay();
|
dataptr->day = (SQLUSMALLINT)dateval.GetDay();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SQL_C_TIME:
|
case SQL_C_TIME:
|
||||||
@@ -2784,9 +2786,9 @@ void wxDbTable::SetCol(const int colNo, const wxVariant val)
|
|||||||
{
|
{
|
||||||
TIMESTAMP_STRUCT *dataptr =
|
TIMESTAMP_STRUCT *dataptr =
|
||||||
(TIMESTAMP_STRUCT *)colDefs[colNo].PtrDataObj;
|
(TIMESTAMP_STRUCT *)colDefs[colNo].PtrDataObj;
|
||||||
dataptr->year = dateval.GetYear();
|
dataptr->year = (SQLSMALLINT)dateval.GetYear();
|
||||||
dataptr->month = dateval.GetMonth()+1;
|
dataptr->month = (SQLUSMALLINT)(dateval.GetMonth()+1);
|
||||||
dataptr->day = dateval.GetDay();
|
dataptr->day = (SQLUSMALLINT)dateval.GetDay();
|
||||||
|
|
||||||
dataptr->hour = dateval.GetHour();
|
dataptr->hour = dateval.GetHour();
|
||||||
dataptr->minute = dateval.GetMinute();
|
dataptr->minute = dateval.GetMinute();
|
||||||
@@ -2841,7 +2843,7 @@ void wxDbTable::SetKey(const GenericKey& k)
|
|||||||
{
|
{
|
||||||
if (colDefs[i].KeyField)
|
if (colDefs[i].KeyField)
|
||||||
{
|
{
|
||||||
SetColNull(i, false);
|
SetColNull((UWORD)i, false);
|
||||||
memcpy(colDefs[i].PtrDataObj, blkptr, colDefs[i].SzDataObj);
|
memcpy(colDefs[i].PtrDataObj, blkptr, colDefs[i].SzDataObj);
|
||||||
blkptr += colDefs[i].SzDataObj;
|
blkptr += colDefs[i].SzDataObj;
|
||||||
}
|
}
|
||||||
|
@@ -911,7 +911,7 @@ wxDos2UnixFilename (wxChar *s)
|
|||||||
*s = _T('/');
|
*s = _T('/');
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
else
|
else
|
||||||
*s = wxTolower (*s); // Case INDEPENDENT
|
*s = (wxChar)wxTolower (*s); // Case INDEPENDENT
|
||||||
#endif
|
#endif
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
|
@@ -728,7 +728,7 @@ wxSocketBase *wxFTP::GetPassivePort()
|
|||||||
(wxUint16)a[3] << 16 |
|
(wxUint16)a[3] << 16 |
|
||||||
(wxUint16)a[4] << 8 |
|
(wxUint16)a[4] << 8 |
|
||||||
a[5];
|
a[5];
|
||||||
wxUint16 port = (wxUint16)a[0] << 8 | a[1];
|
wxUint16 port = (wxUint16)(a[0] << 8 | a[1]);
|
||||||
|
|
||||||
wxIPV4address addr;
|
wxIPV4address addr;
|
||||||
addr.Hostname(hostaddr);
|
addr.Hostname(hostaddr);
|
||||||
|
@@ -1126,7 +1126,7 @@ bool wxMsgCatalogFile::Load(const wxChar *szDirPrefix, const wxChar *szName0,
|
|||||||
|
|
||||||
// read the whole file in memory
|
// read the whole file in memory
|
||||||
m_pData = new size_t8[nSize];
|
m_pData = new size_t8[nSize];
|
||||||
if ( fileMsg.Read(m_pData, nSize) != (size_t)nSize ) {
|
if ( fileMsg.Read(m_pData, (size_t)nSize) != (size_t)nSize ) {
|
||||||
wxDELETEA(m_pData);
|
wxDELETEA(m_pData);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1157,7 +1157,7 @@ bool wxMsgCatalogFile::Load(const wxChar *szDirPrefix, const wxChar *szName0,
|
|||||||
Swap(pHeader->ofsOrigTable));
|
Swap(pHeader->ofsOrigTable));
|
||||||
m_pTransTable = (wxMsgTableEntry *)(m_pData +
|
m_pTransTable = (wxMsgTableEntry *)(m_pData +
|
||||||
Swap(pHeader->ofsTransTable));
|
Swap(pHeader->ofsTransTable));
|
||||||
m_nSize = nSize;
|
m_nSize = (size_t)nSize;
|
||||||
|
|
||||||
// now parse catalog's header and try to extract catalog charset and
|
// now parse catalog's header and try to extract catalog charset and
|
||||||
// plural forms formula from it:
|
// plural forms formula from it:
|
||||||
|
@@ -558,7 +558,8 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
|
|||||||
wxAppTraits *traits = wxTheApp ? wxTheApp->GetTraits() : NULL;
|
wxAppTraits *traits = wxTheApp ? wxTheApp->GetTraits() : NULL;
|
||||||
if ( traits && !traits->HasStderr() )
|
if ( traits && !traits->HasStderr() )
|
||||||
{
|
{
|
||||||
wxMessageOutputDebug().Printf(_T("%s"), str.c_str());
|
wxMessageOutputDebug dbgout;
|
||||||
|
dbgout.Printf(_T("%s"), str.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1017,7 +1017,7 @@ public:
|
|||||||
{ m_value = wxDateTime(valptr->day, (wxDateTime::Month) (valptr->month - 1),valptr->year); }
|
{ m_value = wxDateTime(valptr->day, (wxDateTime::Month) (valptr->month - 1),valptr->year); }
|
||||||
wxVariantDataDateTime(const TIMESTAMP_STRUCT* valptr)
|
wxVariantDataDateTime(const TIMESTAMP_STRUCT* valptr)
|
||||||
{ m_value = wxDateTime(valptr->day, (wxDateTime::Month) (valptr->month - 1), valptr->year,
|
{ m_value = wxDateTime(valptr->day, (wxDateTime::Month) (valptr->month - 1), valptr->year,
|
||||||
valptr->hour, valptr->minute, valptr->second, valptr->fraction ); }
|
valptr->hour, valptr->minute, valptr->second, (wxDateTime::wxDateTime_t)valptr->fraction ); }
|
||||||
#endif //ODBC
|
#endif //ODBC
|
||||||
|
|
||||||
inline wxDateTime GetValue() const { return m_value; }
|
inline wxDateTime GetValue() const { return m_value; }
|
||||||
@@ -1722,7 +1722,8 @@ wxVariant wxVariant::operator[] (size_t idx) const
|
|||||||
wxVariantDataStringList* data = (wxVariantDataStringList*) m_data;
|
wxVariantDataStringList* data = (wxVariantDataStringList*) m_data;
|
||||||
wxASSERT_MSG( (idx < (size_t) data->GetValue().GetCount()), wxT("Invalid index for array") );
|
wxASSERT_MSG( (idx < (size_t) data->GetValue().GetCount()), wxT("Invalid index for array") );
|
||||||
|
|
||||||
wxVariant variant( wxString( (const wxChar*) (data->GetValue().Item(idx)->GetData()) ));
|
wxString str( (const wxChar*) (data->GetValue().Item(idx)->GetData()) );
|
||||||
|
wxVariant variant( str );
|
||||||
return variant;
|
return variant;
|
||||||
}
|
}
|
||||||
return wxNullVariant;
|
return wxNullVariant;
|
||||||
|
@@ -545,7 +545,7 @@ void wxGenericColourDialog::OnRedSlider(wxCommandEvent& WXUNUSED(event))
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
wxClientDC dc(this);
|
wxClientDC dc(this);
|
||||||
singleCustomColour.Set(redSlider->GetValue(), singleCustomColour.Green(), singleCustomColour.Blue());
|
singleCustomColour.Set((unsigned char)redSlider->GetValue(), singleCustomColour.Green(), singleCustomColour.Blue());
|
||||||
PaintCustomColour(dc);
|
PaintCustomColour(dc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -555,7 +555,7 @@ void wxGenericColourDialog::OnGreenSlider(wxCommandEvent& WXUNUSED(event))
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
wxClientDC dc(this);
|
wxClientDC dc(this);
|
||||||
singleCustomColour.Set(singleCustomColour.Red(), greenSlider->GetValue(), singleCustomColour.Blue());
|
singleCustomColour.Set(singleCustomColour.Red(), (unsigned char)greenSlider->GetValue(), singleCustomColour.Blue());
|
||||||
PaintCustomColour(dc);
|
PaintCustomColour(dc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -565,7 +565,7 @@ void wxGenericColourDialog::OnBlueSlider(wxCommandEvent& WXUNUSED(event))
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
wxClientDC dc(this);
|
wxClientDC dc(this);
|
||||||
singleCustomColour.Set(singleCustomColour.Red(), singleCustomColour.Green(), blueSlider->GetValue());
|
singleCustomColour.Set(singleCustomColour.Red(), singleCustomColour.Green(), (unsigned char)blueSlider->GetValue());
|
||||||
PaintCustomColour(dc);
|
PaintCustomColour(dc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -218,7 +218,7 @@ void wxFileData::ReadData()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_size = buff.st_size;
|
m_size = (long)buff.st_size;
|
||||||
|
|
||||||
m_dateTime = buff.st_mtime;
|
m_dateTime = buff.st_mtime;
|
||||||
|
|
||||||
|
@@ -669,7 +669,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
directoryOut = argv[current];
|
directoryOut = argv[current];
|
||||||
if ( !!directoryOut ) {
|
if ( !directoryOut.IsEmpty() ) {
|
||||||
// terminate with a '/' if it doesn't have it
|
// terminate with a '/' if it doesn't have it
|
||||||
switch ( directoryOut.Last() ) {
|
switch ( directoryOut.Last() ) {
|
||||||
case '/':
|
case '/':
|
||||||
@@ -729,7 +729,7 @@ int main(int argc, char **argv)
|
|||||||
// create a parser object and a visitor derivation
|
// create a parser object and a visitor derivation
|
||||||
CJSourceParser parser;
|
CJSourceParser parser;
|
||||||
HelpGenVisitor visitor(directoryOut, overwrite);
|
HelpGenVisitor visitor(directoryOut, overwrite);
|
||||||
if ( !!ignoreFile && mode == Mode_Dump )
|
if ( !ignoreFile.IsEmpty() && mode == Mode_Dump )
|
||||||
visitor.GetIgnoreHandler().AddNamesFromFile(ignoreFile);
|
visitor.GetIgnoreHandler().AddNamesFromFile(ignoreFile);
|
||||||
|
|
||||||
spContext *ctxTop = NULL;
|
spContext *ctxTop = NULL;
|
||||||
@@ -775,7 +775,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !!ignoreFile )
|
if ( !ignoreFile.IsEmpty() )
|
||||||
docman.GetIgnoreHandler().AddNamesFromFile(ignoreFile);
|
docman.GetIgnoreHandler().AddNamesFromFile(ignoreFile);
|
||||||
|
|
||||||
docman.DumpDifferences(ctxTop);
|
docman.DumpDifferences(ctxTop);
|
||||||
@@ -1417,7 +1417,7 @@ bool DocManager::ParseTeXFile(const wxString& filename)
|
|||||||
char *buf = new char[len + 1];
|
char *buf = new char[len + 1];
|
||||||
buf[len] = '\0';
|
buf[len] = '\0';
|
||||||
|
|
||||||
if ( file.Read(buf, len) == wxInvalidOffset ) {
|
if ( (wxFileOffset)file.Read(buf, len) == wxInvalidOffset ) {
|
||||||
delete [] buf;
|
delete [] buf;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -1988,7 +1988,7 @@ bool IgnoreNamesHandler::AddNamesFromFile(const wxString& filename)
|
|||||||
char *buf = new char[len + 1];
|
char *buf = new char[len + 1];
|
||||||
buf[len] = '\0';
|
buf[len] = '\0';
|
||||||
|
|
||||||
if ( file.Read(buf, len) == wxInvalidOffset ) {
|
if ( (wxFileOffset)file.Read(buf, len) == wxInvalidOffset ) {
|
||||||
delete [] buf;
|
delete [] buf;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -2186,6 +2186,9 @@ static const wxString GetVersionString()
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.31 2004/10/05 15:38:29 ABX
|
||||||
|
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
|
||||||
|
|
||||||
Revision 1.30 2004/06/18 19:25:50 ABX
|
Revision 1.30 2004/06/18 19:25:50 ABX
|
||||||
Small step in making HelpGen up to date unicode application.
|
Small step in making HelpGen up to date unicode application.
|
||||||
|
|
||||||
|
@@ -86,10 +86,6 @@ ctSettings::ctSettings(const ctSettings& settings)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ctSettings::~ctSettings()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ctSettings::operator = (const ctSettings& settings)
|
void ctSettings::operator = (const ctSettings& settings)
|
||||||
{
|
{
|
||||||
Copy(settings);
|
Copy(settings);
|
||||||
|
@@ -43,7 +43,7 @@ public:
|
|||||||
ctSettings(const ctSettings& settings);
|
ctSettings(const ctSettings& settings);
|
||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
~ctSettings();
|
~ctSettings(){};
|
||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
|
|
||||||
|
@@ -95,10 +95,6 @@ BEGIN_EVENT_TABLE(ctConfigToolView, wxView)
|
|||||||
|
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
ctConfigToolView::ctConfigToolView()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// What to do when a view is created. Creates actual
|
// What to do when a view is created. Creates actual
|
||||||
// windows for displaying the view.
|
// windows for displaying the view.
|
||||||
bool ctConfigToolView::OnCreate(wxDocument *doc, long WXUNUSED(flags) )
|
bool ctConfigToolView::OnCreate(wxDocument *doc, long WXUNUSED(flags) )
|
||||||
|
@@ -33,8 +33,8 @@ class ctConfigToolView: public wxView
|
|||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(ctConfigToolView)
|
DECLARE_DYNAMIC_CLASS(ctConfigToolView)
|
||||||
public:
|
public:
|
||||||
ctConfigToolView();
|
ctConfigToolView(){};
|
||||||
~ctConfigToolView() {};
|
~ctConfigToolView(){};
|
||||||
|
|
||||||
//// Overrides
|
//// Overrides
|
||||||
|
|
||||||
|
@@ -201,7 +201,7 @@ bool wxSimpleHtmlParser::ParseText(wxString& text)
|
|||||||
{
|
{
|
||||||
while (!Eof() && GetChar(m_pos) != wxT('<'))
|
while (!Eof() && GetChar(m_pos) != wxT('<'))
|
||||||
{
|
{
|
||||||
text += GetChar(m_pos);
|
text += (wxChar)GetChar(m_pos);
|
||||||
m_pos ++;
|
m_pos ++;
|
||||||
}
|
}
|
||||||
DecodeSpecialChars(text);
|
DecodeSpecialChars(text);
|
||||||
@@ -441,7 +441,7 @@ bool wxSimpleHtmlParser::ReadLiteral(wxString& str, bool eatIt)
|
|||||||
|
|
||||||
while (!Eof(pos) && !IsWhitespace(GetChar(pos)) && !IsTagEndBracket(GetChar(pos)) && GetChar(pos) != wxT('='))
|
while (!Eof(pos) && !IsWhitespace(GetChar(pos)) && !IsTagEndBracket(GetChar(pos)) && GetChar(pos) != wxT('='))
|
||||||
{
|
{
|
||||||
str += GetChar(pos);
|
str += (wxChar)GetChar(pos);
|
||||||
pos ++;
|
pos ++;
|
||||||
}
|
}
|
||||||
if (eatIt)
|
if (eatIt)
|
||||||
|
@@ -438,10 +438,6 @@ ctOutputWindow::ctOutputWindow(wxWindow* parent, wxWindowID id,
|
|||||||
CreateWindows();
|
CreateWindows();
|
||||||
}
|
}
|
||||||
|
|
||||||
ctOutputWindow::~ctOutputWindow()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Initialise the windows.
|
/// Initialise the windows.
|
||||||
void ctOutputWindow::CreateWindows()
|
void ctOutputWindow::CreateWindows()
|
||||||
{
|
{
|
||||||
|
@@ -41,7 +41,7 @@ class ctConfigurationBrowserWindow;
|
|||||||
class ctMainFrame: public wxDocParentFrame
|
class ctMainFrame: public wxDocParentFrame
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(ctMainFrame)
|
DECLARE_CLASS(ctMainFrame)
|
||||||
public:
|
public:
|
||||||
/// Constructor.
|
/// Constructor.
|
||||||
ctMainFrame(wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style);
|
ctMainFrame(wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style);
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ DECLARE_CLASS(ctOutputWindow)
|
|||||||
public:
|
public:
|
||||||
ctOutputWindow(wxWindow* parent, wxWindowID id,
|
ctOutputWindow(wxWindow* parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0);
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0);
|
||||||
~ctOutputWindow();
|
~ctOutputWindow(){};
|
||||||
|
|
||||||
/// Initialise the windows.
|
/// Initialise the windows.
|
||||||
void CreateWindows();
|
void CreateWindows();
|
||||||
|
@@ -65,10 +65,6 @@ ctPropertyEditor::ctPropertyEditor(wxWindow *parent, wxWindowID id, const wxPoin
|
|||||||
CreateControls(this);
|
CreateControls(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
ctPropertyEditor::~ctPropertyEditor()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ctPropertyEditor::CreateControls(wxWindow* parent)
|
void ctPropertyEditor::CreateControls(wxWindow* parent)
|
||||||
{
|
{
|
||||||
m_elementTitleTextCtrl = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
m_elementTitleTextCtrl = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
||||||
|
@@ -35,7 +35,7 @@ class ctPropertyEditor: public wxPanel
|
|||||||
DECLARE_CLASS(ctPropertyEditor)
|
DECLARE_CLASS(ctPropertyEditor)
|
||||||
public:
|
public:
|
||||||
ctPropertyEditor(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
|
ctPropertyEditor(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
|
||||||
~ctPropertyEditor();
|
~ctPropertyEditor(){};
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
|
|
||||||
|
@@ -82,9 +82,9 @@ wxString apColourToHexString(const wxColour& col)
|
|||||||
// Convert 6-digit hex string to a colour
|
// Convert 6-digit hex string to a colour
|
||||||
wxColour apHexStringToColour(const wxString& hex)
|
wxColour apHexStringToColour(const wxString& hex)
|
||||||
{
|
{
|
||||||
unsigned int r = wxHexToDec(hex.Mid(0, 2));
|
unsigned char r = (unsigned char)wxHexToDec(hex.Mid(0, 2));
|
||||||
unsigned int g = wxHexToDec(hex.Mid(2, 2));
|
unsigned char g = (unsigned char)wxHexToDec(hex.Mid(2, 2));
|
||||||
unsigned int b = wxHexToDec(hex.Mid(4, 2));
|
unsigned char b = (unsigned char)wxHexToDec(hex.Mid(4, 2));
|
||||||
|
|
||||||
return wxColour(r, g, b);
|
return wxColour(r, g, b);
|
||||||
}
|
}
|
||||||
|
@@ -57,10 +57,6 @@ ctApp::ctApp()
|
|||||||
m_docManager = NULL;
|
m_docManager = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctApp::~ctApp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ctApp::OnInit(void)
|
bool ctApp::OnInit(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ public:
|
|||||||
ctApp();
|
ctApp();
|
||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
~ctApp();
|
~ctApp(){};
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
|
@@ -557,9 +557,9 @@ wxString wxColourToHexString(const wxColour& col)
|
|||||||
// Convert 6-digit hex string to a colour
|
// Convert 6-digit hex string to a colour
|
||||||
wxColour wxHexStringToColour(const wxString& hex)
|
wxColour wxHexStringToColour(const wxString& hex)
|
||||||
{
|
{
|
||||||
unsigned int r = wxHexToDec(hex.Mid(0, 2));
|
unsigned char r = (unsigned char)wxHexToDec(hex.Mid(0, 2));
|
||||||
unsigned int g = wxHexToDec(hex.Mid(2, 2));
|
unsigned char g = (unsigned char)wxHexToDec(hex.Mid(2, 2));
|
||||||
unsigned int b = wxHexToDec(hex.Mid(4, 2));
|
unsigned char b = (unsigned char)wxHexToDec(hex.Mid(4, 2));
|
||||||
|
|
||||||
return wxColour(r, g, b);
|
return wxColour(r, g, b);
|
||||||
}
|
}
|
||||||
|
@@ -68,7 +68,8 @@ bool hvApp::OnInit()
|
|||||||
|
|
||||||
int istyle = wxHF_DEFAULT_STYLE;
|
int istyle = wxHF_DEFAULT_STYLE;
|
||||||
|
|
||||||
wxString service, windowName, book[10], titleFormat, argStr;
|
wxString service, windowName, titleFormat, argStr;
|
||||||
|
wxString book[10];
|
||||||
int bookCount = 0;
|
int bookCount = 0;
|
||||||
int i;
|
int i;
|
||||||
bool hasService = false;
|
bool hasService = false;
|
||||||
|
@@ -161,7 +161,7 @@ struct mfPLACEABLEHEADER {
|
|||||||
bool GetMetafileHeader(FILE *handle, int *width, int *height)
|
bool GetMetafileHeader(FILE *handle, int *width, int *height)
|
||||||
{
|
{
|
||||||
char buffer[40];
|
char buffer[40];
|
||||||
mfPLACEABLEHEADER *theHeader = (mfPLACEABLEHEADER *)&buffer;
|
mfPLACEABLEHEADER *theHeader = (mfPLACEABLEHEADER *)&buffer[0];
|
||||||
fread((void *)theHeader, sizeof(char), sizeof(mfPLACEABLEHEADER), handle);
|
fread((void *)theHeader, sizeof(char), sizeof(mfPLACEABLEHEADER), handle);
|
||||||
if (theHeader->key != 0x9AC6CDD7)
|
if (theHeader->key != 0x9AC6CDD7)
|
||||||
{
|
{
|
||||||
|
@@ -242,11 +242,11 @@ void WriteWinHelpContentsFileLine(wxChar *topicName, wxChar *xitle, int level)
|
|||||||
int d=0;
|
int d=0;
|
||||||
while ( (xitle[s]!=0)&&(d<255) )
|
while ( (xitle[s]!=0)&&(d<255) )
|
||||||
{
|
{
|
||||||
wxChar ch=xitle[s]&0xff;
|
wxChar ch=wxChar(xitle[s]&0xff);
|
||||||
if (ch==0x5c) {
|
if (ch==0x5c) {
|
||||||
wxChar ch1=xitle[s+1]&0xff;
|
wxChar ch1=wxChar(xitle[s+1]&0xff);
|
||||||
wxChar ch2=xitle[s+2]&0xff;
|
wxChar ch2=wxChar(xitle[s+2]&0xff);
|
||||||
wxChar ch3=xitle[s+3]&0xff;
|
wxChar ch3=wxChar(xitle[s+3]&0xff);
|
||||||
s+=4; // next character
|
s+=4; // next character
|
||||||
if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x36)) { title[d++]=_T('<EFBFBD>'); }
|
if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x36)) { title[d++]=_T('<EFBFBD>'); }
|
||||||
if ((ch1==0x27)&&(ch2==0x65)&&(ch3==0x34)) { title[d++]=_T('<EFBFBD>'); }
|
if ((ch1==0x27)&&(ch2==0x65)&&(ch3==0x34)) { title[d++]=_T('<EFBFBD>'); }
|
||||||
@@ -270,9 +270,6 @@ void WriteWinHelpContentsFileLine(wxChar *topicName, wxChar *xitle, int level)
|
|||||||
|
|
||||||
ResetContentsLevels(level);
|
ResetContentsLevels(level);
|
||||||
|
|
||||||
if (!title)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (winHelp && winHelpContents && WinHelpContentsFile)
|
if (winHelp && winHelpContents && WinHelpContentsFile)
|
||||||
{
|
{
|
||||||
TexTopic *texTopic = (TexTopic *)TopicTable.Get(topicName);
|
TexTopic *texTopic = (TexTopic *)TopicTable.Get(topicName);
|
||||||
|
@@ -522,7 +522,7 @@ bool read_a_line(wxChar *buf)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
buf[bufIndex] = ch;
|
buf[bufIndex] = (wxChar)ch;
|
||||||
bufIndex ++;
|
bufIndex ++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -588,7 +588,7 @@ bool read_a_line(wxChar *buf)
|
|||||||
// whether there should be a '\' before it or not
|
// whether there should be a '\' before it or not
|
||||||
if (ch != '_')
|
if (ch != '_')
|
||||||
{
|
{
|
||||||
buf[bufIndex++] = ch;
|
buf[bufIndex++] = (wxChar)ch;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -625,7 +625,7 @@ bool read_a_line(wxChar *buf)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buf[bufIndex++] = ch;
|
buf[bufIndex++] = (wxChar)ch;
|
||||||
break;
|
break;
|
||||||
} // switch
|
} // switch
|
||||||
} // else
|
} // else
|
||||||
@@ -1014,7 +1014,7 @@ int ParseArg(TexChunk *thisArg, wxList& children, wxChar *buffer, int pos, wxCha
|
|||||||
while (!eof && ch != 13 && ch != 32 && ch != 10 &&
|
while (!eof && ch != 13 && ch != 32 && ch != 10 &&
|
||||||
ch != 0 && ch != '{')
|
ch != 0 && ch != '{')
|
||||||
{
|
{
|
||||||
BigBuffer[buf_ptr] = ch;
|
BigBuffer[buf_ptr] = (wxChar)ch;
|
||||||
buf_ptr ++;
|
buf_ptr ++;
|
||||||
pos ++;
|
pos ++;
|
||||||
ch = buffer[pos];
|
ch = buffer[pos];
|
||||||
@@ -1190,7 +1190,7 @@ int ParseArg(TexChunk *thisArg, wxList& children, wxChar *buffer, int pos, wxCha
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxTex2RTFBuffer[i] = ch;
|
wxTex2RTFBuffer[i] = (wxChar)ch;
|
||||||
pos ++;
|
pos ++;
|
||||||
i ++;
|
i ++;
|
||||||
if (ch == 0)
|
if (ch == 0)
|
||||||
@@ -3436,12 +3436,12 @@ bool DefaultOnArgument(int macroId, int arg_no, bool start)
|
|||||||
if (fd)
|
if (fd)
|
||||||
{
|
{
|
||||||
ch = getc(fd);
|
ch = getc(fd);
|
||||||
smallBuf[0] = ch;
|
smallBuf[0] = (wxChar)ch;
|
||||||
while (ch != EOF)
|
while (ch != EOF)
|
||||||
{
|
{
|
||||||
TexOutput(smallBuf);
|
TexOutput(smallBuf);
|
||||||
ch = getc(fd);
|
ch = getc(fd);
|
||||||
smallBuf[0] = ch;
|
smallBuf[0] = (wxChar)ch;
|
||||||
}
|
}
|
||||||
fclose(fd);
|
fclose(fd);
|
||||||
}
|
}
|
||||||
@@ -3515,7 +3515,7 @@ bool DefaultOnArgument(int macroId, int arg_no, bool start)
|
|||||||
wxChar *s1 = copystring(s);
|
wxChar *s1 = copystring(s);
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < (int)wxStrlen(s); i++)
|
for (i = 0; i < (int)wxStrlen(s); i++)
|
||||||
s1[i] = wxToupper(s[i]);
|
s1[i] = (wxChar)wxToupper(s[i]);
|
||||||
TexOutput(s1);
|
TexOutput(s1);
|
||||||
delete[] s1;
|
delete[] s1;
|
||||||
return false;
|
return false;
|
||||||
@@ -3535,7 +3535,7 @@ bool DefaultOnArgument(int macroId, int arg_no, bool start)
|
|||||||
wxChar *s1 = copystring(s);
|
wxChar *s1 = copystring(s);
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < (int)wxStrlen(s); i++)
|
for (i = 0; i < (int)wxStrlen(s); i++)
|
||||||
s1[i] = wxTolower(s[i]);
|
s1[i] = (wxChar)wxTolower(s[i]);
|
||||||
TexOutput(s1);
|
TexOutput(s1);
|
||||||
delete[] s1;
|
delete[] s1;
|
||||||
return false;
|
return false;
|
||||||
@@ -3555,7 +3555,7 @@ bool DefaultOnArgument(int macroId, int arg_no, bool start)
|
|||||||
wxChar *s1 = copystring(s);
|
wxChar *s1 = copystring(s);
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < (int)wxStrlen(s); i++)
|
for (i = 0; i < (int)wxStrlen(s); i++)
|
||||||
s1[i] = wxToupper(s[i]);
|
s1[i] = (wxChar)wxToupper(s[i]);
|
||||||
TexOutput(s1);
|
TexOutput(s1);
|
||||||
delete[] s1;
|
delete[] s1;
|
||||||
return false;
|
return false;
|
||||||
|
@@ -1213,10 +1213,6 @@ Tex2RTFConnection::Tex2RTFConnection(wxChar *buf, int size):wxDDEConnection(buf,
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
Tex2RTFConnection::~Tex2RTFConnection(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SplitCommand(wxChar *data, wxChar *firstArg, wxChar *secondArg)
|
bool SplitCommand(wxChar *data, wxChar *firstArg, wxChar *secondArg)
|
||||||
{
|
{
|
||||||
firstArg[0] = 0;
|
firstArg[0] = 0;
|
||||||
|
@@ -74,7 +74,7 @@ class Tex2RTFConnection: public wxDDEConnection
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Tex2RTFConnection(wxChar *buf, int size);
|
Tex2RTFConnection(wxChar *buf, int size);
|
||||||
~Tex2RTFConnection(void);
|
~Tex2RTFConnection(void){};
|
||||||
bool OnExecute(const wxString& topic, wxChar *data, int size, wxIPCFormat format);
|
bool OnExecute(const wxString& topic, wxChar *data, int size, wxIPCFormat format);
|
||||||
wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
|
wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
|
||||||
};
|
};
|
||||||
|
@@ -496,12 +496,12 @@ void BibEatWhiteSpace(wxSTD istream& str)
|
|||||||
{
|
{
|
||||||
char ch = (char)str.peek();
|
char ch = (char)str.peek();
|
||||||
|
|
||||||
while (!str.eof() && (ch == ' ' || ch == '\t' || ch == 13 || ch == 10 || ch == EOF))
|
while (!str.eof() && (ch == ' ' || ch == '\t' || ch == 13 || ch == 10 || ch == (char)EOF))
|
||||||
{
|
{
|
||||||
if (ch == 10)
|
if (ch == 10)
|
||||||
BibLine ++;
|
BibLine ++;
|
||||||
str.get(ch);
|
str.get(ch);
|
||||||
if ((ch == EOF) || str.eof()) return;
|
if ((ch == (char)EOF) || str.eof()) return;
|
||||||
ch = (char)str.peek();
|
ch = (char)str.peek();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1704,10 +1704,10 @@ wxChar *ConvertCase(wxChar *s)
|
|||||||
int i;
|
int i;
|
||||||
if (upperCaseNames)
|
if (upperCaseNames)
|
||||||
for (i = 0; i < len; i ++)
|
for (i = 0; i < len; i ++)
|
||||||
buf[i] = wxToupper(s[i]);
|
buf[i] = (wxChar)wxToupper(s[i]);
|
||||||
else
|
else
|
||||||
for (i = 0; i < len; i ++)
|
for (i = 0; i < len; i ++)
|
||||||
buf[i] = wxTolower(s[i]);
|
buf[i] = (wxChar)wxTolower(s[i]);
|
||||||
buf[i] = 0;
|
buf[i] = 0;
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user