Skip to content

Commit a63eb69

Browse files
authored
Merge pull request #6 from OUCC/develop
v1.1.0
2 parents ac0166c + 41170b8 commit a63eb69

21 files changed

+133
-94
lines changed

README.md

Lines changed: 73 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ gnuplot 5.4 patchlevel 6
77
OpenSiv3D 0.6.6
88

99
## 使い方
10-
0. https://github.com/OUCC/pltGUI/releases よりzipファイルをダウンロード、展開。
11-
1. plt Settingのwhole,graphに入力していく。
10+
0. https://github.com/OUCC/pltGUI/releases よりzipファイルをダウンロード、展開`pltGUI.exe`を実行
11+
1. plt Settingのwhole,graphに入力していく。
1212
(複数のグラフを重ねて描写したいなら+マークで増やす)
1313
2. plt Settingからplt Fileへの矢印を押してpltファイルを生成。
14-
3. plt Fileのタブをクリックして中身を確認、保存)
14+
3. plt Fileのタブをクリックして中身を確認、必要に応じて保存。
1515
4. plt FileからImageへの矢印を押して画像を生成。
16-
5. 画像を確認、1.に戻って修正。
16+
5. Imageから画像を確認、1.に戻って修正。
1717
6. 気に入ったら保存。
1818

1919
## 画面構成
@@ -26,15 +26,10 @@ OpenSiv3D 0.6.6
2626
![see readme_images/graph1.png](readme_images/graph1.png)
2727
- graph2
2828
![see readme_images/graph2.png](readme_images/graph2.png)
29-
- graph3
30-
![see readme_images/graph3.png](readme_images/graph3.png)
3129
- plt File
3230
![see readme_images/pltfile.png](readme_images/pltfile.png)
3331
- plt File
3432
![see readme_images/pltimage.png](readme_images/pltimage.png)
35-
- app options
36-
![see readme_images/appoption.png](readme_images/appoption.png)
37-
![see readme_images/appoption_theme.png](readme_images/appoption_theme.png)
3833

3934
### 説明
4035

@@ -54,7 +49,8 @@ OpenSiv3D 0.6.6
5449
- plt Setting
5550
詳細は後述
5651
- plt File
57-
作成したpltファイル
52+
作成したpltファイル。
53+
この画面で編集することも可能。
5854
右上のSave asで保存できる。
5955
- Image
6056
作成したpltファイルから生成したグラフの画像
@@ -77,54 +73,80 @@ whole,graph の中身は下記入力項目を参照。
7773
**注意**:データファイルを指定して描画する場合、生成されるplt Fileでは絶対パスで書かれるため、ユーザー名の流出などに注意。
7874

7975
### 入力項目
80-
チェックなしは今後追加したいもの
76+
チェックなしは今後追加したいもの。
77+
`vX.X.X`は追加されたバージョン、無表記は`v1.0.0`
8178

