aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2024-05-13 02:31:57 +0530
committerIndrajith K L2024-05-13 02:31:57 +0530
commit68372156a54c1ce6e0582ad745923397cb6f6d48 (patch)
treecae9f6a62576c713dbcdf163b257d6ac01a46e99
parente32c474ae1f43aae3f77bb18fdb57910646de0e3 (diff)
downloadcsv_editor-master.tar.gz
csv_editor-master.tar.bz2
csv_editor-master.zip
Minor ChangesHEADmaster
* Updates Readme * Updates Window Titles
-rw-r--r--CSV Editor/CSV Editor.vcxproj2
-rw-r--r--CSV Editor/CSV Editor.vcxproj.filters6
-rw-r--r--CSV Editor/src/main.cpp6
-rw-r--r--README.md2
-rw-r--r--screenshot.pngbin0 -> 51476 bytes
5 files changed, 4 insertions, 12 deletions
diff --git a/CSV Editor/CSV Editor.vcxproj b/CSV Editor/CSV Editor.vcxproj
index 79866f5..41b2c73 100644
--- a/CSV Editor/CSV Editor.vcxproj
+++ b/CSV Editor/CSV Editor.vcxproj
@@ -141,7 +141,6 @@
<ClCompile Include="vendor\ImGui\imgui.cpp" />
<ClCompile Include="vendor\ImGui\imgui_demo.cpp" />
<ClCompile Include="vendor\ImGui\imgui_draw.cpp" />
- <ClCompile Include="vendor\ImGui\imgui_filedialog.cpp" />
<ClCompile Include="vendor\ImGui\imgui_tables.cpp" />
<ClCompile Include="vendor\ImGui\imgui_widgets.cpp" />
</ItemGroup>
@@ -151,7 +150,6 @@
<ClInclude Include="vendor\ImGui\backends\imgui_impl_win32.h" />
<ClInclude Include="vendor\ImGui\imconfig.h" />
<ClInclude Include="vendor\ImGui\imgui.h" />
- <ClInclude Include="vendor\ImGui\imgui_filedialog.h" />
<ClInclude Include="vendor\ImGui\imgui_internal.h" />
<ClInclude Include="vendor\ImGui\imstb_rectpack.h" />
<ClInclude Include="vendor\ImGui\imstb_textedit.h" />
diff --git a/CSV Editor/CSV Editor.vcxproj.filters b/CSV Editor/CSV Editor.vcxproj.filters
index e489d0b..a9113d1 100644
--- a/CSV Editor/CSV Editor.vcxproj.filters
+++ b/CSV Editor/CSV Editor.vcxproj.filters
@@ -39,9 +39,6 @@
<ClCompile Include="vendor\ImGui\backends\imgui_impl_win32.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="vendor\ImGui\imgui_filedialog.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="vendor\ImGui\imconfig.h">
@@ -71,8 +68,5 @@
<ClInclude Include="src\rapidcsv.h">
<Filter>Header Files</Filter>
</ClInclude>
- <ClInclude Include="vendor\ImGui\imgui_filedialog.h">
- <Filter>Header Files</Filter>
- </ClInclude>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/CSV Editor/src/main.cpp b/CSV Editor/src/main.cpp
index d8cd2d5..cb07c53 100644
--- a/CSV Editor/src/main.cpp
+++ b/CSV Editor/src/main.cpp
@@ -40,9 +40,9 @@ int main(int, char**)
std::vector<std::string> headers = getCSVHeader();
std::vector<std::vector<Cell>> data = getCSVData();
- WNDCLASSEXW wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"ImGui Example", nullptr };
+ WNDCLASSEXW wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"CSV Editor", nullptr };
::RegisterClassExW(&wc);
- HWND hwnd = ::CreateWindowW(wc.lpszClassName, L"Dear ImGui DirectX9 Example", WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, nullptr, nullptr, wc.hInstance, nullptr);
+ HWND hwnd = ::CreateWindowW(wc.lpszClassName, L"Indrajith's CSV Editor", WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, nullptr, nullptr, wc.hInstance, nullptr);
// Initialize Direct3D
if (!CreateDeviceD3D(hwnd))
@@ -113,7 +113,7 @@ int main(int, char**)
{
for (const auto& header : headers) {
//std::cout << header << std::endl;
- ImGui::TableSetupColumn(header.c_str(), ImGuiTableColumnFlags_WidthFixed);
+ ImGui::TableSetupColumn(header.c_str(), ImGuiTableColumnFlags_NoClip);
}
ImGui::TableHeadersRow();
for (size_t i = 0; i < data.size(); i++) {
diff --git a/README.md b/README.md
index 6cfdf66..ab720e5 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
## CSV Editor
A Basic CSV Editor using ImGui + DirectX9
-
+![CSV Editor](screenshot.png "CSV Editor")
### WIP
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><span property="dct:title">Indrajith's CSV Editor</span> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://indrajith.dev/">Indrajith K L</a> is licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1" alt=""></a></p> \ No newline at end of file
diff --git a/screenshot.png b/screenshot.png
new file mode 100644
index 0000000..46d65c9
--- /dev/null
+++ b/screenshot.png
Binary files differ