Skip to content

Commit 3d044ca

Browse files
committed
initial commit
1 parent 6a1de93 commit 3d044ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+29653
-0
lines changed

RapidCopy_ja_JP.ts

+3,301
Large diffs are not rendered by default.

aboutdialog.cpp

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/* ========================================================================
2+
Project Name : Fast/Force copy file and directory
3+
Create : 2016-02-28
4+
Copyright : Kengo Sawatsu
5+
Summary : 「RapidCopyについて」 のダイアログ
6+
Reference :
7+
======================================================================== */
8+
9+
#include "aboutdialog.h"
10+
#include "ui_aboutdialog.h"
11+
12+
#include <mainwindow.h>
13+
#include <version.h>
14+
#include <QDesktopServices>
15+
16+
aboutDialog::aboutDialog(QWidget *parent,Cfg *cfg_pt) :
17+
QDialog(parent),
18+
ui(new Ui::aboutDialog)
19+
{
20+
char buf[MAX_PATH + STR_NULL_GUARD];
21+
22+
ui->setupUi(this);
23+
sprintf(buf,ABOUT_STATIC,(char*)GetLoadStrV(IDS_FASTCOPY), GetVersionStr(), GetCopyrightStr());
24+
ui->textEdit_vandc->append(buf);
25+
26+
sprintf(buf,(char*)GetLoadStrV(IDS_ABOUT_WINDOWTITLE),(char*)GetLoadStrV(IDS_FASTCOPY));
27+
this->setWindowTitle(buf);
28+
29+
//CopyRightその2の部分表示
30+
sprintf(buf,"%s",(char*)GetVersionStr2());
31+
ui->textEdit_vandc->append((char*)buf);
32+
ui->textEdit_vandc->append("");
33+
34+
//debugでbuild日付と時刻いれとこ
35+
sprintf(buf,"Build at %s %s\n",__DATE__,__TIME__);
36+
ui->textEdit_vandc->append((char*)buf);
37+
38+
QFile license_file;
39+
if(QLocale::system().country() == QLocale::Japan){
40+
//日本語のライセンスよみこみ
41+
license_file.setFileName(LICENSE_FILE_JP);
42+
}
43+
else{
44+
//英語のライセンスよみこみ
45+
license_file.setFileName(LICENSE_FILE_EN);
46+
}
47+
license_file.open(QIODevice::ReadOnly);
48+
QTextStream text(&license_file);
49+
ui->textEdit_vandc->append(text.readAll());
50+
license_file.close();
51+
52+
ui->textEdit_vandc->moveCursor(QTextCursor::Start);
53+
ui->textEdit_vandc->ensureCursorVisible();
54+
ui->pushButton_tohp->setText((char*)GetLoadStrV(IDS_FASTCOPYURL));
55+
}
56+
57+
aboutDialog::~aboutDialog()
58+
{
59+
delete ui;
60+
}
61+
62+
void aboutDialog::on_pushButton_tohp_clicked()
63+
{
64+
QDesktopServices::openUrl(QUrl((char*)GetLoadStrV(IDS_FASTCOPYURL),QUrl::TolerantMode));
65+
}

aboutdialog.h

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* ========================================================================
2+
Project Name : Fast/Force copy file and directory
3+
Create : 2016-02-28(Sun)
4+
Copyright : Kengo Sawatsu
5+
Reference :
6+
======================================================================== */
7+
8+
#ifndef ABOUTDIALOG_H
9+
#define ABOUTDIALOG_H
10+
11+
#include <QDialog>
12+
#include <tlib.h>
13+
#include <osl.h>
14+
#include <cfg.h>
15+
16+
#define ABOUT_STATIC "%s %s\n\n%s"
17+
18+
namespace Ui {
19+
class aboutDialog;
20+
}
21+
22+
class aboutDialog : public QDialog
23+
{
24+
Q_OBJECT
25+
26+
public:
27+
explicit aboutDialog(QWidget *parent = 0,Cfg *cfg_pt=NULL);
28+
~aboutDialog();
29+
30+
private slots:
31+
void on_pushButton_tohp_clicked();
32+
33+
private:
34+
Ui::aboutDialog *ui;
35+
};
36+
37+
#endif // ABOUTDIALOG_H

aboutdialog.ui

