Line data Source code
1 : /********************************************************************************
2 : ** Form generated from reading UI file 'mainwindow.ui'
3 : **
4 : ** Created by: Qt User Interface Compiler version 6.10.2
5 : **
6 : ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 : ********************************************************************************/
8 :
9 : #ifndef UI_MAINWINDOW_H
10 : #define UI_MAINWINDOW_H
11 :
12 : #include <QtCore/QVariant>
13 : #include <QtGui/QAction>
14 : #include <QtGui/QIcon>
15 : #include <QtWidgets/QApplication>
16 : #include <QtWidgets/QComboBox>
17 : #include <QtWidgets/QFrame>
18 : #include <QtWidgets/QGridLayout>
19 : #include <QtWidgets/QHBoxLayout>
20 : #include <QtWidgets/QHeaderView>
21 : #include <QtWidgets/QLabel>
22 : #include <QtWidgets/QLineEdit>
23 : #include <QtWidgets/QMainWindow>
24 : #include <QtWidgets/QSpacerItem>
25 : #include <QtWidgets/QStatusBar>
26 : #include <QtWidgets/QTextBrowser>
27 : #include <QtWidgets/QToolBar>
28 : #include <QtWidgets/QVBoxLayout>
29 : #include <QtWidgets/QWidget>
30 : #include <deselectabletreeview.h>
31 :
32 : QT_BEGIN_NAMESPACE
33 :
34 : class Ui_MainWindow
35 : {
36 : public:
37 : QAction *actionAddPassword;
38 : QAction *actionAddFolder;
39 : QAction *actionEdit;
40 : QAction *actionDelete;
41 : QAction *actionOtp;
42 : QAction *actionPush;
43 : QAction *actionUpdate;
44 : QAction *actionUsers;
45 : QAction *actionConfig;
46 : QWidget *centralWidget;
47 : QGridLayout *gridLayout_2;
48 : QFrame *frame;
49 : QHBoxLayout *horizontalLayout_2;
50 : QHBoxLayout *horizontalLayout_3;
51 : QVBoxLayout *verticalLayout;
52 : QWidget *profileWidget;
53 : QHBoxLayout *horizontalLayout;
54 : QLabel *label;
55 : QComboBox *profileBox;
56 : QLineEdit *lineEdit;
57 : DeselectableTreeView *treeView;
58 : QVBoxLayout *verticalLayoutPassword;
59 : QLabel *passwordName;
60 : QSpacerItem *verticalSpacer_2;
61 : QGridLayout *gridLayout;
62 : QTextBrowser *textBrowser;
63 : QStatusBar *statusBar;
64 : QToolBar *toolBar;
65 :
66 0 : void setupUi(QMainWindow *MainWindow)
67 : {
68 0 : if (MainWindow->objectName().isEmpty())
69 0 : MainWindow->setObjectName("MainWindow");
70 0 : MainWindow->resize(801, 484);
71 0 : QIcon icon;
72 0 : icon.addFile(QString::fromUtf8(":/artwork/icon.png"), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
73 0 : MainWindow->setWindowIcon(icon);
74 0 : actionAddPassword = new QAction(MainWindow);
75 0 : actionAddPassword->setObjectName("actionAddPassword");
76 0 : actionAddFolder = new QAction(MainWindow);
77 0 : actionAddFolder->setObjectName("actionAddFolder");
78 0 : actionEdit = new QAction(MainWindow);
79 0 : actionEdit->setObjectName("actionEdit");
80 0 : actionDelete = new QAction(MainWindow);
81 0 : actionDelete->setObjectName("actionDelete");
82 0 : actionOtp = new QAction(MainWindow);
83 0 : actionOtp->setObjectName("actionOtp");
84 0 : actionPush = new QAction(MainWindow);
85 0 : actionPush->setObjectName("actionPush");
86 0 : actionUpdate = new QAction(MainWindow);
87 0 : actionUpdate->setObjectName("actionUpdate");
88 0 : actionUsers = new QAction(MainWindow);
89 0 : actionUsers->setObjectName("actionUsers");
90 0 : actionConfig = new QAction(MainWindow);
91 0 : actionConfig->setObjectName("actionConfig");
92 0 : centralWidget = new QWidget(MainWindow);
93 0 : centralWidget->setObjectName("centralWidget");
94 0 : gridLayout_2 = new QGridLayout(centralWidget);
95 0 : gridLayout_2->setSpacing(6);
96 0 : gridLayout_2->setContentsMargins(11, 11, 11, 11);
97 0 : gridLayout_2->setObjectName("gridLayout_2");
98 0 : frame = new QFrame(centralWidget);
99 0 : frame->setObjectName("frame");
100 0 : QSizePolicy sizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Fixed);
101 : sizePolicy.setHorizontalStretch(0);
102 : sizePolicy.setVerticalStretch(0);
103 0 : sizePolicy.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
104 0 : frame->setSizePolicy(sizePolicy);
105 0 : horizontalLayout_2 = new QHBoxLayout(frame);
106 0 : horizontalLayout_2->setSpacing(6);
107 0 : horizontalLayout_2->setContentsMargins(11, 11, 11, 11);
108 0 : horizontalLayout_2->setObjectName("horizontalLayout_2");
109 0 : horizontalLayout_2->setContentsMargins(0, 0, 0, 0);
110 :
111 0 : gridLayout_2->addWidget(frame, 0, 0, 2, 2);
112 :
113 0 : horizontalLayout_3 = new QHBoxLayout();
114 0 : horizontalLayout_3->setSpacing(6);
115 0 : horizontalLayout_3->setObjectName("horizontalLayout_3");
116 0 : verticalLayout = new QVBoxLayout();
117 0 : verticalLayout->setSpacing(6);
118 0 : verticalLayout->setObjectName("verticalLayout");
119 0 : profileWidget = new QWidget(centralWidget);
120 0 : profileWidget->setObjectName("profileWidget");
121 0 : horizontalLayout = new QHBoxLayout(profileWidget);
122 0 : horizontalLayout->setSpacing(6);
123 0 : horizontalLayout->setContentsMargins(11, 11, 11, 11);
124 0 : horizontalLayout->setObjectName("horizontalLayout");
125 0 : horizontalLayout->setContentsMargins(0, 0, 0, 0);
126 0 : label = new QLabel(profileWidget);
127 0 : label->setObjectName("label");
128 :
129 0 : horizontalLayout->addWidget(label);
130 :
131 0 : profileBox = new QComboBox(profileWidget);
132 0 : profileBox->setObjectName("profileBox");
133 0 : QSizePolicy sizePolicy1(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Minimum);
134 : sizePolicy1.setHorizontalStretch(0);
135 : sizePolicy1.setVerticalStretch(0);
136 0 : sizePolicy1.setHeightForWidth(profileBox->sizePolicy().hasHeightForWidth());
137 0 : profileBox->setSizePolicy(sizePolicy1);
138 0 : profileBox->setMinimumSize(QSize(100, 26));
139 0 : profileBox->setMaximumSize(QSize(100000, 16777215));
140 :
141 0 : horizontalLayout->addWidget(profileBox);
142 :
143 :
144 0 : verticalLayout->addWidget(profileWidget);
145 :
146 0 : lineEdit = new QLineEdit(centralWidget);
147 0 : lineEdit->setObjectName("lineEdit");
148 0 : lineEdit->setMinimumSize(QSize(0, 26));
149 0 : lineEdit->setFocusPolicy(Qt::StrongFocus);
150 :
151 0 : verticalLayout->addWidget(lineEdit);
152 :
153 0 : treeView = new DeselectableTreeView(centralWidget);
154 0 : treeView->setObjectName("treeView");
155 0 : QSizePolicy sizePolicy2(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::MinimumExpanding);
156 : sizePolicy2.setHorizontalStretch(0);
157 : sizePolicy2.setVerticalStretch(0);
158 0 : sizePolicy2.setHeightForWidth(treeView->sizePolicy().hasHeightForWidth());
159 0 : treeView->setSizePolicy(sizePolicy2);
160 0 : treeView->setAcceptDrops(true);
161 0 : treeView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustIgnored);
162 0 : treeView->setDragEnabled(true);
163 0 : treeView->setDragDropMode(QAbstractItemView::InternalMove);
164 0 : treeView->setSortingEnabled(true);
165 0 : treeView->setAnimated(true);
166 0 : treeView->header()->setStretchLastSection(false);
167 :
168 0 : verticalLayout->addWidget(treeView);
169 :
170 :
171 0 : horizontalLayout_3->addLayout(verticalLayout);
172 :
173 0 : verticalLayoutPassword = new QVBoxLayout();
174 0 : verticalLayoutPassword->setSpacing(0);
175 0 : verticalLayoutPassword->setObjectName("verticalLayoutPassword");
176 0 : verticalLayoutPassword->setContentsMargins(-1, 7, -1, -1);
177 0 : passwordName = new QLabel(centralWidget);
178 0 : passwordName->setObjectName("passwordName");
179 0 : QSizePolicy sizePolicy3(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Fixed);
180 : sizePolicy3.setHorizontalStretch(0);
181 : sizePolicy3.setVerticalStretch(0);
182 0 : sizePolicy3.setHeightForWidth(passwordName->sizePolicy().hasHeightForWidth());
183 0 : passwordName->setSizePolicy(sizePolicy3);
184 0 : passwordName->setMinimumSize(QSize(0, 20));
185 0 : passwordName->setMaximumSize(QSize(10000000, 30));
186 0 : QFont font;
187 0 : font.setPointSize(14);
188 : font.setBold(false);
189 : font.setItalic(false);
190 0 : font.setUnderline(false);
191 0 : font.setKerning(true);
192 0 : passwordName->setFont(font);
193 0 : passwordName->setFrameShape(QFrame::NoFrame);
194 0 : passwordName->setFrameShadow(QFrame::Plain);
195 0 : passwordName->setScaledContents(false);
196 0 : passwordName->setTextInteractionFlags(Qt::TextInteractionFlag::LinksAccessibleByMouse|Qt::TextInteractionFlag::TextSelectableByMouse);
197 :
198 0 : verticalLayoutPassword->addWidget(passwordName);
199 :
200 0 : verticalSpacer_2 = new QSpacerItem(20, 5, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Fixed);
201 :
202 0 : verticalLayoutPassword->addItem(verticalSpacer_2);
203 :
204 0 : gridLayout = new QGridLayout();
205 0 : gridLayout->setSpacing(6);
206 0 : gridLayout->setObjectName("gridLayout");
207 :
208 0 : verticalLayoutPassword->addLayout(gridLayout);
209 :
210 0 : textBrowser = new QTextBrowser(centralWidget);
211 0 : textBrowser->setObjectName("textBrowser");
212 0 : QSizePolicy sizePolicy4(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Expanding);
213 : sizePolicy4.setHorizontalStretch(0);
214 : sizePolicy4.setVerticalStretch(0);
215 0 : sizePolicy4.setHeightForWidth(textBrowser->sizePolicy().hasHeightForWidth());
216 0 : textBrowser->setSizePolicy(sizePolicy4);
217 0 : textBrowser->setMinimumSize(QSize(0, 20));
218 0 : textBrowser->setAutoFillBackground(false);
219 0 : textBrowser->setStyleSheet(QString::fromUtf8("background: transparent"));
220 0 : textBrowser->setFrameShape(QFrame::NoFrame);
221 0 : textBrowser->setFrameShadow(QFrame::Plain);
222 0 : textBrowser->setLineWidth(0);
223 0 : textBrowser->setAcceptRichText(true);
224 0 : textBrowser->setOpenExternalLinks(true);
225 :
226 0 : verticalLayoutPassword->addWidget(textBrowser);
227 :
228 :
229 0 : horizontalLayout_3->addLayout(verticalLayoutPassword);
230 :
231 :
232 0 : gridLayout_2->addLayout(horizontalLayout_3, 1, 1, 1, 1);
233 :
234 0 : MainWindow->setCentralWidget(centralWidget);
235 0 : statusBar = new QStatusBar(MainWindow);
236 0 : statusBar->setObjectName("statusBar");
237 0 : MainWindow->setStatusBar(statusBar);
238 0 : toolBar = new QToolBar(MainWindow);
239 0 : toolBar->setObjectName("toolBar");
240 0 : toolBar->setContextMenuPolicy(Qt::PreventContextMenu);
241 0 : toolBar->setAcceptDrops(false);
242 0 : toolBar->setMovable(false);
243 0 : toolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
244 0 : MainWindow->addToolBar(Qt::ToolBarArea::TopToolBarArea, toolBar);
245 : #if QT_CONFIG(shortcut)
246 0 : label->setBuddy(profileBox);
247 : #endif // QT_CONFIG(shortcut)
248 0 : QWidget::setTabOrder(lineEdit, treeView);
249 0 : QWidget::setTabOrder(treeView, textBrowser);
250 :
251 0 : toolBar->addAction(actionAddPassword);
252 0 : toolBar->addAction(actionAddFolder);
253 0 : toolBar->addSeparator();
254 0 : toolBar->addAction(actionEdit);
255 0 : toolBar->addAction(actionDelete);
256 0 : toolBar->addAction(actionOtp);
257 0 : toolBar->addSeparator();
258 0 : toolBar->addAction(actionPush);
259 0 : toolBar->addAction(actionUpdate);
260 0 : toolBar->addSeparator();
261 0 : toolBar->addAction(actionUsers);
262 0 : toolBar->addAction(actionConfig);
263 :
264 0 : retranslateUi(MainWindow);
265 :
266 0 : QMetaObject::connectSlotsByName(MainWindow);
267 0 : } // setupUi
268 :
269 0 : void retranslateUi(QMainWindow *MainWindow)
270 : {
271 0 : MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "QtPass", nullptr));
272 0 : actionAddPassword->setText(QCoreApplication::translate("MainWindow", "Add password", nullptr));
273 : #if QT_CONFIG(tooltip)
274 0 : actionAddPassword->setToolTip(QCoreApplication::translate("MainWindow", "Add password", nullptr));
275 : #endif // QT_CONFIG(tooltip)
276 : #if QT_CONFIG(shortcut)
277 0 : actionAddPassword->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+N", nullptr));
278 : #endif // QT_CONFIG(shortcut)
279 0 : actionAddFolder->setText(QCoreApplication::translate("MainWindow", "Add folder", nullptr));
280 : #if QT_CONFIG(tooltip)
281 0 : actionAddFolder->setToolTip(QCoreApplication::translate("MainWindow", "Add folder", nullptr));
282 : #endif // QT_CONFIG(tooltip)
283 0 : actionEdit->setText(QCoreApplication::translate("MainWindow", "Edit", nullptr));
284 : #if QT_CONFIG(tooltip)
285 0 : actionEdit->setToolTip(QCoreApplication::translate("MainWindow", "Edit", nullptr));
286 : #endif // QT_CONFIG(tooltip)
287 0 : actionDelete->setText(QCoreApplication::translate("MainWindow", "Delete", nullptr));
288 : #if QT_CONFIG(tooltip)
289 0 : actionDelete->setToolTip(QCoreApplication::translate("MainWindow", "Delete", nullptr));
290 : #endif // QT_CONFIG(tooltip)
291 0 : actionOtp->setText(QCoreApplication::translate("MainWindow", "OTP", nullptr));
292 : #if QT_CONFIG(tooltip)
293 0 : actionOtp->setToolTip(QCoreApplication::translate("MainWindow", "Generate OTP and copy to clipboard", nullptr));
294 : #endif // QT_CONFIG(tooltip)
295 : #if QT_CONFIG(shortcut)
296 0 : actionOtp->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+G", nullptr));
297 : #endif // QT_CONFIG(shortcut)
298 0 : actionPush->setText(QCoreApplication::translate("MainWindow", "Push", nullptr));
299 : #if QT_CONFIG(tooltip)
300 0 : actionPush->setToolTip(QCoreApplication::translate("MainWindow", "Git push", nullptr));
301 : #endif // QT_CONFIG(tooltip)
302 0 : actionUpdate->setText(QCoreApplication::translate("MainWindow", "Update", nullptr));
303 : #if QT_CONFIG(tooltip)
304 0 : actionUpdate->setToolTip(QCoreApplication::translate("MainWindow", "Git pull", nullptr));
305 : #endif // QT_CONFIG(tooltip)
306 0 : actionUsers->setText(QCoreApplication::translate("MainWindow", "Users", nullptr));
307 : #if QT_CONFIG(tooltip)
308 0 : actionUsers->setToolTip(QCoreApplication::translate("MainWindow", "Manage who can read password in folder", nullptr));
309 : #endif // QT_CONFIG(tooltip)
310 0 : actionConfig->setText(QCoreApplication::translate("MainWindow", "Config", nullptr));
311 : #if QT_CONFIG(tooltip)
312 0 : actionConfig->setToolTip(QCoreApplication::translate("MainWindow", "Configuration", nullptr));
313 : #endif // QT_CONFIG(tooltip)
314 0 : label->setText(QCoreApplication::translate("MainWindow", "Select profile", nullptr));
315 0 : lineEdit->setText(QString());
316 0 : lineEdit->setPlaceholderText(QCoreApplication::translate("MainWindow", "Search Password", nullptr));
317 0 : passwordName->setText(QCoreApplication::translate("MainWindow", "Welcome to QtPass", nullptr));
318 0 : textBrowser->setHtml(QCoreApplication::translate("MainWindow", "<p>QtPass is a GUI for <a href=\"https://www.passwordstore.org/\">pass</a>, the standard unix password manager.</p>\n"
319 : "<p>Please report any <a href=\"https://github.com/IJHack/qtpass/issues\">issues</a> you might have with this software.</p>\n"
320 : "<p><a href=\"https://qtpass.org/\">Documentation</a></p>\n"
321 : "<p><a href=\"https://github.com/IJHack/qtpass\">SourceCode</a></p>", nullptr));
322 0 : toolBar->setWindowTitle(QString());
323 0 : } // retranslateUi
324 :
325 : };
326 :
327 : namespace Ui {
328 : class MainWindow: public Ui_MainWindow {};
329 : } // namespace Ui
330 :
331 : QT_END_NAMESPACE
332 :
333 : #endif // UI_MAINWINDOW_H
|