Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Apply automatic percent formatting#65

Draft
bitigchi wants to merge 1 commit intojackburton79:mainfrom
bitigchi:percent-i18n
Draft

Apply automatic percent formatting#65
bitigchi wants to merge 1 commit intojackburton79:mainfrom
bitigchi:percent-i18n

Conversation

@bitigchi
Copy link
Contributor

WIP, more like stuck.

  • Currently able to display automatic formatting, however entering manual values causes back and forth refreshes and flickers
  • Initial values start from 0?

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

fSizeTextControl(NULL),
fTextModificationRunner(NULL),
fWhat(message->what)
fWhat(message->what),

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule

MISRA 12.3 rule
#include <FilePanel.h>
#include <LayoutBuilder.h>
#include <MessageRunner.h>
#include <NumberFormat.h>

Check warning

Code scanning / Cppcheck (reported by Codacy)

Include file: <NumberFormat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Include file: <NumberFormat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
uint32 flags = B_NAVIGABLE | B_WILL_DRAW
| B_FRAME_EVENTS);
bool isPercent = false, thumb_style thumbType = B_BLOCK_THUMB,
uint32 flags = B_NAVIGABLE | B_WILL_DRAW | B_FRAME_EVENTS);

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.8 rule

MISRA 17.8 rule
BMessageRunner* fTextModificationRunner;
BNumberFormat fNumberFormat;
uint32 fWhat;
bool fIsPercent;

Check warning

Code scanning / Cppcheck (reported by Codacy)

class member 'SliderTextControl::fIsPercent' is never used.

class member 'SliderTextControl::fIsPercent' is never used.
#define SLIDERTEXTCONTROL_H


#include <NumberFormat.h>

Check warning

Code scanning / Cppcheck (reported by Codacy)

Include file: <NumberFormat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Include file: <NumberFormat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
thumb_style thumbType = B_BLOCK_THUMB,
uint32 flags = B_NAVIGABLE | B_WILL_DRAW
| B_FRAME_EVENTS);
bool isPercent = false, thumb_style thumbType = B_BLOCK_THUMB,

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.8 rule

MISRA 17.8 rule
SliderTextControl(const char* name, const char* label,
BMessage* message, int32 minValue,
int32 maxValue, int32 stepValue = 1,
BMessage* message, int32 minValue, int32 maxValue, int32 stepValue = 1,

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.8 rule

MISRA 17.8 rule
@jackburton79
Copy link
Owner

Will have a look

@jackburton79
Copy link
Owner

I managed to test and there are some issues, in fact.
I'll try to see if I can fix it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants