Skip to content

Commit

Permalink
photo view
Browse files Browse the repository at this point in the history
  • Loading branch information
litz-a committed Mar 29, 2017
1 parent d5cf232 commit 7e304b5
Show file tree
Hide file tree
Showing 62 changed files with 3,924 additions and 0 deletions.
24 changes: 24 additions & 0 deletions PhotoView/PhotoView/about.cpp
Original file line number Diff line number Diff line change
@@ -0,0 1,24 @@
#include "about.h"
#include "ui_about.h"

About::About(QWidget *parent) :
QDialog(parent),
ui(new Ui::About)
{
ui->setupUi(this);
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
setFixedSize(307,165);
ui->retranslateUi(this);
}

About::~About()
{
delete ui;
}

void About::on_OK_clicked()
{
close();
}


26 changes: 26 additions & 0 deletions PhotoView/PhotoView/about.h
Original file line number Diff line number Diff line change
@@ -0,0 1,26 @@
#ifndef ABOUT_H
#define ABOUT_H

#include <QDialog>

namespace Ui {
class About;
}

class About : public QDialog
{
Q_OBJECT

public:
explicit About(QWidget *parent = 0);
~About();


private slots:
void on_OK_clicked();

private:
Ui::About *ui;
};

#endif // ABOUT_H
125 changes: 125 additions & 0 deletions PhotoView/PhotoView/about.ui
Original file line number Diff line number Diff line change
@@ -0,0 1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>About</class>
<widget class="QDialog" name="About">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>307</width>
<height>165</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>307</width>
<height>165</height>
</size>
</property>
<property name="windowTitle">
<string>About</string>
</property>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>11</x>
<y>11</y>
<width>281</width>
<height>141</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="3,1">
<property name="spacing">
<number>10</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout" stretch="1,1">
<item>
<widget class="QLabel" name="AppName">
<property name="font">
<font>
<family>SimSun-ExtB</family>
<pointsize>16</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Photo View 1.0.0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="AppDeveloper">
<property name="font">
<font>
<family>SimSun-ExtB</family>
<pointsize>14</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Developer:SHI</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="OK">
<property name="font">
<font>
<family>SimSun-ExtB</family>
<pointsize>11</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>OK</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>
Binary file added PhotoView/PhotoView/images/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 113 additions & 0 deletions PhotoView/PhotoView/images/blue.css
Original file line number Diff line number Diff line change
@@ -0,0 1,113 @@
QPushButton{
border-style: none;
border: 0;
color: #F0F0F0;
padding: 1px 10px 1px 10px;
min-height: 25px;
min-width: 60px;
border-radius:5px;
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #0F7DBE, stop:1 #1582C3);
}

QPushButton:hover{
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #50A3F0, stop:1 #489CEA);
}

QPushButton:pressed{
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #0F7DBE, stop:1 #1582C3);
}

QPushButton#ZoomIn,QPushButton#ZoomOut,QPushButton#ZoomFit,QPushButton#FullScreen,QPushButton#Prev,QPushButton#Next,QPushButton#RotateLeft,QPushButton#RotateRight,QPushButton#Delete,QPushButton#Info,QPushButton#FlipV,QPushButton#FlipH,QPushButton#Play{
border-style: none;
border: 0;
color: #F0F0F0;
padding: 2px;
min-height: 25px;
min-width: 25px;
border-radius:5px;
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #50A3F0, stop:1 #489CEA);
}

QPushButton#ZoomIn:hover,QPushButton#ZoomOut:hover,QPushButton#ZoomFit:hover,QPushButton#FullScreen:hover,QPushButton#Prev:hover,QPushButton#Next:hover,QPushButton#RotateLeft:hover,QPushButton#RotateRight:hover,QPushButton#Delete:hover,QPushButton#Info:hover,QPushButton#FlipV:hover,QPushButton#FlipH:hover,QPushButton#Play:hover{
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #0454BE, stop:1 #0435BE);
}

QPushButton#ZoomIn:pressed,QPushButton#ZoomOut:pressed,QPushButton#ZoomFit:pressed,QPushButton#FullScreen:pressed,QPushButton#Prev:pressed,QPushButton#Next:pressed,QPushButton#RotateLeft:pressed,QPushButton#RotateRight:pressed,QPushButton#Delete:pressed,QPushButton#Info:pressed,QPushButton#FlipV:pressed,QPushButton#FlipH:pressed,QPushButton#Play:pressed{
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #0F7DBE, stop:1 #1582C3);
}

.QFrame{
border:1px solid #0F7DBE;
border-radius:5px;
}


QMenuBar {
background-color: #2F90E4;
font-weight: bold;
min-height: 21px;
}

QMenuBar::item {
spacing: 20px; /* spacing between menu bar items */
padding: 1px 5px;
background: transparent;
color: white;
}

QMenuBar::item:selected { /* when selected using mouse or keyboard */
background: #030711;
}

QMenuBar::item:pressed {
background: #030711;
}



QMenu {
background-color: #2F90E4;
border-style: none;
font-weight: bold;
}

QMenu::item {
background: transparent;
color: white;
}

QMenu::item:selected {
background: #0F7DBE;
}

QMenu::separator {
height: 1px;
background: white;
}


QStatusBar::item {
background-color: #0F7DBE;
border-style: none;
}

QLabel#label{
border-radius:5px;
padding: 2px 20px 3px 20px;
background: transparent;
border-style:none;
min-height: 13px;
color: white;
}

QLabel#photo{
padding: 1px 1px 1px 1px;
border-style: solid #0F7DBE;
}



QDialog{
background-color: lightgray;
}

Binary file added PhotoView/PhotoView/images/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PhotoView/PhotoView/images/drop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PhotoView/PhotoView/images/exit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PhotoView/PhotoView/images/fliphorizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PhotoView/PhotoView/images/flipvertical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PhotoView/PhotoView/images/fullscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PhotoView/PhotoView/images/fullscreenexit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7e304b5

Please sign in to comment.