Kaydet (Commit) 5dfb6381 authored tarafından Philipp Weissenbacher's avatar Philipp Weissenbacher

Translate German comments

üst cb5299e5
...@@ -1014,7 +1014,7 @@ void SbaGridControl::PostExecuteRowContextMenu(sal_uInt16 nRow, const PopupMenu& ...@@ -1014,7 +1014,7 @@ void SbaGridControl::PostExecuteRowContextMenu(sal_uInt16 nRow, const PopupMenu&
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
void SbaGridControl::Select() void SbaGridControl::Select()
{ {
// irgendeine Selektion hat sich geaendert .... // Some selection has changed ...
FmGridControl::Select(); FmGridControl::Select();
if (m_pMasterListener) if (m_pMasterListener)
......
...@@ -168,7 +168,7 @@ namespace dbaui ...@@ -168,7 +168,7 @@ namespace dbaui
{ {
InsertDataColumn( SOURCE_COLUMN, m_pConnData->getReferencingTable()->GetWinName(), 100); InsertDataColumn( SOURCE_COLUMN, m_pConnData->getReferencingTable()->GetWinName(), 100);
InsertDataColumn( DEST_COLUMN, m_pConnData->getReferencedTable()->GetWinName(), 100); InsertDataColumn( DEST_COLUMN, m_pConnData->getReferencedTable()->GetWinName(), 100);
// wenn es die Defs noch nicht gibt, dann muessen sie noch mit SetSource-/-DestDef gesetzt werden ! // If the Defs do not yet exits, we need to set them with SetSource-/-DestDef
m_pListCell.reset( new ListBoxControl( &GetDataWindow() ) ); m_pListCell.reset( new ListBoxControl( &GetDataWindow() ) );
...@@ -397,7 +397,7 @@ namespace dbaui ...@@ -397,7 +397,7 @@ namespace dbaui
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ORelationControl::setWindowTables(const OTableWindow* _pSource,const OTableWindow* _pDest) void ORelationControl::setWindowTables(const OTableWindow* _pSource,const OTableWindow* _pDest)
{ {
// wenn ich hier gerade editiere, ausblenden // If I edit here, hide
sal_Bool bWasEditing = IsEditing(); sal_Bool bWasEditing = IsEditing();
if ( bWasEditing ) if ( bWasEditing )
DeactivateCell(); DeactivateCell();
...@@ -433,7 +433,7 @@ namespace dbaui ...@@ -433,7 +433,7 @@ namespace dbaui
m_pConnData->normalizeLines(); m_pConnData->normalizeLines();
} }
// neu zeichnen // Repaint
Invalidate(); Invalidate();
if ( bWasEditing ) if ( bWasEditing )
...@@ -497,7 +497,7 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent ...@@ -497,7 +497,7 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent
OTableWindow* pInitialLeft = NULL; OTableWindow* pInitialLeft = NULL;
OTableWindow* pInitialRight = NULL; OTableWindow* pInitialRight = NULL;
// die Namen aller TabWins einsammeln // Collect the names of all TabWins
OJoinTableView::OTableWindowMap::const_iterator aIter = m_pTableMap->begin(); OJoinTableView::OTableWindowMap::const_iterator aIter = m_pTableMap->begin();
OJoinTableView::OTableWindowMap::const_iterator aEnd = m_pTableMap->end(); OJoinTableView::OTableWindowMap::const_iterator aEnd = m_pTableMap->end();
for(;aIter != aEnd;++aIter) for(;aIter != aEnd;++aIter)
...@@ -523,10 +523,10 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent ...@@ -523,10 +523,10 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent
m_strCurrentRight = m_strCurrentLeft; m_strCurrentRight = m_strCurrentLeft;
} }
// die entsprechenden Defs an mein Controls // The corresponding Defs for my Controls
m_pRC_Tables->setWindowTables(pInitialLeft,pInitialRight); m_pRC_Tables->setWindowTables(pInitialLeft,pInitialRight);
// die in einer ComboBox ausgewaehlte Tabelle darf nicht in der anderen zur Verfuegung stehen // The table selected in a ComboBox must not be available in the other
if ( m_pTableMap->size() > 2 ) if ( m_pTableMap->size() > 2 )
{ {
...@@ -534,7 +534,8 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent ...@@ -534,7 +534,8 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent
m_lmbRightTable.RemoveEntry(m_strCurrentLeft); m_lmbRightTable.RemoveEntry(m_strCurrentLeft);
} }
// links das erste, rechts das zweite selektieren // Select the first one on the left side and on the right side,
// select the second one
m_lmbLeftTable.SelectEntry(m_strCurrentLeft); m_lmbLeftTable.SelectEntry(m_strCurrentLeft);
m_lmbRightTable.SelectEntry(m_strCurrentRight); m_lmbRightTable.SelectEntry(m_strCurrentRight);
...@@ -547,7 +548,7 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent ...@@ -547,7 +548,7 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent
OTableWindow* pLeft = NULL; OTableWindow* pLeft = NULL;
OTableWindow* pRight = NULL; OTableWindow* pRight = NULL;
// eine Sonderbehandlung : wenn es nur zwei Tabellen gibt, muss ich bei Wechsel in einer LB auch in der anderen umschalten // Special treatment: If there are only two tables, we need to switch the other one too when changing in a LB
if ( m_pTableMap->size() == 2 ) if ( m_pTableMap->size() == 2 )
{ {
ListBox* pOther; ListBox* pOther;
...@@ -575,19 +576,18 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent ...@@ -575,19 +576,18 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent
} }
else else
{ {
// zuerst brauche ich die TableDef zur Tabelle, dazu das TabWin // First we need the TableDef to the Table and with it the TabWin
OJoinTableView::OTableWindowMap::const_iterator aFind = m_pTableMap->find(strSelected); OJoinTableView::OTableWindowMap::const_iterator aFind = m_pTableMap->find(strSelected);
OTableWindow* pLoop = NULL; OTableWindow* pLoop = NULL;
if( aFind != m_pTableMap->end() ) if( aFind != m_pTableMap->end() )
pLoop = aFind->second; pLoop = aFind->second;
OSL_ENSURE(pLoop != NULL, "ORelationDialog::OnTableChanged : ungueltiger Eintrag in ListBox !"); OSL_ENSURE(pLoop != NULL, "ORelationDialog::OnTableChanged: invalid ListBox entry!");
// da ich die ListBoxen selber mit eben diesen Tabellennamen, mit denen ich sie jetzt vergleiche, gefuellt habe, // We need to find strSelect, because we filled the ListBoxes with the table names with which we compare now
// MUSS ich strSelected finden
if (pListBox == &m_lmbLeftTable) if (pListBox == &m_lmbLeftTable)
{ {
// den vorher links selektierten Eintrag wieder rein rechts // Insert the previously selected Entry on the left side on the right side
m_lmbRightTable.InsertEntry(m_strCurrentLeft); m_lmbRightTable.InsertEntry(m_strCurrentLeft);
// und den jetzt selektierten raus // Remove the currently selected Entry
m_lmbRightTable.RemoveEntry(strSelected); m_lmbRightTable.RemoveEntry(strSelected);
m_strCurrentLeft = strSelected; m_strCurrentLeft = strSelected;
...@@ -602,9 +602,9 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent ...@@ -602,9 +602,9 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent
} }
else else
{ {
// den vorher rechts selektierten Eintrag wieder rein links // Insert the previously selected Entry on the right side on the left side
m_lmbLeftTable.InsertEntry(m_strCurrentRight); m_lmbLeftTable.InsertEntry(m_strCurrentRight);
// und den jetzt selektierten raus // Remove the currently selected Entry
m_lmbLeftTable.RemoveEntry(strSelected); m_lmbLeftTable.RemoveEntry(strSelected);
m_strCurrentRight = strSelected; m_strCurrentRight = strSelected;
...@@ -626,7 +626,7 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent ...@@ -626,7 +626,7 @@ OTableListBoxControl::OTableListBoxControl( Window* _pParent
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void OTableListBoxControl::NotifyCellChange() void OTableListBoxControl::NotifyCellChange()
{ {
// den Ok-Button en- oder disablen, je nachdem, ob ich eine gueltige Situation habe // Enable/disable the OK button, depending on having a valid situation
TTableConnectionData::value_type pConnData = m_pRC_Tables->getData(); TTableConnectionData::value_type pConnData = m_pRC_Tables->getData();
const OConnectionLineDataVec* pLines = pConnData->GetConnLineDataList(); const OConnectionLineDataVec* pLines = pConnData->GetConnLineDataList();
m_pParentDialog->setValid(!pLines->empty()); m_pParentDialog->setValid(!pLines->empty());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment