[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kpovmodeler
From: Leon Pennington <leon () leonscape ! co ! uk>
Date: 2004-07-01 1:32:41
Message-ID: 20040701013241.69CBF99B2 () office ! kde ! org
[Download RAW message or body]
CVS commit by leonp:
Bugfixes for Library Settings
M +3 -3 pmlibraryobjectsearch.cpp 1.3
M +3 -3 pmlibraryobjectsearch.h 1.3
M +21 -6 pmobjectlibrarysettings.cpp 1.5
M +0 -1 pmpart.cpp 1.90
--- kdegraphics/kpovmodeler/pmlibraryobjectsearch.cpp #1.2:1.3
@@ -18,5 +18,5 @@
#include "pmlibraryobject.h"
-#include "pmlibraryobjectpreview.h"
+#include "pmlibraryentrypreview.h"
#include "pmlibraryobjectsearch.h"
#include "pmdialogeditbase.h"
@@ -65,5 +65,5 @@ PMLibraryObjectSearch::PMLibraryObjectSe
m_pFileList->addColumn( i18n( "Path" ) );
m_pFileList->setFullWidth( true );
- m_pPreview = new PMLibraryObjectPreview( frame );
+ m_pPreview = new PMLibraryEntryPreview( frame );
hl->addWidget( m_pFileList, 1 );
hl->addWidget( m_pPreview );
--- kdegraphics/kpovmodeler/pmlibraryobjectsearch.h #1.2:1.3
@@ -29,5 +29,5 @@ class QLineEdit;
class QListBox;
class QPushButton;
-class PMLibraryObjectPreview;
+class PMLibraryEntryPreview;
class KListView;
@@ -50,5 +50,5 @@ private:
QPushButton* m_pSearchButton;
KListView* m_pFileList;
- PMLibraryObjectPreview* m_pPreview;
+ PMLibraryEntryPreview* m_pPreview;
};
--- kdegraphics/kpovmodeler/pmobjectlibrarysettings.cpp #1.4:1.5
@@ -112,11 +112,19 @@ void PMObjectLibrarySettings::slotModify
if( h )
{
- PMLibraryHandle h_temp = *h;
- PMLibraryHandleEdit h_dlg( &h_temp, this );
+ PMLibraryHandleEdit h_dlg( h, this );
if( h_dlg.exec( ) == QDialog::Accepted )
{
- *h = h_temp;
h->saveLibraryInfo( );
+ displaySettings( );
+ for( unsigned i = 0; i < m_pObjectLibraries->count( ); ++i )
+ {
+ if( m_pObjectLibraries->text( i ) == h->name( ) )
+ {
+ m_pObjectLibraries->setSelected( i, true );
+ break;
+ }
+ }
+ slotObjectLibraryChanged( );
}
}
@@ -170,4 +178,11 @@ void PMObjectLibrarySettings::slotObject
m_pReadOnlyText->setText( i18n( "This library is modifiable." ) );
}
+ else
+ {
+ m_pLibraryPath->setText( "" );
+ m_pLibraryAuthor->setText( "" );
+ m_pLibraryDescription->setText( "" );
+ m_pReadOnlyText->setText( "" );
+ }
}
--- kdegraphics/kpovmodeler/pmpart.cpp #1.89:1.90
@@ -76,5 +76,4 @@
#include "pmdocumentationmap.h"
#include "pmlibrarymanager.h"
-#include "pmlibraryobjectpreview.h"
#include "pmlibraryhandleedit.h"
#include "pmlibraryobject.h"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic