diff --git a/source/GridManager.cpp b/source/GridManager.cpp index 694f13e..f60efe1 100755 --- a/source/GridManager.cpp +++ b/source/GridManager.cpp @@ -1,26 +1,26 @@ -/*************************************************************************** - * This file is a part of SCode project * - * IT - Instituto de Telecomunicacoes * - * http://www.it.pt * - * * - * Copyright (C) 2008 by Ricardo N. Rocha Sardo * - * ricardo.sardo@co.it.pt * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ +/* This file is a part of plaYUVer project + * Copyright (C) 2014 by plaYUVer developers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/** + * \file GridManager.cpp + * \brief Function to create a grid in the images + * Based on the work of Ricardo N. Rocha Sardo in SCode project + */ #include #include diff --git a/source/GridManager.h b/source/GridManager.h index 32e17a1..42b9092 100755 --- a/source/GridManager.h +++ b/source/GridManager.h @@ -1,26 +1,27 @@ -/*************************************************************************** - * This file is a part of SCode project * - * IT - Instituto de Telecomunicacoes * - * http://www.it.pt * - * * - * Copyright (C) 2008 by Ricardo N. Rocha Sardo * - * ricardo.sardo@co.it.pt * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ +/* This file is a part of plaYUVer project + * Copyright (C) 2014 by plaYUVer developers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/** + * \file GridManager.h + * \brief Function to create a grid in the images + * Based on the work of Ricardo N. Rocha Sardo in SCode project + */ + #ifndef __GRIDMANAGER_H__ #define __GRIDMANAGER_H__ diff --git a/source/ViewArea.cpp b/source/ViewArea.cpp index 8180836..3cbe445 100755 --- a/source/ViewArea.cpp +++ b/source/ViewArea.cpp @@ -1,26 +1,27 @@ -/*************************************************************************** - * This file is a part of SCode project * - * IT - Instituto de Telecomunicacoes * - * http://www.it.pt * - * * - * Copyright (C) 2008 by Ricardo N. Rocha Sardo * - * ricardo.sardo@co.it.pt * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ +/* This file is a part of plaYUVer project + * Copyright (C) 2014 by plaYUVer developers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/** + * \file ViewArea.cpp + * \brief Function to manage image display + * Based on the work of Ricardo N. Rocha Sardo in SCode project + */ + #include #include diff --git a/source/ViewArea.h b/source/ViewArea.h index ee5bf4a..f29ee39 100755 --- a/source/ViewArea.h +++ b/source/ViewArea.h @@ -1,26 +1,27 @@ -/*************************************************************************** - * This file is a part of SCode project * - * IT - Instituto de Telecomunicacoes * - * http://www.it.pt * - * * - * Copyright (C) 2008 by Ricardo N. Rocha Sardo * - * ricardo.sardo@co.it.pt * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ +/* This file is a part of plaYUVer project + * Copyright (C) 2014 by plaYUVer developers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/** + * \file ViewArea.h + * \brief Function to manage image display + * Based on the work of Ricardo N. Rocha Sardo in SCode project + */ + #ifndef __VIEWAREA_H__ #define __VIEWAREA_H__ diff --git a/source/plaYUVerApp.cpp b/source/plaYUVerApp.cpp index 11c3d7d..44ff425 100644 --- a/source/plaYUVerApp.cpp +++ b/source/plaYUVerApp.cpp @@ -601,7 +601,7 @@ Void plaYUVerApp::writeSettings() PlaYUVerSettings settings; settings.setMainWindowPos( pos() ); settings.setMainWindowSize( size() ); - settings.setLastOpenPath( lastOpenPath ); + settings.setLastOpenPath( m_cLastOpenPath ); } SubWindowHandle *plaYUVerApp::activeSubWindow() diff --git a/source/plaYUVerSettings.cpp b/source/plaYUVerSettings.cpp index 4889a58..c84904e 100755 --- a/source/plaYUVerSettings.cpp +++ b/source/plaYUVerSettings.cpp @@ -62,49 +62,6 @@ void PlaYUVerSettings::setLastOpenPath( const QString & path ) m_settings.setValue( "MainWindow/lastOpenPath", path ); } -// - - - - - - - - - - - - - - Grid Settings - - - - - - - - - - - - - - - - - - - -GridManager::Style SCoSettings::gridStyle() -{ - return ( GridManager::Style )m_settings.value( "Grid/style", 0 ).toInt(); -} - -void SCoSettings::setGridStyle( GridManager::Style v ) -{ - m_settings.setValue( "Grid/style", v ); -} - -QColor SCoSettings::gridColor() -{ - return m_settings.value( "Grid/color", QColor( Qt::white ) ).value(); -} - -void SCoSettings::setGridColor( const QColor & v ) -{ - m_settings.setValue( "Grid/color", v ); -} - -int SCoSettings::gridHSpacing() -{ - return m_settings.value( "Grid/hSpacing", 16 ).toInt(); -} - -void SCoSettings::setGridHSpacing( int v ) -{ - m_settings.setValue( "Grid/hSpacing", v ); -} - -int SCoSettings::gridVSpacing() -{ - return m_settings.value( "Grid/vSpacing", 16 ).toInt(); -} - -void SCoSettings::setGridVSpacing( int v ) -{ - m_settings.setValue( "Grid/vSpacing", v ); -} - - // - - - - - - - - - - - - - - Grid Settings - - - - - - - - - - - - - - - - - - GridManager::Style PlaYUVerSettings::gridStyle() diff --git a/source/plaYUVerSettings.h b/source/plaYUVerSettings.h index 2fd4932..7327c70 100755 --- a/source/plaYUVerSettings.h +++ b/source/plaYUVerSettings.h @@ -62,19 +62,6 @@ public: int gridVSpacing(); void setGridVSpacing( int v ); - // - - - - - - - - - - - - Grid Settings - - - - - - - - - - - - - - - - GridManager::Style gridStyle(); - void setGridStyle( GridManager::Style v ); - - QColor gridColor(); - void setGridColor( const QColor &v ); - - int gridHSpacing(); - void setGridHSpacing( int v ); - - int gridVSpacing(); - void setGridVSpacing( int v ); - private: QSettings m_settings; };