+143
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>aboutDialog</class>
4+
<widget class="QDialog" name="aboutDialog">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>550</width>
10+
<height>250</height>
11+
</rect>
12+
</property>
13+
<property name="sizePolicy">
14+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
15+
<horstretch>0</horstretch>
16+
<verstretch>0</verstretch>
17+
</sizepolicy>
18+
</property>
19+
<property name="minimumSize">
20+
<size>
21+
<width>550</width>
22+
<height>200</height>
23+
</size>
24+
</property>
25+
<property name="maximumSize">
26+
<size>
27+
<width>16777215</width>
28+
<height>16777215</height>
29+
</size>
30+
</property>
31+
<property name="windowTitle">
32+
<string notr="true"/>
33+
</property>
34+
<layout class="QGridLayout" name="gridLayout_2">
35+
<property name="leftMargin">
36+
<number>5</number>
37+
</property>
38+
<property name="topMargin">
39+
<number>10</number>
40+
</property>
41+
<property name="rightMargin">
42+
<number>5</number>
43+
</property>
44+
<property name="bottomMargin">
45+
<number>10</number>
46+
</property>
47+
<property name="horizontalSpacing">
48+
<number>0</number>
49+
</property>
50+
<property name="verticalSpacing">
51+
<number>10</number>
52+
</property>
53+
<item row="1" column="0">
54+
<widget class="QPushButton" name="pushButton_tohp">
55+
<property name="sizePolicy">
56+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
57+
<horstretch>0</horstretch>
58+
<verstretch>0</verstretch>
59+
</sizepolicy>
60+
</property>
61+
<property name="font">
62+
<font>
63+
<pointsize>10</pointsize>
64+
</font>
65+
</property>
66+
<property name="text">
67+
<string/>
68+
</property>
69+
</widget>
70+
</item>
71+
<item row="2" column="0" alignment="Qt::AlignHCenter">
72+
<widget class="QDialogButtonBox" name="buttonBox">
73+
<property name="layoutDirection">
74+
<enum>Qt::LeftToRight</enum>
75+
</property>
76+
<property name="orientation">
77+
<enum>Qt::Horizontal</enum>
78+
</property>
79+
<property name="standardButtons">
80+
<set>QDialogButtonBox::Ok</set>
81+
</property>
82+
</widget>
83+
</item>
84+
<item row="0" column="0">
85+
<widget class="QTextEdit" name="textEdit_vandc">
86+
<property name="font">
87+
<font>
88+
<pointsize>12</pointsize>
89+
</font>
90+
</property>
91+
<property name="verticalScrollBarPolicy">
92+
<enum>Qt::ScrollBarAlwaysOff</enum>
93+
</property>
94+
<property name="horizontalScrollBarPolicy">
95+
<enum>Qt::ScrollBarAlwaysOff</enum>
96+
</property>
97+
<property name="textInteractionFlags">
98+
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
99+
</property>
100+
</widget>
101+
</item>
102+
</layout>
103+
</widget>
104+
<tabstops>
105+
<tabstop>textEdit_vandc</tabstop>
106+
<tabstop>pushButton_tohp</tabstop>
107+
</tabstops>
108+
<resources/>
109+
<connections>
110+
<connection>
111+
<sender>buttonBox</sender>
112+
<signal>accepted()</signal>
113+
<receiver>aboutDialog</receiver>
114+
<slot>accept()</slot>
115+
<hints>
116+
<hint type="sourcelabel">
117+
<x>248</x>
118+
<y>254</y>
119+
</hint>
120+
<hint type="destinationlabel">
121+
<x>157</x>
122+
<y>274</y>
123+
</hint>
124+
</hints>
125+
</connection>
126+
<connection>
127+
<sender>buttonBox</sender>
128+
<signal>rejected()</signal>
129+
<receiver>aboutDialog</receiver>
130+
<slot>reject()</slot>
131+
<hints>
132+
<hint type="sourcelabel">
133+
<x>316</x>
134+
<y>260</y>
135+
</hint>
136+
<hint type="destinationlabel">
137+
<x>286</x>
138+
<y>274</y>
139+
</hint>
140+
</hints>
141+
</connection>
142+
</connections>
143+
</ui>

0 commit comments

Comments
 (0)