"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/TagEditorDlgImpl.cpp" between
MP3Diags-unstable-1.3.04.tar.gz and MP3Diags-unstable-1.5.01.tar.gz

About: MP3 Diags finds problems in MP3 files and helps the user to fix many of them (with a GUI). Also includes a tag editor and a file renamer.

TagEditorDlgImpl.cpp  (MP3Diags-unstable-1.3.04):TagEditorDlgImpl.cpp  (MP3Diags-unstable-1.5.01)
skipping to change at line 301 skipping to change at line 301
connect(m_pTagWriter, SIGNAL(fileChanged()), this, SLOT(onFileChanged()) ); connect(m_pTagWriter, SIGNAL(fileChanged()), this, SLOT(onFileChanged()) );
connect(m_pTagWriter, SIGNAL(imagesChanged()), this, SLOT(onImagesChange d())); connect(m_pTagWriter, SIGNAL(imagesChanged()), this, SLOT(onImagesChange d()));
connect(m_pTagWriter, SIGNAL(requestSave()), this, SLOT(on_m_pSaveB_clic ked())); connect(m_pTagWriter, SIGNAL(requestSave()), this, SLOT(on_m_pSaveB_clic ked()));
connect(m_pTagWriter, SIGNAL(varArtistsUpdated(bool)), this, SLOT(onVarA rtistsUpdated(bool))); connect(m_pTagWriter, SIGNAL(varArtistsUpdated(bool)), this, SLOT(onVarA rtistsUpdated(bool)));
} }
m_pCurrentAlbumModel = new CurrentAlbumModel(this); m_pCurrentAlbumModel = new CurrentAlbumModel(this);
m_pCurrentFileModel = new CurrentFileModel(this); m_pCurrentFileModel = new CurrentFileModel(this);
{ {
m_pCurrentAlbumG->verticalHeader()->setResizeMode(QHeaderView::Interacti ve); m_pCurrentAlbumG->verticalHeader()->setSectionResizeMode(QHeaderView::In teractive);
m_pCurrentAlbumG->verticalHeader()->setMinimumSectionSize(CELL_HEIGHT); m_pCurrentAlbumG->verticalHeader()->setMinimumSectionSize(CELL_HEIGHT);
m_pCurrentAlbumG->verticalHeader()->setDefaultSectionSize(CELL_HEIGHT);/ /*/ m_pCurrentAlbumG->verticalHeader()->setDefaultSectionSize(CELL_HEIGHT);/ /*/
decreaseRowHeaderFont(*m_pCurrentAlbumG);
m_pCurrentAlbumG->setModel(m_pCurrentAlbumModel); m_pCurrentAlbumG->setModel(m_pCurrentAlbumModel);
m_pAlbumDel = new CurrentAlbumDelegate(m_pCurrentAlbumG, this); m_pAlbumDel = new CurrentAlbumDelegate(m_pCurrentAlbumG, this);
m_pCurrentAlbumG->setItemDelegate(m_pAlbumDel); m_pCurrentAlbumG->setItemDelegate(m_pAlbumDel);
//connect(m_pCurrentAlbumG, SIGNAL(clicked(const QModelIndex &)), this, SLOT(onAlbSelChanged())); // ttt2 see if both this and next are needed (next see ms enough) //connect(m_pCurrentAlbumG, SIGNAL(clicked(const QModelIndex &)), this, SLOT(onAlbSelChanged())); // ttt2 see if both this and next are needed (next see ms enough)
connect(m_pCurrentAlbumG->selectionModel(), SIGNAL(selectionChanged(cons t QItemSelection&, const QItemSelection&)), this, SLOT(onAlbSelChanged())); connect(m_pCurrentAlbumG->selectionModel(), SIGNAL(selectionChanged(cons t QItemSelection&, const QItemSelection&)), this, SLOT(onAlbSelChanged()));
connect(m_pCurrentAlbumG->selectionModel(), SIGNAL(currentChanged(const QModelIndex&, const QModelIndex &)), this, SLOT(onAlbCrtChanged())); connect(m_pCurrentAlbumG->selectionModel(), SIGNAL(currentChanged(const QModelIndex&, const QModelIndex &)), this, SLOT(onAlbCrtChanged()));
} }
{ {
m_pCurrentFileG->setVerticalHeader(new NoCropHeaderView(m_pCurrentFileG) ); m_pCurrentFileG->setVerticalHeader(new NoCropHeaderView(m_pCurrentFileG) );
m_pCurrentFileG->verticalHeader()->setResizeMode(QHeaderView::Interactiv e); m_pCurrentFileG->verticalHeader()->setSectionResizeMode(QHeaderView::Int eractive);
m_pCurrentFileG->verticalHeader()->setMinimumSectionSize(CELL_HEIGHT); m_pCurrentFileG->verticalHeader()->setMinimumSectionSize(CELL_HEIGHT);
m_pCurrentFileG->verticalHeader()->setDefaultSectionSize(CELL_HEIGHT);// */ m_pCurrentFileG->verticalHeader()->setDefaultSectionSize(CELL_HEIGHT);// */
decreaseRowHeaderFont(*m_pCurrentFileG);
m_pCurrentFileG->setModel(m_pCurrentFileModel); m_pCurrentFileG->setModel(m_pCurrentFileModel);
CurrentFileDelegate* pDel (new CurrentFileDelegate(m_pCurrentFileG, m_pC ommonData)); CurrentFileDelegate* pDel (new CurrentFileDelegate(m_pCurrentFileG, m_pC ommonData));
connect(m_pCurrentFileG->horizontalHeader(), SIGNAL(sectionMoved(int, in t, int)), this, SLOT(onFileSelSectionMoved(int, int, int))); connect(m_pCurrentFileG->horizontalHeader(), SIGNAL(sectionMoved(int, in t, int)), this, SLOT(onFileSelSectionMoved(int, int, int)));
m_pCurrentFileG->setItemDelegate(pDel); m_pCurrentFileG->setItemDelegate(pDel);
m_pCurrentFileG->horizontalHeader()->setMovable(true); m_pCurrentFileG->horizontalHeader()->setSectionsMovable(true);
} }
{ {
int nWidth, nHeight; int nWidth, nHeight;
int nArtistsCase, nOthersCase; int nArtistsCase, nOthersCase;
m_pCommonData->m_settings.loadTagEdtSettings(nWidth, nHeight, nArtistsCa se, nOthersCase); m_pCommonData->m_settings.loadTagEdtSettings(nWidth, nHeight, nArtistsCa se, nOthersCase);
m_eArtistsCase = TextCaseOptions(nArtistsCase); m_eArtistsCase = TextCaseOptions(nArtistsCase);
m_eOthersCase = TextCaseOptions(nOthersCase); m_eOthersCase = TextCaseOptions(nOthersCase);
if (nWidth > 400 && nHeight > 400) if (nWidth > 400 && nHeight > 400)
{ {
skipping to change at line 1234 skipping to change at line 1236
p->setEnabled(false); p->setEnabled(false);
} }
{ {
QToolButton* p (m_pQueryMusicBrainzB); QToolButton* p (m_pQueryMusicBrainzB);
int h (k - 4); int h (k - 4);
int w (h*171/118); int w (h*171/118);
p->setMaximumSize(w + 4, k); p->setMaximumSize(w + 4, k);
p->setMinimumSize(w + 4, k); p->setMinimumSize(w + 4, k);
p->setIconSize(QSize(w, h)); p->setIconSize(QSize(w, h));
p->setEnabled(false);
} }
} }
#if 0 #if 0
/*override*/ bool TagEditorDlgImpl::eventFilter(QObject* pObj, QEvent* pEvent) /*override*/ bool TagEditorDlgImpl::eventFilter(QObject* pObj, QEvent* pEvent)
{ {
QKeyEvent* pKeyEvent (dynamic_cast<QKeyEvent*>(pEvent)); QKeyEvent* pKeyEvent (dynamic_cast<QKeyEvent*>(pEvent));
int nKey (0 == pKeyEvent ? 0 : pKeyEvent->key()); int nKey (0 == pKeyEvent ? 0 : pKeyEvent->key());
//static int s_nCnt (0); //static int s_nCnt (0);
 End of changes. 6 change blocks. 
3 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)