mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 07:40:42 +01:00
* Added some constant Move mass on a new submenu of Physics Added universal translation for a future easter-egg * Added lenght constant menu Added radiuses and distances submenu to lenght Added Faraday Constant * Constant Added 16 usual pKa couple values * Added some constant ( stefan-boltzmann, water triple point, wien, atmospheric pressure, vacuum impedance, bohr magneton, nuclear magneton, muon mass, atomic mass unit, bohr radius ) Missing hungarian translation * Planck update added some plancks units ( fondamentals units and energy/power units ) * Changed the Physics constants submenu Here's the new pattern 1. Fundamental Constants => for the 5 fundamental constants 2. Electromagnetism => 3 constants remain in this submenu 3. Nuclear and Atomic Constnats => bohr magneton & nuclear magneton, bohr radius and particle mass submenu 4. Thermodynamics => this section is mostly unchanged 5. Gravitation => same as before 6. Speed => 2 submenus one for sound speeds and one for escape velocities 7. Mass => the mass of earth/sun/moon 8. Length => 2 submenus, one for radius of earth/sun/moon and one for distances earth-moon and earth-sun 9. Planck Units => The natural system of units * Units Added steradian, lumen and lux to the avaliables units Warning steradian is a new fundamental units ( definition is nullptr ) * Remove debugging and includes * Added 15 constants * Update apps/toolbox.fr.i18n Co-Authored-By: Quentin <quentin.guidee@gmail.com> * Update apps/toolbox.fr.i18n Co-Authored-By: Quentin <quentin.guidee@gmail.com> * Corrected french and english * Added hu translation Correct de translation added combining double acute accent * q * Revert "q" This reverts commit 959786ae504ddf106249a3f799929471eecb8708. Co-authored-by: Quentin <quentin.guidee@gmail.com>
75 lines
2.5 KiB
C++
75 lines
2.5 KiB
C++
#include "contributors_controller.h"
|
|
#include <assert.h>
|
|
|
|
namespace Settings {
|
|
|
|
ContributorsController::ContributorsController(Responder * parentResponder) :
|
|
GenericSubController(parentResponder)
|
|
{
|
|
for (int i = 0; i < k_totalNumberOfCell; i++) {
|
|
m_cells[i].setMessageFont(KDFont::LargeFont);
|
|
m_cells[i].setAccessoryFont(KDFont::SmallFont);
|
|
m_cells[i].setAccessoryTextColor(Palette::SecondaryText);
|
|
}
|
|
}
|
|
|
|
bool ContributorsController::handleEvent(Ion::Events::Event event) {
|
|
return GenericSubController::handleEvent(event);
|
|
}
|
|
|
|
HighlightCell * ContributorsController::reusableCell(int index, int type) {
|
|
assert(type == 0);
|
|
assert(index >= 0 && index < k_totalNumberOfCell);
|
|
return &m_cells[index];
|
|
}
|
|
|
|
int ContributorsController::reusableCellCount(int type) {
|
|
assert(type == 0);
|
|
return k_totalNumberOfCell;
|
|
}
|
|
|
|
constexpr static int s_numberOfDevelopers = 11;
|
|
constexpr static I18n::Message s_developersUsernames[s_numberOfDevelopers] = {
|
|
I18n::Message::PQuentinGuidee,
|
|
I18n::Message::PDannySimmons,
|
|
I18n::Message::PJoachimLeFournis,
|
|
I18n::Message::PJeanBaptisteBoric,
|
|
I18n::Message::PMaximeFriess,
|
|
I18n::Message::PDavid,
|
|
I18n::Message::PDamienNicolet,
|
|
I18n::Message::PEvannDreumont,
|
|
I18n::Message::PSzaboLevente,
|
|
I18n::Message::PVenceslasDuet,
|
|
I18n::Message::PCharlotteThomas,
|
|
};
|
|
|
|
constexpr static int s_numberOfBetaTesters = 4;
|
|
|
|
constexpr static I18n::Message s_betaTestersUsernames[s_numberOfBetaTesters] = {
|
|
I18n::Message::PCyprienMejat,
|
|
I18n::Message::PTimeoArnouts,
|
|
I18n::Message::PLouisC,
|
|
I18n::Message::PLelahelHideux,
|
|
};
|
|
|
|
void ContributorsController::willDisplayCellForIndex(HighlightCell * cell, int index) {
|
|
MessageTableCellWithBuffer * myTextCell = (MessageTableCellWithBuffer *)cell;
|
|
if (index == 0) {
|
|
myTextCell->setAccessoryText("");
|
|
myTextCell->setTextColor(KDColor::RGB24(0xC03535));
|
|
} else if (index > 0 && index <= s_numberOfDevelopers) {
|
|
myTextCell->setAccessoryText(I18n::translate(s_developersUsernames[index - 1]));
|
|
myTextCell->setTextColor(Palette::PrimaryText);
|
|
} else if (index == s_numberOfDevelopers + 1) {
|
|
myTextCell->setAccessoryText("");
|
|
myTextCell->setTextColor(KDColor::RGB24(0x1ABC9A));
|
|
} else {
|
|
myTextCell->setAccessoryText(I18n::translate(s_betaTestersUsernames[index - 2 - s_numberOfDevelopers]));
|
|
myTextCell->setTextColor(Palette::PrimaryText);
|
|
}
|
|
myTextCell->setAccessoryTextColor(Palette::SecondaryText);
|
|
GenericSubController::willDisplayCellForIndex(cell, index);
|
|
}
|
|
|
|
}
|