8279
- plt setting
8380
- whole
84-
- [x] title
85-
- [x] xrange, yrange
86-
- [x] logscale x, y
87-
- [x] sample
88-
- [x] xlabel, ylabel
81+
- title
82+
- xrange, yrange
83+
- logscale x, y
84+
- sample
85+
- xlabel, ylabel
86+
- load `v1.1.0`
8987
- graph
90-
- [x] 削除ボタン
91-
- [x] plot
92-
- [x] plot "datafile"
93-
- [x] using x:y
94-
- [ ] splot
95-
- [x] title
96-
- [x] with lines
97-
- [x] linecolor
98-
- [x] linetype
99-
- [x] linewidth
100-
- [x] with points
101-
- [x] linecolor
102-
- [x] pointtype
103-
- [x] pointsize
88+
- 削除ボタン
89+
- plot (function)
90+
- plot "datafile"
91+
- using x:y
92+
- title
93+
- with lines
94+
- linecolor
95+
- linetype
96+
- linewidth
97+
- with points
98+
- linecolor
99+
- pointtype
100+
- pointsize
104101
105102
※with linesとwith pointsは同時に指定できる(with linespoints)
106103
また、linecolorはwith pointsとwith linesで共通のため、両方に存在するが中身は同じ。
107104
- plt file
108-
- [x] reload
109-
- [x] save as
105+
- save as
110106
- image
111-
- [x] reload
112-
- [x] save as
107+
- reload
108+
- save as
113109
- app options
114-
- [x] ライセンスの表示
115-
- [x] pltファイルでの色の指定がrgbかhsvか
116-
- [x] キーワードの省略
117-
- [x] アプリのテーマカラーの指定(Base,Main,Accent)
118-
- その他UI
119-
- [x] (plt setting -> plt file)のボタン
120-
- [x] (plt file -> image)のボタン
121-
- [x] optionsのタブをアイコンに
122-
- [x] チェック範囲拡大でつけやすく
123-
- [x] スクロールの範囲
124-
- [x] タブ部分と重なったときのクリック排除
125-
- [ ] データファイルのドラッグ&ドロップ
126-
- [ ] 拡張子の設定
127-
- [ ] plt Fileの編集、スクロール
128-
- [ ] テーマカラーなどの保存
129-
- [ ] ボタン一つでplt生成と画像生成を行うオプション
130-
110+
- ライセンスの表示
111+
- pltファイルでの色の指定がrgbかhsvか
112+
- キーワードの省略(部分的)
113+
- アプリのテーマカラーの指定(Base,Main,Accent)(サポート終了)
114+
- その他
115+
- (plt setting -> plt file)のボタン
116+
- (plt file -> image)のボタン
117+
118+
119+
## 今後の予定
120+
要望があれば積極的に取り入れます。
121+
上のやつからやるつもり。
122+
- 凡例の有無と位置の調整
123+
- グリッド
124+
- logscaleの指数表記
125+
- UI周りのコードの整理
126+
- カラーテピッカーのスペース改善
127+
- 矢印ボタンを右クリックでplt生成と画像生成を自動で続けて行う
128+
- 入力欄に大量の文字を入れるとはみ出る対策
129+
- データファイルのドラッグ&ドロップ
130+
- カラーテーマの完全削除
131+
- アプリの大きさを変えられるようにする
132+
- with linesとかの開くやつの閉じる機能
133+
- フォント指定
134+
- 複数pltファイル読み込み
135+
- グルーピング機能
136+
- ドキュメント作成...要る?
137+
- splot
138+
139+
140+
## 更新履歴
141+
#### v1.1.0 2023-04-30
142+
Siv3Dバージョンアップ (v0.6.6 → v0.6.9)
143+
pltファイルを編集可能に
144+
pltファイルの実行を公式機能で行えるように
145+
ライセンス更新
146+
plt Filesのreloadを削除
147+
Save asの拡張子選択でAll Filesを選択可能に
148+
カラーテーマ変更機能のサポート終了(今回以降追加の機能にカラーテーマは適用されない)
149+
150+
#### v1.0.0 2023-04-13
151+
初リリース
152+
内容は省略

