Log Message:
-----------
MSW Combobox Workaround: missing EVT_TEXT events

Modified Files:
--------------
    pgadmin3:
        CHANGELOG.txt (r1.157 -> r1.158)
    pgadmin3/src/ui:
        dlgAggregate.cpp (r1.19 -> r1.20)
        dlgCast.cpp (r1.14 -> r1.15)
        dlgColumn.cpp (r1.34 -> r1.35)
        dlgConversion.cpp (r1.17 -> r1.18)
        dlgDatabase.cpp (r1.35 -> r1.36)
        dlgForeignKey.cpp (r1.26 -> r1.27)
        dlgIndex.cpp (r1.24 -> r1.25)
        dlgLanguage.cpp (r1.16 -> r1.17)
        dlgOperator.cpp (r1.22 -> r1.23)
        dlgProperty.cpp (r1.104 -> r1.105)
        dlgSchema.cpp (r1.15 -> r1.16)
        dlgSequence.cpp (r1.27 -> r1.28)
        dlgServer.cpp (r1.13 -> r1.14)
        dlgTable.cpp (r1.46 -> r1.47)
        dlgTrigger.cpp (r1.22 -> r1.23)
        dlgType.cpp (r1.27 -> r1.28)
        dlgUser.cpp (r1.33 -> r1.34)

Index: CHANGELOG.txt
===================================================================
RCS file: /projects/pgadmin3/CHANGELOG.txt,v
retrieving revision 1.157
retrieving revision 1.158
diff -LCHANGELOG.txt -LCHANGELOG.txt -u -w -r1.157 -r1.158
--- CHANGELOG.txt
+++ CHANGELOG.txt
@@ -17,6 +17,7 @@
 </ul>
 <br>
 <ul>
+    <li>2004-11-03 AP  1.2B4 MSW Combobox Workaround: missing EVT_TEXT events
     <li>2004-11-02 AP  1.2B4 Fix some type related issues (r: Alexander Borkowski)
     <li>2004-11-02 AP  1.2B4 Fix some owner change related issues (r: Alexander 
Borkowski)
     <li>2004-10-29 AP  1.2B4 full casting in utffile fixing some compilers
Index: dlgTable.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgTable.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -Lsrc/ui/dlgTable.cpp -Lsrc/ui/dlgTable.cpp -u -w -r1.46 -r1.47
--- src/ui/dlgTable.cpp
+++ src/ui/dlgTable.cpp
@@ -56,7 +56,9 @@
 BEGIN_EVENT_TABLE(dlgTable, dlgSecurityProperty)
     EVT_CHECKBOX(XRCID("chkHasOids"),               dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbTablespace"),                 dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbTablespace"),             dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbTables"),                     dlgTable::OnChangeTable)
+    EVT_COMBOBOX(XRCID("cbTables"),                 dlgTable::OnChangeTable)
     EVT_BUTTON(XRCID("btnAddTable"),                dlgTable::OnAddTable)
     EVT_BUTTON(XRCID("btnRemoveTable"),             dlgTable::OnRemoveTable)
     EVT_LISTBOX(XRCID("lbTables"),                  dlgTable::OnSelChangeTable)
Index: dlgDatabase.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgDatabase.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -Lsrc/ui/dlgDatabase.cpp -Lsrc/ui/dlgDatabase.cpp -u -w -r1.35 -r1.36
--- src/ui/dlgDatabase.cpp
+++ src/ui/dlgDatabase.cpp
@@ -41,11 +41,14 @@
 BEGIN_EVENT_TABLE(dlgDatabase, dlgSecurityProperty)
     EVT_TEXT(XRCID("txtPath"),                      dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbTablespace"),                 dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbTablespace"),             dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbEncoding"),                   dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbEncoding"),               dlgProperty::OnChange)
     EVT_LIST_ITEM_SELECTED(XRCID("lstVariables"),   dlgDatabase::OnVarSelChange)
     EVT_BUTTON(wxID_ADD,                            dlgDatabase::OnVarAdd)
     EVT_BUTTON(wxID_REMOVE,                         dlgDatabase::OnVarRemove)
     EVT_TEXT(XRCID("cbVarname"),                    dlgDatabase::OnVarnameSelChange)
