Skip to content

Commit

Permalink
[RFR] : Refactor the account pane view
Browse files Browse the repository at this point in the history
[ADD] : Add a proto Buy/Sell Pane
  • Loading branch information
aiekick committed Jun 9, 2024
1 parent 88d94f4 commit 98b5ec2
Show file tree
Hide file tree
Showing 31 changed files with 1,099 additions and 1,463 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
- name: upload artifact
uses: actions/upload-artifact@v1
with:
name: CashMe_Darwin_x32.app
path: bin/CashMe_Darwin_x32.app
name: CashMe_Darwin_x32
path: bin/CashMe_Darwin_x32
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
CashMe is a Money Manager.

The features are :
- Bank statement imports based on plugins
- Can show Tranactions, with filtering
- Can Update Once/All Transactions
- Can Delete Once/All Transactions
- Can display categories / operations per transactions
* Bank statement imports based on plugins
* Can show Tranactions, with filtering
* Can Update Once/All Transactions
* Can Delete Once/All Transactions
* Can display categories / operations per transactions

THe available plugins are :
- LCL : Can import ofc and pdf files
The available plugins are :
* LCL : Can import ofc and pdf files

## How to Build :

Expand Down
2 changes: 1 addition & 1 deletion apis/CashMePluginApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct PluginPane : public ILayoutPane {
bool DrawOverlays(const uint32_t& /*vCurrentFrame*/, const ImRect& /*vRect*/, ImGuiContext* /*vContextPtr*/, void* /*vUserDatas*/) override {
return false;
}
bool DrawDialogsAndPopups(const uint32_t& /*vCurrentFrame*/, const ImVec2& /*vMaxSize*/, ImGuiContext* /*vContextPtr*/, void* /*vUserDatas*/) override {
bool DrawDialogsAndPopups(const uint32_t& /*vCurrentFrame*/, const ImRect& /*vRect*/, ImGuiContext* /*vContextPtr*/, void* /*vUserDatas*/) override {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion apis/ILayoutPane.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ILayoutPane {
virtual bool DrawPanes(const uint32_t& vCurrentFrame, bool* vOpened, ImGuiContext* vContextPt, void* vUserDatas) = 0;
virtual bool DrawWidgets(const uint32_t& vCurrentFrame, ImGuiContext* vContextPtr, void* vUserDatas) = 0;
virtual bool DrawOverlays(const uint32_t& vCurrentFrame, const ImRect& vRect, ImGuiContext* vContextPtr, void* vUserDatas) = 0;
virtual bool DrawDialogsAndPopups(const uint32_t& vCurrentFrame, const ImVec2& vMaxSize, ImGuiContext* vContextPtr, void* vUserDatas) = 0;
virtual bool DrawDialogsAndPopups(const uint32_t& vCurrentFrame, const ImRect& vRect, ImGuiContext* vContextPtr, void* vUserDatas) = 0;

// if for any reason the pane must be hidden temporary, the user can control this here
virtual bool CanBeDisplayed() = 0;
Expand Down
4 changes: 2 additions & 2 deletions plugins/LCLBroker/src/Headers/LCLBrokerBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define LCLBroker_Prefix "LCLBroker"
#define LCLBroker_BuildNumber 237
#define LCLBroker_BuildNumber 242
#define LCLBroker_MinorNumber 0
#define LCLBroker_MajorNumber 0
#define LCLBroker_BuildId "0.0.237"
#define LCLBroker_BuildId "0.0.242"
13 changes: 6 additions & 7 deletions src/Backend/MainBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <Panes/ConsolePane.h>

#include <Models/DataBase.h>
#include <Models/DataBrokers.h>

#include <Systems/SettingsDialog.h>

Expand Down Expand Up @@ -244,7 +243,7 @@ void MainBackend::m_RenderOffScreen() {

void MainBackend::m_MainLoop() {
int display_w, display_h;
ImVec2 pos, size;
ImRect viewRect;
while (!glfwWindowShouldClose(m_MainWindowPtr)) {
ProjectFile::Instance()->NewFrame();

Expand All @@ -264,11 +263,13 @@ void MainBackend::m_MainLoop() {

ImGuiViewport* viewport = ImGui::GetMainViewport();
if (viewport) {
pos = viewport->WorkPos;
size = viewport->WorkSize;
viewRect.Min = viewport->WorkPos;
viewRect.Max = viewRect.Min + viewport->WorkSize;
} else {
viewRect.Max = ImVec2((float)display_w, (float)display_h);
}

MainFrontend::Instance()->Display(m_CurrentFrame, pos, size);
MainFrontend::Instance()->Display(m_CurrentFrame, viewRect);

ImGui::Render();

Expand Down Expand Up @@ -460,11 +461,9 @@ void MainBackend::m_InitPlugins() {
}

void MainBackend::m_InitModels() {
DataBrokers::Instance()->init();
}

void MainBackend::m_UnitModels() {
DataBrokers::Instance()->unit();
}

void MainBackend::m_UnitPlugins() {
Expand Down
291 changes: 0 additions & 291 deletions src/Frontend/Components/CodeEditor.cpp

This file was deleted.

Loading

0 comments on commit 98b5ec2

Please sign in to comment.