update ui

This commit is contained in:
Giovanni-Josserand 2025-06-23 11:54:48 +02:00
parent 7d3f97fddd
commit ffa4cb0d1d
3 changed files with 728 additions and 53 deletions

View File

@ -10,7 +10,6 @@ MainWindow::MainWindow(QWidget *parent)
currentCharacter = c; currentCharacter = c;
characters.append(c); characters.append(c);
ui->ageLineEdit->setValidator(new QIntValidator(0, 999999, ui->ageLineEdit)); ui->ageLineEdit->setValidator(new QIntValidator(0, 999999, ui->ageLineEdit));
ui->topLeftFrame->setHidden(true);
} }
MainWindow::~MainWindow() MainWindow::~MainWindow()
@ -32,3 +31,13 @@ void MainWindow::on_actionEditer_triggered(){
edition=!edition; edition=!edition;
} }
void MainWindow::on_actionBlocNote_triggered(){
if(notePad){
//Menu notepad ouvert
}else{
//Menu notepad fermé
}
notePad=!notePad;
}

View File

@ -23,10 +23,13 @@ public:
private slots: private slots:
void on_actionEditer_triggered(); void on_actionEditer_triggered();
void on_actionBlocNote_triggered();
private: private:
Ui::MainWindow *ui; Ui::MainWindow *ui;
bool edition = false; bool edition = false;
bool notePad = false;
QString currentFile; QString currentFile;
QList<Character*> characters; QList<Character*> characters;
Character* currentCharacter; Character* currentCharacter;

View File

