[Uml-devel] kdesdk/umbrello/umbrello
Luis De la Parra Blum
lparrab at gmx.net
Thu Apr 3 14:33:06 UTC 2003
CVS commit by luis:
call UMLApp::app() instead of UMLDoc::getUMLApp()
M +2 -4 dialogs/umlwidgetcolorpage.cpp 1.7
M +1 -1 umllistview.cpp 1.27
--- kdesdk/umbrello/umbrello/umllistview.cpp #1.26:1.27
@@ -1903,5 +1903,5 @@ void UMLListView::createDiagram( UMLList
pData -> setType( type );
pData -> setID( doc -> getUniqueID() );
- view = new UMLView(doc->getUMLApp()->getMainDockWidget(), pData, doc);
+ view = new UMLView(UMLApp::app()->getMainDockWidget(), pData, doc);
doc -> addView( view );
view -> setOptionState( ((UMLApp *) doc -> parent()) -> getOptionState() );
--- kdesdk/umbrello/umbrello/dialogs/umlwidgetcolorpage.cpp #1.6:1.7
@@ -66,12 +66,10 @@ UMLWidgetColorPage::~UMLWidgetColorPage(
void UMLWidgetColorPage::slotLineButtonClicked() {
UMLView * pView = dynamic_cast<UMLView *>( m_pUMLWidget -> parent() );
- UMLApp * pApp = dynamic_cast<UMLApp *>( pView -> getDocument() -> parent() );
- m_pLineColorB -> setColor( pApp -> getOptionState().uiState.lineColor );
+ m_pLineColorB -> setColor( UMLApp::app() -> getOptionState().uiState.lineColor );
}
void UMLWidgetColorPage::slotFillButtonClicked() {
UMLView * pView = dynamic_cast<UMLView *>( m_pUMLWidget -> parent() );
- UMLApp * pApp = dynamic_cast<UMLApp *>( pView -> getDocument() -> parent() );
- m_pFillColorB -> setColor( pApp -> getOptionState().uiState.fillColor );
+ m_pFillColorB -> setColor( UMLApp::app() -> getOptionState().uiState.fillColor );
}
More information about the umbrello-devel
mailing list