Skip to content
Permalink
Browse files

add BookmarkManagerDialog.

  • Loading branch information...
haraki committed Jun 14, 2019
1 parent ba32c1e commit de35062250fce8b058ecce7bdd9a49e51e2adbc2
Showing with 138 additions and 0 deletions.
  1. +14 −0 bookmarkmanagerdialog.cpp
  2. +22 −0 bookmarkmanagerdialog.h
  3. +99 −0 bookmarkmanagerdialog.ui
  4. +3 −0 farman.pro
@@ -0,0 +1,14 @@
#include "bookmarkmanagerdialog.h"
#include "ui_bookmarkmanagerdialog.h"

BookmarkManagerDialog::BookmarkManagerDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::BookmarkManagerDialog)
{
ui->setupUi(this);
}

BookmarkManagerDialog::~BookmarkManagerDialog()
{
delete ui;
}
@@ -0,0 +1,22 @@
#ifndef BOOKMARKMANAGERDIALOG_H
#define BOOKMARKMANAGERDIALOG_H

#include <QDialog>

namespace Ui {
class BookmarkManagerDialog;
}

class BookmarkManagerDialog : public QDialog
{
Q_OBJECT

public:
explicit BookmarkManagerDialog(QWidget *parent = nullptr);
~BookmarkManagerDialog();

private:
Ui::BookmarkManagerDialog *ui;
};

#endif // BOOKMARKMANAGERDIALOG_H
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>BookmarkManagerDialog</class>
<widget class="QDialog" name="BookmarkManagerDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Bookmark Manager</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTableView" name="bookmarkTableView"/>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QToolButton" name="topToolButton">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="upToolButton">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="downToolButton">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="bottomToolButton">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>BookmarkManagerDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>BookmarkManagerDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>
@@ -22,6 +22,7 @@ DEFINES += APP_VERSION=\\\"$$VERSION\\\"
INCLUDEPATH += ./QHexView/include

SOURCES += main.cpp\
bookmarkmanagerdialog.cpp \
mainwindow.cpp \
folderform.cpp \
folderview.cpp \
@@ -53,6 +54,7 @@ SOURCES += main.cpp\
file.cpp

HEADERS += mainwindow.h \
bookmarkmanagerdialog.h \
default_settings.h \
folderform.h \
folderviewstyleditemdelegate.h \
@@ -86,6 +88,7 @@ HEADERS += mainwindow.h \
file.h

FORMS += mainwindow.ui \
bookmarkmanagerdialog.ui \
folderform.ui \
doublefolderpanel.ui \
selectstoragebookmarkdialog.ui \

0 comments on commit de35062

Please sign in to comment.
You can’t perform that action at this time.