pltGUI.sln

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.4.33205.214
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pltGUI", "pltGUI\pltGUI.vcxproj", "{9EED0104-C93E-418D-9749-4C795D4D47D5}"
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pltGUI", "pltGUI\pltGUI.vcxproj", "{D454C2E6-D2C3-4332-8884-D920142D4701}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|x64 = Debug|x64
1111
Release|x64 = Release|x64
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{9EED0104-C93E-418D-9749-4C795D4D47D5}.Debug|x64.ActiveCfg = Debug|x64
15-
{9EED0104-C93E-418D-9749-4C795D4D47D5}.Debug|x64.Build.0 = Debug|x64
16-
{9EED0104-C93E-418D-9749-4C795D4D47D5}.Release|x64.ActiveCfg = Release|x64
17-
{9EED0104-C93E-418D-9749-4C795D4D47D5}.Release|x64.Build.0 = Release|x64
14+
{D454C2E6-D2C3-4332-8884-D920142D4701}.Debug|x64.ActiveCfg = Debug|x64
15+
{D454C2E6-D2C3-4332-8884-D920142D4701}.Debug|x64.Build.0 = Debug|x64
16+
{D454C2E6-D2C3-4332-8884-D920142D4701}.Release|x64.ActiveCfg = Release|x64
17+
{D454C2E6-D2C3-4332-8884-D920142D4701}.Release|x64.Build.0 = Release|x64
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {69FA6E5B-1DB8-4EB4-973D-419CBA50966F}
23+
SolutionGuid = {3561CCE8-71D6-481E-A01D-99673DE695AA}
2424
EndGlobalSection
2525
EndGlobal
Binary file not shown.
358 KB
Binary file not shown.

pltGUI/App/loadsample.plt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set ylabel "loadsample"

