-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bacaac
commit 1db04ee
Showing
6 changed files
with
579 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TEMPLATE = subdirs | ||
SUBDIRS = photo-frame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,222 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>FrameDialog</class> | ||
<widget class="QDialog" name="FrameDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>530</width> | ||
<height>452</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Dialog</string> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="0" column="0"> | ||
<widget class="QFrame" name="sidePane"> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>200</width> | ||
<height>0</height> | ||
</size> | ||
</property> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>200</width> | ||
<height>16777215</height> | ||
</size> | ||
</property> | ||
<property name="frameShape"> | ||
<enum>QFrame::StyledPanel</enum> | ||
</property> | ||
<property name="frameShadow"> | ||
<enum>QFrame::Raised</enum> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<item> | ||
<widget class="QPushButton" name="selectFrameBtn"> | ||
<property name="text"> | ||
<string>Select Frame ...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="rotateBtn"> | ||
<property name="text"> | ||
<string>Rotate Frame</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QGroupBox" name="groupBox"> | ||
<property name="title"> | ||
<string>Margins :</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="topLabel"> | ||
<property name="text"> | ||
<string>Top : (0%)</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QSlider" name="topMarginSlider"> | ||
<property name="maximum"> | ||
<number>120</number> | ||
</property> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="btmLabel"> | ||
<property name="text"> | ||
<string>Bottom : (0%)</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QSlider" name="btmMarginSlider"> | ||
<property name="maximum"> | ||
<number>120</number> | ||
</property> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="leftLabel"> | ||
<property name="text"> | ||
<string>Left : (0%)</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QSlider" name="leftMarginSlider"> | ||
<property name="maximum"> | ||
<number>120</number> | ||
</property> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="rightLabel"> | ||
<property name="text"> | ||
<string>Right : (0%)</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QSlider" name="rightMarginSlider"> | ||
<property name="maximum"> | ||
<number>120</number> | ||
</property> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
</layout> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="QScrollArea" name="scrollArea"> | ||
<property name="widgetResizable"> | ||
<bool>true</bool> | ||
</property> | ||
<widget class="QWidget" name="scrollAreaWidgetContents"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>302</width> | ||
<height>391</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
</widget> | ||
</item> | ||
<item row="2" column="1"> | ||
<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> | ||
<item row="2" column="0"> | ||
<widget class="QPushButton" name="helpBtn"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string>Help</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>FrameDialog</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>FrameDialog</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
HEADERS = photo_frame.h | ||
SOURCES = photo_frame.cpp | ||
FORMS += $$files(*.ui) | ||
|
||
TARGET = $$qtLibraryTarget(photo-frame) | ||
DESTDIR = ../.. | ||
INCLUDEPATH += $$DESTDIR | ||
|
||
TEMPLATE = lib | ||
CONFIG += plugin | ||
QMAKE_CXXFLAGS = -std=c++11 | ||
QMAKE_LFLAGS += -s | ||
LIBS += | ||
|
||
UI_DIR = $$DESTDIR/build | ||
MOC_DIR = $$DESTDIR/build | ||
OBJECTS_DIR = $$DESTDIR/build | ||
|
||
unix { | ||
INSTALLS += target | ||
target.path = /usr/local/share/photoquick/plugins | ||
} | ||
|
||
CONFIG -= debug_and_release debug |
Oops, something went wrong.