From 75428cd07caeed3b883f9c299b792985cdeb9c22 Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 1 Dec 2014 14:11:25 +0200 Subject: [PATCH] Link to User Manual. --HG-- branch : develop --- src/app/mainwindow.cpp | 8 ++++++++ src/app/mainwindow.h | 1 + src/app/mainwindow.ui | 12 ++++++++++++ .../16x16/actions/help-contents.png | Bin 0 -> 797 bytes .../24x24/actions/help-contents.png | Bin 0 -> 1424 bytes .../32x32/actions/help-contents.png | Bin 0 -> 1946 bytes src/app/share/resources/theme.qrc | 3 +++ 7 files changed, 24 insertions(+) create mode 100644 src/app/share/resources/icons/win.icon.theme/16x16/actions/help-contents.png create mode 100644 src/app/share/resources/icons/win.icon.theme/24x24/actions/help-contents.png create mode 100644 src/app/share/resources/icons/win.icon.theme/32x32/actions/help-contents.png diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index a72d9cf05..f32764cfe 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -1433,6 +1433,13 @@ void MainWindow::RepotBug() QDesktopServices::openUrl(QUrl("https://bitbucket.org/dismine/valentina/issues/new")); } +//--------------------------------------------------------------------------------------------------------------------- +void MainWindow::OnlineHelp() +{ + qCDebug(vMainWindow)<<"Showing online help"; + QDesktopServices::openUrl(QUrl("https://bitbucket.org/dismine/valentina/wiki/manual/Content")); +} + //--------------------------------------------------------------------------------------------------------------------- /** * @brief Clear reset to default window. @@ -2212,6 +2219,7 @@ void MainWindow::CreateActions() connect(ui->actionExit, &QAction::triggered, this, &MainWindow::close); connect(ui->actionPreferences, &QAction::triggered, this, &MainWindow::Preferences); connect(ui->actionRepotBug, &QAction::triggered, this, &MainWindow::RepotBug); + connect(ui->actionOnlineHelp, &QAction::triggered, this, &MainWindow::OnlineHelp); connect(ui->actionPattern_properties, &QAction::triggered, this, &MainWindow::PatternProperties); ui->actionPattern_properties->setEnabled(false); connect(ui->actionEdit_pattern_code, &QAction::triggered, this, &MainWindow::EditPatternCode); diff --git a/src/app/mainwindow.h b/src/app/mainwindow.h index f555a21ad..0463bd06c 100644 --- a/src/app/mainwindow.h +++ b/src/app/mainwindow.h @@ -77,6 +77,7 @@ public slots: void Open(); void Preferences(); void RepotBug(); + void OnlineHelp(); void NewPattern(); void ShowToolTip(const QString &toolTip); void OpenRecentFile(); diff --git a/src/app/mainwindow.ui b/src/app/mainwindow.ui index d3622ec64..688b6463f 100644 --- a/src/app/mainwindow.ui +++ b/src/app/mainwindow.ui @@ -779,6 +779,7 @@ &Help + @@ -1261,6 +1262,17 @@ Close window + + + + + + Online help + + + Show online help + + diff --git a/src/app/share/resources/icons/win.icon.theme/16x16/actions/help-contents.png b/src/app/share/resources/icons/win.icon.theme/16x16/actions/help-contents.png new file mode 100644 index 0000000000000000000000000000000000000000..0aa51794962e6d8380b5681faf938b30b399b53f GIT binary patch literal 797 zcmV+&1LFLNP)eO$336X_1HmVMGPXib67uR9YaCEv!WUOpo1uneoj5^c@`?A&(RIj(8>7oo8vNL`GR-D{)oKkBLSU@khuTvQ z&{(O4Uc+H}K89$5L8DWRy)|kKy$gbX36FN$4fz0Vd3kw65CoWN4xswPKqgNq-vSz_ zSf0G$M0kTQpM@vxn?ci&cqRl6WUrx z5iC5rVkyhlL6O_-jwX{ySnFEhI(iGa@3amq4PS-NfdoXV1(I=M=0+}?U7G+@MA1Yd zffC;_I9qRKPNe${8WtKAi{*%r5f;g!e+*wTd1L_Xf05VgjmG0~l}R z9Mu7XrLai<%W8nS%{;njtd{{C#})c~zBRfipdFT$URf~L+l;i337;fTg8R?gDa= zY|MZJ6_T;{6aC)(8vsrcl1inzK!s#4G&_~r@+PHJnw$~pNJj|*wKN4K*OmgatAVLk b^gZ$)&^q-LkU5+adAAmJeiMh$FBce~v}x81fgb3ONV+HGtnb7wj;cg}Clx##>( z5$ZOF!!b`$6d(Q6LhTQ0a~^#GP*#~{7>2IXFc=LqP_`I0Su?c41JHDxX}SSAor`6S zO-vezn`b_qsM^Hp4>IiO>+2g`v0{Y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|pMLr7a7S5ys;a8NSS%(YfCEr%pe-PPj`fy=WB45tVP~f-_>C?%uJ3f?_a{^M zTILq;wOwy`vuXA7zqhUNVm7Pb z)qkXfHAGd^g^K_TCw_iMaCJF=21>(2?d|Qt0VgIVKtO2Sco4qW8jC{n>g_Va-f!39 z>Ej8?pb9x8gG{A4uPiJ`c<-k>0&7bGP}*&%t*ss67Kq2=!UDW5#BMxrLlIfqb+=M#49$o9Ivk^oc(LUbm)#G`p`suy2l zwE!z_0(^7^a8djZ#S6t}vaVRwWi%IHuN}V4cT-6Ksso`wAaIH2fq4L*&qqFR2%hNG z#@@4HW-IyuGqPPVQZxvrD;MpRpKSAew;Vt)6bcP%X z;$Qa#-fvm$#qy|jhCDNp!{K+Q^^>p>DJG!9N4D4RC<#D$KM;vTMxxOuMn*Swi-(!b}>FUnaA^gNEpsK4{8AXn8NVxk^oeQ0#u4ecr_dz9u@_u zzP=ve8}>u?cUe|7zZK1XJHAI&pqCOH{V*wtk2za1E6fim6YeStz%4+2Ahv)XO1Tq; zHylJopv&ZhMg)LafnYVc1z2M2X(~p$%KQvR?CM!Hf6>uvZ$$2u%P-xm(dmpnogPm*vwQ9Oo^+A;xb%707*qoM6N<$f=?}>_5c6? literal 0 HcmV?d00001 diff --git a/src/app/share/resources/theme.qrc b/src/app/share/resources/theme.qrc index 0b7d3102e..9a816625f 100644 --- a/src/app/share/resources/theme.qrc +++ b/src/app/share/resources/theme.qrc @@ -58,5 +58,8 @@ icons/win.icon.theme/16x16/actions/edit-delete.png icons/win.icon.theme/24x24/actions/edit-delete.png icons/win.icon.theme/32x32/actions/edit-delete.png + icons/win.icon.theme/16x16/actions/help-contents.png + icons/win.icon.theme/24x24/actions/help-contents.png + icons/win.icon.theme/32x32/actions/help-contents.png