pltGUI/Main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
void Main()
66
{
77
Window::SetTitle(U"pltGUI");
8+
addLicense();
89
LicenseManager::DisableDefaultTrigger();
910

1011
FontAsset::Register(U"main", 20);

pltGUI/pltGUI.vcxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313
<PropertyGroup Label="Globals">
1414
<VCProjectVersion>15.0</VCProjectVersion>
15-
<ProjectGuid>{9eed0104-c93e-418d-9749-4c795d4d47d5}</ProjectGuid>
15+
<ProjectGuid>{d454c2e6-d2c3-4332-8884-d920142d4701}</ProjectGuid>
1616
<Keyword>Win32Proj</Keyword>
1717
<RootNamespace>pltGUI</RootNamespace>
1818
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
@@ -49,16 +49,16 @@
4949
<IntDir>$(SolutionDir)Intermediate\$(ProjectName)\Debug\Intermediate\</IntDir>
5050
<TargetName>$(ProjectName)(debug)</TargetName>
5151
<LocalDebuggerWorkingDirectory>$(ProjectDir)App</LocalDebuggerWorkingDirectory>
52-
<IncludePath>$(SIV3D_0_6_6)\include;$(SIV3D_0_6_6)\include\ThirdParty;$(IncludePath)</IncludePath>
53-
<LibraryPath>$(SIV3D_0_6_6)\lib\Windows;$(LibraryPath)</LibraryPath>
52+
<IncludePath>$(SIV3D_0_6_9)\include;$(SIV3D_0_6_9)\include\ThirdParty;$(IncludePath)</IncludePath>
53+
<LibraryPath>$(SIV3D_0_6_9)\lib\Windows;$(LibraryPath)</LibraryPath>
5454
</PropertyGroup>
5555
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
5656
<LinkIncremental>false</LinkIncremental>
5757
<OutDir>$(SolutionDir)Intermediate\$(ProjectName)\Release\</OutDir>
5858
<IntDir>$(SolutionDir)Intermediate\$(ProjectName)\Release\Intermediate\</IntDir>
5959
<LocalDebuggerWorkingDirectory>$(ProjectDir)App</LocalDebuggerWorkingDirectory>
60-
<IncludePath>$(SIV3D_0_6_6)\include;$(SIV3D_0_6_6)\include\ThirdParty;$(IncludePath)</IncludePath>
61-
<LibraryPath>$(SIV3D_0_6_6)\lib\Windows;$(LibraryPath)</LibraryPath>
60+
<IncludePath>$(SIV3D_0_6_9)\include;$(SIV3D_0_6_9)\include\ThirdParty;$(IncludePath)</IncludePath>
61+
<LibraryPath>$(SIV3D_0_6_9)\lib\Windows;$(LibraryPath)</LibraryPath>
6262
</PropertyGroup>
6363
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
6464
<ClCompile>
@@ -318,8 +318,8 @@
318318
<ClInclude Include="plt_create.h" />
319319
<ClInclude Include="plt_setting.h" />
320320
<ClInclude Include="stdafx.h" />
321-
<ClInclude Include="ui_controller.h" />
322321
<ClInclude Include="ui_common.h" />
322+
<ClInclude Include="ui_controller.h" />
323323
<ClInclude Include="ui_plt_setting.h" />
324324
</ItemGroup>
325325
<ItemGroup>

pltGUI/pltGUI.vcxproj.filters

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -776,25 +776,25 @@
776776
<ClInclude Include="stdafx.h">
777777
<Filter>Header Files</Filter>
778778
</ClInclude>
779-
<ClInclude Include="plt_setting.h">
779+
<ClInclude Include="app_option.h">
780780
<Filter>Header Files</Filter>
781781
</ClInclude>
782-
<ClInclude Include="ui_plt_setting.h">
782+
<ClInclude Include="my_gui.h">
783783
<Filter>Header Files</Filter>
784784
</ClInclude>
785-
<ClInclude Include="ui_controller.h">
785+
<ClInclude Include="plt_create.h">
786786
<Filter>Header Files</Filter>
787787
</ClInclude>
788-
<ClInclude Include="ui_common.h">
788+
<ClInclude Include="plt_setting.h">
789789
<Filter>Header Files</Filter>
790790
</ClInclude>
791-
<ClInclude Include="plt_create.h">
791+
<ClInclude Include="ui_common.h">
792792
<Filter>Header Files</Filter>
793793
</ClInclude>
794-
<ClInclude Include="my_gui.h">
794+
<ClInclude Include="ui_controller.h">
795795
<Filter>Header Files</Filter>
796796
</ClInclude>
797-
<ClInclude Include="app_option.h">
797+
<ClInclude Include="ui_plt_setting.h">
798798
<Filter>Header Files</Filter>
799799
</ClInclude>
800800
</ItemGroup>

pltGUI/plt_create.h

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ void CreatePltFile(WholeSettingUI& whole, Array<GraphSettingUI>& graphs) {
3131
if (ws.logscale_y.b) writer << U"set logscale y";
3232
if (ws.sample.b) writer << U"set sample " << ws.sample.v.text;
3333

34+
35+
// 全体設定の最後
36+
if (ws.loadfile.b) writer << U"load \"" << ws.loadfile.v << U"\"";
37+
38+
3439
String command = U"";
3540
// 個別のグラフの書き込み
3641
for (auto i : step(graphs.size())) {
@@ -90,15 +95,5 @@ void CreatePltFile(WholeSettingUI& whole, Array<GraphSettingUI>& graphs) {
9095
/// @brief pltファイルを実行する。
9196
/// @brief 実行にかかる時間も特に停止しないので注意
9297
void executePltFile() {
93-
//system("result.plt");
94-
95-
//LPCSTR file = "C:\\path\\to\\file.txt"; //開くファイルのパス
96-
LPCWSTR operation = NULL; //"open"; //アクション(open、edit、printなど)
97-
LPCWSTR parameters = NULL; //パラメータ(任意)
98-
LPCWSTR directory = NULL; //作業ディレクトリ(既定値を使用する場合はNULL)
99-
int size = MultiByteToWideChar(CP_UTF8, 0, "result.plt", -1, NULL, 0);
100-
wchar_t* wstr = new wchar_t[size];
101-
MultiByteToWideChar(CP_UTF8, 0, "result.plt", -1, wstr, size);
102-
ShellExecute(NULL, operation, wstr, parameters, directory, SW_HIDE);
103-
delete[] wstr;
98+
System::LaunchFile(U"result.plt");
10499
}

pltGUI/plt_setting.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class WholeSetting {
3131
WithBool<void> logscale_x;
3232
WithBool<void> logscale_y;
3333
WithBool<TextEditState> sample;
34+
WithBool<FilePath> loadfile;
3435
};
3536

3637

0 commit comments

Comments
 (0)