+    EVT_COMBOBOX(XRCID("cbVarname"),                dlgDatabase::OnVarnameSelChange)
 END_EVENT_TABLE();
 
 
Index: dlgSchema.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgSchema.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -Lsrc/ui/dlgSchema.cpp -Lsrc/ui/dlgSchema.cpp -u -w -r1.15 -r1.16
--- src/ui/dlgSchema.cpp
+++ src/ui/dlgSchema.cpp
@@ -27,6 +27,7 @@
 
 BEGIN_EVENT_TABLE(dlgSchema, dlgSecurityProperty)
     EVT_TEXT(XRCID("cbTablespace"),                 dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbTablespace"),             dlgProperty::OnChange)
 END_EVENT_TABLE();
 
 
Index: dlgUser.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgUser.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -Lsrc/ui/dlgUser.cpp -Lsrc/ui/dlgUser.cpp -u -w -r1.33 -r1.34
--- src/ui/dlgUser.cpp
+++ src/ui/dlgUser.cpp
@@ -61,6 +61,7 @@
     EVT_BUTTON(wxID_ADD,                            dlgUser::OnVarAdd)
     EVT_BUTTON(wxID_REMOVE,                         dlgUser::OnVarRemove)
     EVT_TEXT(XRCID("cbVarname"),                    dlgUser::OnVarnameSelChange)
+    EVT_COMBOBOX(XRCID("cbVarname"),                dlgUser::OnVarnameSelChange)
 END_EVENT_TABLE();
 
 
Index: dlgOperator.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgOperator.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -Lsrc/ui/dlgOperator.cpp -Lsrc/ui/dlgOperator.cpp -u -w -r1.22 -r1.23
--- src/ui/dlgOperator.cpp
+++ src/ui/dlgOperator.cpp
@@ -44,12 +44,19 @@
 
 BEGIN_EVENT_TABLE(dlgOperator, dlgTypeProperty)
     EVT_TEXT(XRCID("cbLeftType"),               dlgOperator::OnChangeTypeLeft)
+    EVT_COMBOBOX(XRCID("cbLeftType"),           dlgOperator::OnChangeTypeLeft)
     EVT_TEXT(XRCID("cbRightType"),              dlgOperator::OnChangeTypeRight)
+    EVT_COMBOBOX(XRCID("cbRightType"),          dlgOperator::OnChangeTypeRight)
     EVT_TEXT(XRCID("cbProcedure"),              dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbProcedure"),          dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbLeftSort") ,              dlgOperator::OnChangeJoin)
+    EVT_COMBOBOX(XRCID("cbLeftSort") ,          dlgOperator::OnChangeJoin)
     EVT_TEXT(XRCID("cbRightSort") ,             dlgOperator::OnChangeJoin)
+    EVT_COMBOBOX(XRCID("cbRightSort") ,         dlgOperator::OnChangeJoin)
     EVT_TEXT(XRCID("cbLess") ,                  dlgOperator::OnChangeJoin)
+    EVT_COMBOBOX(XRCID("cbLess") ,              dlgOperator::OnChangeJoin)
     EVT_TEXT(XRCID("cbGreater") ,               dlgOperator::OnChangeJoin)
+    EVT_COMBOBOX(XRCID("cbGreater") ,           dlgOperator::OnChangeJoin)
 END_EVENT_TABLE();
 
 
Index: dlgAggregate.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgAggregate.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -Lsrc/ui/dlgAggregate.cpp -Lsrc/ui/dlgAggregate.cpp -u -w -r1.19 -r1.20
--- src/ui/dlgAggregate.cpp
+++ src/ui/dlgAggregate.cpp
@@ -37,7 +37,10 @@
 
 BEGIN_EVENT_TABLE(dlgAggregate, dlgTypeProperty)
     EVT_TEXT(XRCID("cbBaseType"),                   dlgAggregate::OnChangeTypeBase)