@ -17,13 +17,13 @@
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<widget class="QFrame" name="topFrame"> <widget class="QFrame" name="leftFrame">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>2</y>
<width>801</width> <width>450</width>
<height>191</height> <height>581</height>
</rect> </rect>
</property> </property>
<property name="frameShape"> <property name="frameShape">
@ -37,8 +37,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>450</width>
<height>191</height> <height>200</height>
</rect> </rect>
</property> </property>
<property name="frameShape"> <property name="frameShape">
@ -51,9 +51,9 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>150</x> <x>150</x>
<y>70</y> <y>32</y>
<width>63</width> <width>63</width>
<height>30</height> <height>20</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
@ -70,16 +70,16 @@
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string/> <string>ggdgdgggdggdg</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="nomLabel"> <widget class="QLabel" name="nomLabel">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>150</x> <x>150</x>
<y>20</y> <y>6</y>
<width>63</width> <width>63</width>
<height>30</height> <height>20</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
@ -90,9 +90,9 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>210</x> <x>210</x>
<y>20</y> <y>6</y>
<width>113</width> <width>113</width>
<height>30</height> <height>20</height>
</rect> </rect>
</property> </property>
</widget> </widget>
@ -100,20 +100,687 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>210</x> <x>210</x>
<y>70</y> <y>32</y>
<width>113</width> <width>113</width>
<height>30</height> <height>20</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="raceLabel">
<property name="geometry">
<rect>
<x>150</x>
<y>58</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Race</string>
</property>
</widget>
<widget class="QLabel" name="niveauLabel">
<property name="geometry">
<rect>
<x>150</x>
<y>110</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Niveau</string>
</property>
</widget>
<widget class="QLabel" name="classeLabel">
<property name="geometry">
<rect>
<x>150</x>
<y>84</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Classe</string>
</property>
</widget>
<widget class="QLabel" name="sexeLabel">
<property name="geometry">
<rect>
<x>150</x>
<y>136</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Sexe</string>
</property>
</widget>
<widget class="QLabel" name="tailleLabel">
<property name="geometry">
<rect>
<x>150</x>
<y>162</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Taille</string>
</property>
</widget>
<widget class="QLineEdit" name="nomLineEdit_2">
<property name="geometry">
<rect>
<x>210</x>
<y>58</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="nomLineEdit_3">
<property name="geometry">
<rect>
<x>210</x>
<y>84</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="nomLineEdit_4">
<property name="geometry">
<rect>
<x>210</x>
<y>110</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="nomLineEdit_5">
<property name="geometry">
<rect>
<x>210</x>
<y>136</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="nomLineEdit_6">
<property name="geometry">
<rect>
<x>210</x>
<y>162</y>
<width>113</width>
<height>20</height>
</rect> </rect>
</property> </property>
</widget> </widget>
</widget> </widget>
<widget class="QFrame" name="bottomLeftFrame">
<property name="geometry">
<rect>
<x>0</x>
<y>198</y>
<width>450</width>
<height>371</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>10</x>
<y>220</y>
<width>131</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Mentir, convaincre</string>
</property>
</widget>
<widget class="QLabel" name="label_12">
<property name="geometry">
<rect>
<x>271</x>
<y>255</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Soigner</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>10</x>
<y>115</y>
<width>171</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Connaissance de la nature</string>
</property>
</widget>
<widget class="QLabel" name="label_14">
<property name="geometry">
<rect>
<x>10</x>
<y>290</y>
<width>71</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Perception</string>
</property>
</widget>
<widget class="QLabel" name="label_11">
<property name="geometry">
<rect>
<x>271</x>
<y>325</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Voler</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>10</x>
<y>150</y>
<width>181</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Connaissance des secrets</string>
</property>
</widget>
<widget class="QLabel" name="label_20">
<property name="geometry">
<rect>
<x>271</x>
<y>220</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Réflexes</string>
</property>
</widget>
<widget class="QLabel" name="label_17">
<property name="geometry">
<rect>
<x>10</x>
<y>45</y>
<width>131</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Combat rapproché</string>
</property>
</widget>
<widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>271</x>
<y>185</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Intimider</string>
</property>
</widget>
<widget class="QLabel" name="label_19">
<property name="geometry">
<rect>
<x>271</x>
<y>150</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Esquiver</string>
</property>
</widget>
<widget class="QLabel" name="label_10">
<property name="geometry">
<rect>
<x>271</x>
<y>290</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Survie</string>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>10</x>
<y>255</y>
<width>101</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Courir, sauter</string>
</property>
</widget>
<widget class="QLabel" name="label_18">
<property name="geometry">
<rect>
<x>271</x>
<y>10</y>
<width>81</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Psychologie</string>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<width>141</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Combat à distance</string>
</property>
</widget>
<widget class="QLabel" name="label_9">
<property name="geometry">
<rect>
<x>271</x>
<y>80</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Droit</string>
</property>
</widget>
<widget class="QLabel" name="label_15">
<property name="geometry">
<rect>
<x>271</x>
<y>115</y>
<width>63</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Piloter</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>131</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Artisanat, construire</string>
</property>
</widget>
<widget class="QLabel" name="label_16">
<property name="geometry">
<rect>
<x>10</x>
<y>325</y>
<width>71</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Lire, écrire</string>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>10</x>
<y>185</y>
<width>131</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Serrures et pièges</string>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>271</x>
<y>45</y>
<width>111</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Discrétion</string>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_2">
<property name="geometry">
<rect>
<x>191</x>
<y>10</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_3">
<property name="geometry">
<rect>
<x>191</x>
<y>45</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_4">
<property name="geometry">
<rect>
<x>191</x>
<y>80</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_5">
<property name="geometry">
<rect>
<x>191</x>
<y>115</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_6">
<property name="geometry">
<rect>
<x>191</x>
<y>150</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_7">
<property name="geometry">
<rect>
<x>191</x>
<y>185</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_8">
<property name="geometry">
<rect>
<x>191</x>
<y>220</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_9">
<property name="geometry">
<rect>
<x>191</x>
<y>255</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_10">
<property name="geometry">
<rect>
<x>191</x>
<y>290</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_11">
<property name="geometry">
<rect>
<x>191</x>
<y>325</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_12">
<property name="geometry">
<rect>
<x>362</x>
<y>10</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_13">
<property name="geometry">
<rect>
<x>362</x>
<y>45</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_14">
<property name="geometry">
<rect>
<x>362</x>
<y>80</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_15">
<property name="geometry">
<rect>
<x>362</x>
<y>115</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_16">
<property name="geometry">
<rect>
<x>362</x>
<y>150</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_17">
<property name="geometry">
<rect>
<x>362</x>
<y>185</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_18">
<property name="geometry">
<rect>
<x>362</x>
<y>220</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_19">
<property name="geometry">
<rect>
<x>362</x>
<y>255</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_20">
<property name="geometry">
<rect>
<x>362</x>
<y>290</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
<widget class="QSpinBox" name="charismeSpinBox_21">
<property name="geometry">
<rect>
<x>362</x>
<y>325</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
</widget>
</widget>
<widget class="QFrame" name="rightFrame">
<property name="geometry">
<rect>
<x>450</x>
<y>2</y>
<width>350</width>
<height>581</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<widget class="QFrame" name="topRightFrame"> <widget class="QFrame" name="topRightFrame">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>400</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>350</width>
<height>191</height> <height>200</height>
</rect> </rect>
</property> </property>
<property name="frameShape"> <property name="frameShape">
@ -177,7 +844,7 @@
<widget class="QLabel" name="pvLabel"> <widget class="QLabel" name="pvLabel">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>260</x> <x>240</x>
<y>116</y> <y>116</y>
<width>91</width> <width>91</width>
<height>20</height> <height>20</height>
@ -256,7 +923,7 @@
<widget class="QSpinBox" name="pvSpinBox"> <widget class="QSpinBox" name="pvSpinBox">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>260</x> <x>240</x>
<y>80</y> <y>80</y>
<width>70</width> <width>70</width>
<height>30</height> <height>30</height>
@ -264,38 +931,22 @@
</property> </property>
</widget> </widget>
</widget> </widget>
</widget> <widget class="QFrame" name="botFrame">
<widget class="QFrame" name="midFrame"> <property name="geometry">
<property name="geometry"> <rect>
<rect> <x>0</x>
<x>0</x> <y>198</y>
<y>190</y> <width>350</width>
<width>801</width> <height>371</height>
<height>191</height> </rect>
</rect> </property>
</property> <property name="frameShape">
<property name="frameShape"> <enum>QFrame::Shape::StyledPanel</enum>
<enum>QFrame::Shape::StyledPanel</enum> </property>
</property> <property name="frameShadow">
<property name="frameShadow"> <enum>QFrame::Shadow::Raised</enum>
<enum>QFrame::Shadow::Raised</enum> </property>
</property> </widget>
</widget>
<widget class="QFrame" name="botFrame">
<property name="geometry">
<rect>
<x>0</x>
<y>380</y>
<width>801</width>
<height>191</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
</widget> </widget>
</widget> </widget>
<widget class="QMenuBar" name="menubar"> <widget class="QMenuBar" name="menubar">
@ -343,6 +994,7 @@
<bool>false</bool> <bool>false</bool>
</attribute> </attribute>
<addaction name="actionEditer"/> <addaction name="actionEditer"/>
<addaction name="actionBlocNote"/>
</widget> </widget>
<action name="actionOuvrir_une_fiche"> <action name="actionOuvrir_une_fiche">
<property name="text"> <property name="text">
@ -400,6 +1052,17 @@
<enum>QAction::MenuRole::NoRole</enum> <enum>QAction::MenuRole::NoRole</enum>
</property> </property>
</action> </action>
<action name="actionBlocNote">
<property name="icon">
<iconset theme="QIcon::ThemeIcon::DocumentPageSetup"/>
</property>
<property name="text">
<string>BlocNote</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>