"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/GUI/PageDone.cpp" between
ssr-0.4.1.tar.gz and ssr-0.4.2.tar.gz

About: SimpleScreenRecorder is a screen (video-audio) recorder for Linux.

PageDone.cpp  (ssr-0.4.1):PageDone.cpp  (ssr-0.4.2)
skipping to change at line 24 skipping to change at line 24
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with SimpleScreenRecorder. If not, see <http://www.gnu.org/licenses/>. along with SimpleScreenRecorder. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "PageDone.h" #include "PageDone.h"
#include "Icons.h" #include "Icons.h"
#include "MainWindow.h" #include "MainWindow.h"
#include "PageOutput.h"
PageDone::PageDone(MainWindow* main_window) PageDone::PageDone(MainWindow* main_window)
: QWidget(main_window->centralWidget()) { : QWidget(main_window->centralWidget()) {
m_main_window = main_window; m_main_window = main_window;
QLabel *label_done = new QLabel(tr("The recording has been saved. You can edit the video now, or re-encode it with better settings to " QLabel *label_done = new QLabel(tr("The recording has been saved. You can edit the video now, or re-encode it with better settings to "
"make the file smaller (the default settings are optimized for quality and speed, not file size)."), this); "make the file smaller (the default settings are optimized for quality and speed, not file size)."), this);
label_done->setWordWrap(true); label_done->setWordWrap(true);
QPushButton *button_back = new QPushButton(g_icon_go_home, tr("Back to th e start screen"), this);
QPushButton *button_open_folder = new QPushButton(g_icon_folder_open, tr(
"Open folder"), this);
connect(button_open_folder, SIGNAL(clicked()), this, SLOT(OnOpenFolder())
);
QPushButton *button_back = new QPushButton(g_icon_go_home, tr("Back to th
e start screen"), this);
connect(button_back, SIGNAL(clicked()), m_main_window, SLOT(GoPageWelcome ())); connect(button_back, SIGNAL(clicked()), m_main_window, SLOT(GoPageWelcome ()));
QVBoxLayout *layout_page = new QVBoxLayout(this); QVBoxLayout *layout = new QVBoxLayout(this);
layout_page->addWidget(label_done); layout->addWidget(label_done);
layout_page->addStretch(); {
layout_page->addWidget(button_back); QHBoxLayout *layout2 = new QHBoxLayout();
layout->addLayout(layout2);
layout2->addWidget(button_open_folder);
layout2->addStretch();
}
layout->addStretch();
layout->addWidget(button_back);
}
void PageDone::OnOpenFolder() {
QFileInfo fi(m_main_window->GetPageOutput()->GetFile());
QDesktopServices::openUrl(QUrl::fromLocalFile(fi.absolutePath()));
} }
 End of changes. 5 change blocks. 
5 lines changed or deleted 23 lines changed or added

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