+    EVT_COMBOBOX(XRCID("cbBaseType"),               dlgAggregate::OnChangeTypeBase)
     EVT_TEXT(XRCID("cbStateType"),                  dlgAggregate::OnChangeTypeState)
+    EVT_COMBOBOX(XRCID("cbStateType"),              dlgAggregate::OnChangeTypeState)
+    EVT_COMBOBOX(XRCID("cbStateFunc"),              dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbStateFunc"),                  dlgProperty::OnChange)
 END_EVENT_TABLE();
 
Index: dlgIndex.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgIndex.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -Lsrc/ui/dlgIndex.cpp -Lsrc/ui/dlgIndex.cpp -u -w -r1.24 -r1.25
--- src/ui/dlgIndex.cpp
+++ src/ui/dlgIndex.cpp
@@ -38,6 +38,7 @@
 
 BEGIN_EVENT_TABLE(dlgIndexBase, dlgCollistProperty)
     EVT_TEXT(XRCID("cbTablespace"),                 dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbTablespace"),             dlgProperty::OnChange)
     EVT_BUTTON(XRCID("btnAddCol"),                  dlgIndexBase::OnAddCol)
     EVT_BUTTON(XRCID("btnRemoveCol"),               dlgIndexBase::OnRemoveCol)
 END_EVENT_TABLE();
Index: dlgColumn.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgColumn.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -Lsrc/ui/dlgColumn.cpp -Lsrc/ui/dlgColumn.cpp -u -w -r1.34 -r1.35
--- src/ui/dlgColumn.cpp
+++ src/ui/dlgColumn.cpp
@@ -41,6 +41,7 @@
     EVT_TEXT(XRCID("txtDefault"),                   dlgProperty::OnChange)
     EVT_CHECKBOX(XRCID("chkNotNull"),               dlgProperty::OnChange)
     EVT_TEXT(XRCID("txtAttstattarget"),             dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbDatatype"),               dlgColumn::OnSelChangeTyp)
     EVT_TEXT(XRCID("cbDatatype"),                   dlgColumn::OnSelChangeTyp)
 END_EVENT_TABLE();
 
@@ -400,6 +401,7 @@
         bool enable=true;
         EnableOK(enable);   // to get rid of old messages
 
+        CheckValid(enable, cbDatatype->GetGuessedSelection() >= 0, _("Please select a 
datatype."));
         if (!connection->BackendMinimumVersion(7, 5))
         {
             CheckValid(enable, !isVarLen || !txtLength->GetValue().IsEmpty() || 
varlen >= column->GetLength(), 
@@ -414,13 +416,14 @@
         
         if (enable)
             enable = GetName() != column->GetName()
-                    || txtDefault->GetValue() != column->GetDefault()
-                    || txtComment->GetValue() != column->GetComment()
-                    || chkNotNull->GetValue() != column->GetNotNull()
-                    || (cbDatatype->GetCount() > 1 && cbDatatype->GetValue() != 
column->GetRawTypename())
-                    || (isVarLen && varlen != column->GetLength())
-                    || (isVarPrec && varprec != column->GetPrecision())
-                    || txtAttstattarget->GetValue() != 
NumToStr(column->GetAttstattarget());
+//                    || txtDefault->GetValue() != column->GetDefault()
+//                    || txtComment->GetValue() != column->GetComment()
+//                    || chkNotNull->GetValue() != column->GetNotNull()
+                    || (cbDatatype->GetCount() > 1 && 
cbDatatype->GetGuessedStringSelection() != column->GetRawTypename())
+//                    || (isVarLen && varlen != column->GetLength())
+//                    || (isVarPrec && varprec != column->GetPrecision())
+//                    || txtAttstattarget->GetValue() != 
NumToStr(column->GetAttstattarget());
+;
         EnableOK(enable);
     }
     else
Index: dlgSequence.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgSequence.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -Lsrc/ui/dlgSequence.cpp -Lsrc/ui/dlgSequence.cpp -u -w -r1.27 -r1.28
--- src/ui/dlgSequence.cpp
+++ src/ui/dlgSequence.cpp
@@ -38,6 +38,7 @@
 
 BEGIN_EVENT_TABLE(dlgSequence, dlgSecurityProperty)
     EVT_TEXT(XRCID("cbTablespace"),                 dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbTablespace"),             dlgProperty::OnChange)
     EVT_TEXT(XRCID("txtStart"),                     dlgProperty::OnChange)
     EVT_TEXT(XRCID("txtMin"),                       dlgProperty::OnChange)
     EVT_TEXT(XRCID("txtMax"),                       dlgProperty::OnChange)
Index: dlgForeignKey.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgForeignKey.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -Lsrc/ui/dlgForeignKey.cpp -Lsrc/ui/dlgForeignKey.cpp -u -w -r1.26 -r1.27
--- src/ui/dlgForeignKey.cpp
+++ src/ui/dlgForeignKey.cpp
@@ -46,8 +46,11 @@
 
     EVT_LIST_ITEM_SELECTED(XRCID("lstColumns"), dlgForeignKey::OnSelChangeCol)
     EVT_TEXT(XRCID("cbReferences"),             dlgForeignKey::OnSelChangeRef)
+    EVT_COMBOBOX(XRCID("cbReferences"),         dlgForeignKey::OnSelChangeRef)
     EVT_TEXT(XRCID("cbColumns"),                dlgForeignKey::OnSelChangeRefCol)
+    EVT_COMBOBOX(XRCID("cbColumns"),            dlgForeignKey::OnSelChangeRefCol)
     EVT_TEXT(XRCID("cbRefColumns"),             dlgForeignKey::OnSelChangeRefCol)
+    EVT_COMBOBOX(XRCID("cbRefColumns"),         dlgForeignKey::OnSelChangeRefCol)
     EVT_BUTTON(XRCID("btnAddRef"),              dlgForeignKey::OnAddRef)
     EVT_BUTTON(XRCID("btnRemoveRef"),           dlgForeignKey::OnRemoveRef)
 END_EVENT_TABLE();
Index: dlgLanguage.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgLanguage.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -Lsrc/ui/dlgLanguage.cpp -Lsrc/ui/dlgLanguage.cpp -u -w -r1.16 -r1.17
--- src/ui/dlgLanguage.cpp
+++ src/ui/dlgLanguage.cpp
@@ -32,6 +32,7 @@
 
 BEGIN_EVENT_TABLE(dlgLanguage, dlgSecurityProperty)
     EVT_TEXT(XRCID("cbHandler"),                    dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbHandler"),                dlgProperty::OnChange)
 END_EVENT_TABLE();
 
 
Index: dlgTrigger.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgTrigger.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -Lsrc/ui/dlgTrigger.cpp -Lsrc/ui/dlgTrigger.cpp -u -w -r1.22 -r1.23
--- src/ui/dlgTrigger.cpp
+++ src/ui/dlgTrigger.cpp
@@ -41,6 +41,7 @@
     EVT_CHECKBOX(XRCID("chkUpdate"),                dlgProperty::OnChange)
     EVT_CHECKBOX(XRCID("chkDelete"),                dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbFunction"),                   dlgTrigger::OnChangeFunc)
+    EVT_COMBOBOX(XRCID("cbFunction"),               dlgTrigger::OnChangeFunc)
     EVT_TEXT(XRCID("txtArguments"),                 dlgProperty::OnChange)
 END_EVENT_TABLE();
 
Index: dlgProperty.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgProperty.cpp,v
retrieving revision 1.104
retrieving revision 1.105
diff -Lsrc/ui/dlgProperty.cpp -Lsrc/ui/dlgProperty.cpp -u -w -r1.104 -r1.105
--- src/ui/dlgProperty.cpp
+++ src/ui/dlgProperty.cpp
@@ -70,6 +70,7 @@
 
     EVT_TEXT(XRCID("txtName"),                      dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbOwner"),                      dlgProperty::OnChangeOwner)
+    EVT_COMBOBOX(XRCID("cbOwner"),                  dlgProperty::OnChangeOwner)
     EVT_TEXT(XRCID("txtComment"),                   dlgProperty::OnChange)
     
     EVT_BUTTON(wxID_HELP,                           dlgProperty::OnHelp)
Index: dlgType.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgType.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -Lsrc/ui/dlgType.cpp -Lsrc/ui/dlgType.cpp -u -w -r1.27 -r1.28
--- src/ui/dlgType.cpp
+++ src/ui/dlgType.cpp
@@ -53,7 +53,9 @@
     EVT_RADIOBOX(XRCID("rdbType"),                  dlgType::OnTypeChange)
 
     EVT_TEXT(XRCID("cbInput"),                      dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbInput"),                  dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbOutput"),                     dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbOutput"),                 dlgProperty::OnChange)
     EVT_TEXT(XRCID("txtIntLength"),                 dlgProperty::OnChange)
     EVT_CHECKBOX(XRCID("chkVariable"),              dlgProperty::OnChange)
     
@@ -61,6 +63,7 @@
     EVT_BUTTON(wxID_REMOVE,                         dlgType::OnVarRemove)
     EVT_LIST_ITEM_SELECTED(XRCID("lstVariables"),   dlgType::OnVarSelChange)
     EVT_TEXT(XRCID("cbDatatype"),                   dlgType::OnSelChangeTyp)
+    EVT_COMBOBOX(XRCID("cbDatatype"),               dlgType::OnSelChangeTyp)
     EVT_TEXT(XRCID("txtMembername"),                dlgType::OnChangeMember)
     EVT_TEXT(XRCID("txtLength"),                    dlgType::OnSelChangeTypOrLen)
 END_EVENT_TABLE();
Index: dlgServer.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgServer.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -Lsrc/ui/dlgServer.cpp -Lsrc/ui/dlgServer.cpp -u -w -r1.13 -r1.14
--- src/ui/dlgServer.cpp
+++ src/ui/dlgServer.cpp
@@ -43,6 +43,7 @@
     EVT_TEXT(XRCID("txtDescription"),               dlgProperty::OnChange)
     EVT_TEXT(XRCID("txtService"),                   dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbDatabase"),                   dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbDatabase"),               dlgProperty::OnChange)
     EVT_TEXT(XRCID("txtPort")  ,                    dlgProperty::OnChange)
     EVT_TEXT(XRCID("txtUsername"),                  dlgProperty::OnChange)
     EVT_COMBOBOX(XRCID("cbSSL"),                    dlgProperty::OnChange)
Index: dlgConversion.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgConversion.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -Lsrc/ui/dlgConversion.cpp -Lsrc/ui/dlgConversion.cpp -u -w -r1.17 -r1.18
--- src/ui/dlgConversion.cpp
+++ src/ui/dlgConversion.cpp
@@ -35,8 +35,11 @@
 
 BEGIN_EVENT_TABLE(dlgConversion, dlgProperty)
     EVT_TEXT(XRCID("cbSourceEncoding"),     dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbSourceEncoding"), dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbTargetEncoding"),     dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbTargetEncoding"), dlgProperty::OnChange)
     EVT_TEXT(XRCID("cbFunction"),           dlgProperty::OnChange)
+    EVT_COMBOBOX(XRCID("cbFunction"),       dlgProperty::OnChange)
 END_EVENT_TABLE();
 
 
Index: dlgCast.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgCast.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -Lsrc/ui/dlgCast.cpp -Lsrc/ui/dlgCast.cpp -u -w -r1.14 -r1.15
--- src/ui/dlgCast.cpp
+++ src/ui/dlgCast.cpp
@@ -37,7 +37,9 @@
 
 BEGIN_EVENT_TABLE(dlgCast, dlgTypeProperty)
     EVT_TEXT(XRCID("cbSourceType"),                 dlgCast::OnChangeTypeSrc)
+    EVT_COMBOBOX(XRCID("cbSourceType"),             dlgCast::OnChangeTypeSrc)
     EVT_TEXT(XRCID("cbTargetType"),                 dlgCast::OnChangeTypeTrg)
+    EVT_COMBOBOX(XRCID("cbTargetType"),             dlgCast::OnChangeTypeTrg)
 END_EVENT_TABLE();
 
 
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Reply via email to