Debian Codegraph @

src/librssguard/gui/settings/settingsnodejs.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/settings/settingsnodejs.cpp`/
2
3 #include "gui/settings/settingsnodejs.h"cxx . . $ `<file>/src/librssguard/gui/settings/settingsnodejs.h`/
4
5 #include "definitions/definitions.h"cxx . . $ `<file>/src/librssguard/definitions/definitions.h`/
6 #include "exceptions/applicationexception.h"cxx . . $ `<file>/src/librssguard/exceptions/applicationexception.h`/
7 #include "gui/dialogs/filedialog.h"cxx . . $ `<file>/src/librssguard/gui/dialogs/filedialog.h`/
8 #include "miscellaneous/application.h"cxx . . $ `<file>/src/librssguard/miscellaneous/application.h`/
9 #include "miscellaneous/iconfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/iconfactory.h`/
10 #include "miscellaneous/nodejs.h"cxx . . $ `<file>/src/librssguard/miscellaneous/nodejs.h`/
11 #include "network-web/webfactory.h"cxx . . $ `<file>/src/librssguard/network-web/webfactory.h`/
12
13 #include <QDir>
14
15 SettingsNodejscxx . . $ SettingsNodejs#::SettingsNodejscxx . . $ SettingsNodejs#SettingsNodejs(e2806c23cebd2a3f).(Settingscxx . . $ Settings#* settings, QWidgetcxx . . $ QWidget#* parent) : SettingsPanelcxx . . $ SettingsPanel#(settings, parent) {
16 m_uicxx . . $ SettingsNodejs#m_ui..setupUicxx . . $ Ui_SettingsNodejs#setupUi(108f35f7aa7f3cf9).(this);
17
18 m_uicxx . . $ SettingsNodejs#m_ui..m_helpInfocxx . . $ Ui_SettingsNodejs#m_helpInfo.->setHelpTextcxx . . $ HelpSpoiler#setHelpText(6cbc7f707216ade4).(trcxx . . $ SettingsNodejs#tr(75d9f1c324b4579d).("What is Node.js?"),
19 trcxx . . $ SettingsNodejs#tr(75d9f1c324b4579d).("Node.js is asynchronous event-driven JavaScript runtime, designed to build "
20 "scalable network applications.\n\n"
21 "%1 integrates Node.js to bring some modern features like Adblock.\n\n"
22 "Note that usually all required Node.js tools should be available via your \"PATH\" "
23 "environment variable, so you do not have to specify full paths.\n\n"
24 "Also, relaunch \"Settings\" dialog after you install Node.js.")
25 .argcxx . . $ QString#arg(ad0bca07273edcc2).(APP_NAMEcxx . . $ `<built-in>:487:9`!),
26 false);
27
28 m_uicxx . . $ SettingsNodejs#m_ui..m_helpPackagescxx . . $ Ui_SettingsNodejs#m_helpPackages.
29 ->setHelpTextcxx . . $ HelpSpoiler#setHelpText(5f6801bd00533ebd).(trcxx . . $ SettingsNodejs#tr(75d9f1c324b4579d).("%1 automatically installs some Node.js packages so that you do not have to. %1 does not "
30 "use global package folder because that requires administrator rights, therefore by default "
31 "it uses subfolder placed in your \"user data\" folder.")
32 .argcxx . . $ QString#arg(ad0bca07273edcc2).(APP_NAMEcxx . . $ `<built-in>:487:9`!),
33 false);
34
35 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_btnDownloadNodejscxx . . $ Ui_SettingsNodejs#m_btnDownloadNodejs., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, [this]() {
36 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->webcxx . . $ Application#web(ad68e16c93841931).()->openUrlInExternalBrowsercxx . . $ WebFactory#openUrlInExternalBrowser(dd54f9efb9153ea5).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("https://nodejs.org/en/download/"));
37 });
38
39 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNodeExecutablecxx . . $ Ui_SettingsNodejs#m_tbNodeExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).(), &BaseLineEditcxx . . $ BaseLineEdit#::textChangedcxx . . $ QLineEdit#textChanged(3520e46b33348bf6)., this, &SettingsNodejscxx . . $ SettingsNodejs#::testNodejscxx . . $ SettingsNodejs#testNodejs(49f6e7a06ebc5aa8).);
40 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNpmExecutablecxx . . $ Ui_SettingsNodejs#m_tbNpmExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).(), &BaseLineEditcxx . . $ BaseLineEdit#::textChangedcxx . . $ QLineEdit#textChanged(3520e46b33348bf6)., this, &SettingsNodejscxx . . $ SettingsNodejs#::testNpmcxx . . $ SettingsNodejs#testNpm(49f6e7a06ebc5aa8).);
41 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbPackageFoldercxx . . $ Ui_SettingsNodejs#m_tbPackageFolder.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).(), &BaseLineEditcxx . . $ BaseLineEdit#::textChangedcxx . . $ QLineEdit#textChanged(3520e46b33348bf6)., this, &SettingsNodejscxx . . $ SettingsNodejs#::testPackageFoldercxx . . $ SettingsNodejs#testPackageFolder(49f6e7a06ebc5aa8).);
42
43 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNodeExecutablecxx . . $ Ui_SettingsNodejs#m_tbNodeExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).(), &BaseLineEditcxx . . $ BaseLineEdit#::textChangedcxx . . $ QLineEdit#textChanged(3520e46b33348bf6)., this, &SettingsNodejscxx . . $ SettingsNodejs#::dirtifySettingscxx . . $ SettingsPanel#dirtifySettings(49f6e7a06ebc5aa8).);
44 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNpmExecutablecxx . . $ Ui_SettingsNodejs#m_tbNpmExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).(), &BaseLineEditcxx . . $ BaseLineEdit#::textChangedcxx . . $ QLineEdit#textChanged(3520e46b33348bf6)., this, &SettingsNodejscxx . . $ SettingsNodejs#::dirtifySettingscxx . . $ SettingsPanel#dirtifySettings(49f6e7a06ebc5aa8).);
45 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbPackageFoldercxx . . $ Ui_SettingsNodejs#m_tbPackageFolder.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).(), &BaseLineEditcxx . . $ BaseLineEdit#::textChangedcxx . . $ QLineEdit#textChanged(3520e46b33348bf6)., this, &SettingsNodejscxx . . $ SettingsNodejs#::dirtifySettingscxx . . $ SettingsPanel#dirtifySettings(49f6e7a06ebc5aa8).);
46
47 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_btnPackageFoldercxx . . $ Ui_SettingsNodejs#m_btnPackageFolder., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, [this]() {
48 changeFileFoldercxx . . $ SettingsNodejs#changeFileFolder(c6a76da3590af851).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbPackageFoldercxx . . $ Ui_SettingsNodejs#m_tbPackageFolder., true);
49 });
50 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_btnNodeExecutablecxx . . $ Ui_SettingsNodejs#m_btnNodeExecutable., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, [this]() {
51 changeFileFoldercxx . . $ SettingsNodejs#changeFileFolder(c6a76da3590af851).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNodeExecutablecxx . . $ Ui_SettingsNodejs#m_tbNodeExecutable., false, QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Node.js (node*)"));
52 });
53 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ SettingsNodejs#m_ui..m_btnNpmExecutablecxx . . $ Ui_SettingsNodejs#m_btnNpmExecutable., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, [this]() {
54 changeFileFoldercxx . . $ SettingsNodejs#changeFileFolder(c6a76da3590af851).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNpmExecutablecxx . . $ Ui_SettingsNodejs#m_tbNpmExecutable., false, QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("NPM (npm*)"));
55 });
56 }
57
58 QIconcxx . . $ QIcon# SettingsNodejscxx . . $ SettingsNodejs#::iconcxx . . $ SettingsNodejs#icon(952ef71f8967d9eb).() const {
59 return qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("node-join"), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("node"));
60 }
61
62 void SettingsNodejscxx . . $ SettingsNodejs#::changeFileFoldercxx . . $ SettingsNodejs#changeFileFolder(c6a76da3590af851).(LineEditWithStatuscxx . . $ LineEditWithStatus#* tb, bool directory_select, const QStringcxx . . $ QString#& file_filter) {
63 QStringcxx . . $ QString# file_dircxx . . $ QString#QString(ced63f7c635d850d).;
64 QStringcxx . . $ QString# current = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->replaceUserDataFolderPlaceholdercxx . . $ Application#replaceUserDataFolderPlaceholder(f6736f2569bd2ccc).(tb->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
65
66 if (directory_select) {
67 file_dir =cxx . . $ QString#`operator=`(4f35bf974e7f8568). FileDialogcxx . . $ FileDialog#::existingDirectorycxx . . $ FileDialog#existingDirectory(64daf12e4178040a).(this, {cxx . . $ QString#QString(ced63f7c635d850d).}, current, GENERAL_REMEMBERED_PATHcxx . . $ `src/librssguard/gui/dialogs/filedialog.h:9:9`!);
68 }
69 else {
70 file_dir =cxx . . $ QString#`operator=`(4f35bf974e7f8568). FileDialogcxx . . $ FileDialog#::openFileNamecxx . . $ FileDialog#openFileName(7deab5c64a7710be).(this, {cxx . . $ QString#QString(ced63f7c635d850d).}, current, file_filter, {}, GENERAL_REMEMBERED_PATHcxx . . $ `src/librssguard/gui/dialogs/filedialog.h:9:9`!);
71 }
72
73 if (!file_dir.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
74 tb->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(QDircxx . . $ QDir#::toNativeSeparatorscxx . . $ QDir#toNativeSeparators(fd988a2ab94d906b).(file_dir));
75 }
76 }
77
78 QStringcxx . . $ QString# SettingsNodejscxx . . $ SettingsNodejs#::titlecxx . . $ SettingsNodejs#title(6ef7b6c27b00b43d).() const {
79 return QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Node.js");
80 }
81
82 void SettingsNodejscxx . . $ SettingsNodejs#::loadSettingscxx . . $ SettingsNodejs#loadSettings(49f6e7a06ebc5aa8).() {
83 onBeginLoadSettingscxx . . $ SettingsPanel#onBeginLoadSettings(49f6e7a06ebc5aa8).();
84
85 m_uicxx . . $ SettingsNodejs#m_ui..m_tbNodeExecutablecxx . . $ Ui_SettingsNodejs#m_tbNodeExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->nodejscxx . . $ Application#nodejs(37aaef0f1b724263).()->nodeJsExecutablecxx . . $ NodeJs#nodeJsExecutable(6ef7b6c27b00b43d).());
86 m_uicxx . . $ SettingsNodejs#m_ui..m_tbNpmExecutablecxx . . $ Ui_SettingsNodejs#m_tbNpmExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->nodejscxx . . $ Application#nodejs(37aaef0f1b724263).()->npmExecutablecxx . . $ NodeJs#npmExecutable(6ef7b6c27b00b43d).());
87 m_uicxx . . $ SettingsNodejs#m_ui..m_tbPackageFoldercxx . . $ Ui_SettingsNodejs#m_tbPackageFolder.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->nodejscxx . . $ Application#nodejs(37aaef0f1b724263).()->packageFoldercxx . . $ NodeJs#packageFolder(6ef7b6c27b00b43d).());
88
89 onEndLoadSettingscxx . . $ SettingsPanel#onEndLoadSettings(49f6e7a06ebc5aa8).();
90 }
91
92 void SettingsNodejscxx . . $ SettingsNodejs#::saveSettingscxx . . $ SettingsNodejs#saveSettings(49f6e7a06ebc5aa8).() {
93 onBeginSaveSettingscxx . . $ SettingsPanel#onBeginSaveSettings(49f6e7a06ebc5aa8).();
94
95 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->nodejscxx . . $ Application#nodejs(37aaef0f1b724263).()->setNodeJsExecutablecxx . . $ NodeJs#setNodeJsExecutable(7fba01612ab56717).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNodeExecutablecxx . . $ Ui_SettingsNodejs#m_tbNodeExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
96 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->nodejscxx . . $ Application#nodejs(37aaef0f1b724263).()->setNpmExecutablecxx . . $ NodeJs#setNpmExecutable(7fba01612ab56717).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNpmExecutablecxx . . $ Ui_SettingsNodejs#m_tbNpmExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
97 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->nodejscxx . . $ Application#nodejs(37aaef0f1b724263).()->setPackageFoldercxx . . $ NodeJs#setPackageFolder(3520e46b33348bf6).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbPackageFoldercxx . . $ Ui_SettingsNodejs#m_tbPackageFolder.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
98
99 onEndSaveSettingscxx . . $ SettingsPanel#onEndSaveSettings(49f6e7a06ebc5aa8).();
100 }
101
102 void SettingsNodejscxx . . $ SettingsNodejs#::testNodejscxx . . $ SettingsNodejs#testNodejs(49f6e7a06ebc5aa8).() {
103 try {
104 QStringcxx . . $ QString# node_version = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->nodejscxx . . $ Application#nodejs(37aaef0f1b724263).()->nodeJsVersioncxx . . $ NodeJs#nodeJsVersion(5555d9024dcf93fb).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNodeExecutablecxx . . $ Ui_SettingsNodejs#m_tbNodeExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
105
106 m_uicxx . . $ SettingsNodejs#m_ui..m_tbNodeExecutablecxx . . $ Ui_SettingsNodejs#m_tbNodeExecutable.->setStatuscxx . . $ WidgetWithStatus#setStatus(e987dce66bda7b0a).(WidgetWithStatuscxx . . $ WidgetWithStatus#::StatusTypecxx . . $ WidgetWithStatus#StatusType#::Okcxx . . $ WidgetWithStatus#StatusType#Ok.,
107 trcxx . . $ SettingsNodejs#tr(75d9f1c324b4579d).("Node.js has version %1.").argcxx . . $ QString#arg(ad0bca07273edcc2).(node_version));
108 }
109 catch (const ApplicationExceptioncxx . . $ ApplicationException#& ex) {
110 m_uicxx . . $ SettingsNodejs#m_ui..m_tbNodeExecutablecxx . . $ Ui_SettingsNodejs#m_tbNodeExecutable.->setStatuscxx . . $ WidgetWithStatus#setStatus(e987dce66bda7b0a).(WidgetWithStatuscxx . . $ WidgetWithStatus#::StatusTypecxx . . $ WidgetWithStatus#StatusType#::Errorcxx . . $ WidgetWithStatus#StatusType#Error., QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Node.js: %1.").argcxx . . $ QString#arg(ad0bca07273edcc2).(ex.messagecxx . . $ ApplicationException#message(6ef7b6c27b00b43d).()));
111 }
112 }
113
114 void SettingsNodejscxx . . $ SettingsNodejs#::testNpmcxx . . $ SettingsNodejs#testNpm(49f6e7a06ebc5aa8).() {
115 try {
116 QStringcxx . . $ QString# npm_version = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->nodejscxx . . $ Application#nodejs(37aaef0f1b724263).()->npmVersioncxx . . $ NodeJs#npmVersion(5555d9024dcf93fb).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbNpmExecutablecxx . . $ Ui_SettingsNodejs#m_tbNpmExecutable.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
117
118 m_uicxx . . $ SettingsNodejs#m_ui..m_tbNpmExecutablecxx . . $ Ui_SettingsNodejs#m_tbNpmExecutable.->setStatuscxx . . $ WidgetWithStatus#setStatus(e987dce66bda7b0a).(WidgetWithStatuscxx . . $ WidgetWithStatus#::StatusTypecxx . . $ WidgetWithStatus#StatusType#::Okcxx . . $ WidgetWithStatus#StatusType#Ok., trcxx . . $ SettingsNodejs#tr(75d9f1c324b4579d).("NPM has version %1.").argcxx . . $ QString#arg(ad0bca07273edcc2).(npm_version));
119 }
120 catch (const ApplicationExceptioncxx . . $ ApplicationException#& ex) {
121 m_uicxx . . $ SettingsNodejs#m_ui..m_tbNpmExecutablecxx . . $ Ui_SettingsNodejs#m_tbNpmExecutable.->setStatuscxx . . $ WidgetWithStatus#setStatus(e987dce66bda7b0a).(WidgetWithStatuscxx . . $ WidgetWithStatus#::StatusTypecxx . . $ WidgetWithStatus#StatusType#::Errorcxx . . $ WidgetWithStatus#StatusType#Error., QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("NPM: %1.").argcxx . . $ QString#arg(ad0bca07273edcc2).(ex.messagecxx . . $ ApplicationException#message(6ef7b6c27b00b43d).()));
122 }
123 }
124
125 void SettingsNodejscxx . . $ SettingsNodejs#::testPackageFoldercxx . . $ SettingsNodejs#testPackageFolder(49f6e7a06ebc5aa8).() {
126 QStringcxx . . $ QString# folder = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->replaceUserDataFolderPlaceholdercxx . . $ Application#replaceUserDataFolderPlaceholder(f6736f2569bd2ccc).(m_uicxx . . $ SettingsNodejs#m_ui..m_tbPackageFoldercxx . . $ Ui_SettingsNodejs#m_tbPackageFolder.->lineEditcxx . . $ LineEditWithStatus#lineEdit(b5c214bfbaa3003e).()->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
127
128 const auto fi = QFileInfocxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(folder);
129 const auto is_file = fi.isFilecxx . . $ QFileInfo#isFile(50ce9a9e25b4a850).() && fi.existscxx . . $ QFileInfo#exists(50ce9a9e25b4a850).();
130 QStringcxx . . $ QString# desccxx . . $ QString#QString(ced63f7c635d850d).;
131 WidgetWithStatuscxx . . $ WidgetWithStatus#::StatusTypecxx . . $ WidgetWithStatus#StatusType# stat;
132
133 if (is_file) {
134 stat = WidgetWithStatuscxx . . $ WidgetWithStatus#::StatusTypecxx . . $ WidgetWithStatus#StatusType#::Errorcxx . . $ WidgetWithStatus#StatusType#Error.;
135 desc =cxx . . $ QString#`operator=`(4f35bf974e7f8568). trcxx . . $ SettingsNodejs#tr(75d9f1c324b4579d).("You cannot choose file, you have to choose FOLDER.");
136 }
137 else if (QDircxx . . $ QDir#QDir(3520e46b33348bf6).().existscxx . . $ QDir#exists(f3b39adf77d9c36c).(folder)) {
138 stat = WidgetWithStatuscxx . . $ WidgetWithStatus#::StatusTypecxx . . $ WidgetWithStatus#StatusType#::Okcxx . . $ WidgetWithStatus#StatusType#Ok.;
139 desc =cxx . . $ QString#`operator=`(4f35bf974e7f8568). trcxx . . $ SettingsNodejs#tr(75d9f1c324b4579d).("Package folder is OK.");
140 }
141 else {
142 stat = WidgetWithStatuscxx . . $ WidgetWithStatus#::StatusTypecxx . . $ WidgetWithStatus#StatusType#::Okcxx . . $ WidgetWithStatus#StatusType#Ok.;
143 desc =cxx . . $ QString#`operator=`(4f35bf974e7f8568). trcxx . . $ SettingsNodejs#tr(75d9f1c324b4579d).("Package folder will be created!");
144 }
145
146 m_uicxx . . $ SettingsNodejs#m_ui..m_tbPackageFoldercxx . . $ Ui_SettingsNodejs#m_tbPackageFolder.->setStatuscxx . . $ WidgetWithStatus#setStatus(e987dce66bda7b0a).(stat, desc);
147 }