Changeset 11
- Timestamp:
- Nov 15, 2012, 6:44:18 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Dochazka.lpi
r10 r11 89 89 </Item4> 90 90 </RequiredPackages> 91 <Units Count="1 0">91 <Units Count="11"> 92 92 <Unit0> 93 93 <Filename Value="Dochazka.lpr"/> … … 154 154 <UnitName Value="UDataView"/> 155 155 </Unit9> 156 <Unit10> 157 <Filename Value="Forms/UFormConnection.pas"/> 158 <IsPartOfProject Value="True"/> 159 <ComponentName Value="FormConnection"/> 160 <ResourceBaseClass Value="Form"/> 161 <UnitName Value="UFormConnection"/> 162 </Unit10> 156 163 </Units> 157 164 </ProjectOptions> -
trunk/Dochazka.lpr
r9 r11 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, UFormMain, UCore, UAttendance, UPersistentForm, CoolWeb, Common, 11 CoolTranslator, UFormSetting, SysUtils, UFormList, UFormEdit, UDataView 11 CoolTranslator, UFormSetting, SysUtils, UFormList, UFormEdit, UDataView, 12 UFormConnection 12 13 { you can add units after this }; 13 14 … … 31 32 Application.CreateForm(TFormMain, FormMain); 32 33 Application.CreateForm(TFormSetting, FormSetting); 34 Application.CreateForm(TFormConnection, FormConnection); 33 35 Application.Run; 34 36 end. -
trunk/Forms/UFormMain.lfm
r10 r11 1 1 object FormMain: TFormMain 2 Left = 3 772 Left = 306 3 3 Height = 455 4 Top = 1 384 Top = 127 5 5 Width = 733 6 6 Caption = 'Attendance' 7 ClientHeight = 43 07 ClientHeight = 436 8 8 ClientWidth = 733 9 9 Menu = MainMenu1 … … 16 16 object StatusBar1: TStatusBar 17 17 Left = 0 18 Height = 2 119 Top = 4 0918 Height = 20 19 Top = 416 20 20 Width = 733 21 21 Panels = <> … … 39 39 object PageControl1: TPageControl 40 40 Left = 0 41 Height = 3 8341 Height = 390 42 42 Top = 26 43 43 Width = 733 … … 52 52 object MenuItemSystem: TMenuItem 53 53 Caption = 'System' 54 object MenuItem3: TMenuItem 55 Caption = 'Database' 56 object MenuItem4: TMenuItem 57 Action = AConnectionSettings 58 end 59 end 54 60 object MenuItem1: TMenuItem 55 61 Action = ASetting … … 73 79 Hint = 'Show global setting' 74 80 OnExecute = ASettingExecute 81 ShortCut = 120 82 end 83 object AConnectionSettings: TAction 84 Caption = 'Connection settings' 85 OnExecute = AConnectionSettingsExecute 86 ShortCut = 121 75 87 end 76 88 end -
trunk/Forms/UFormMain.lrt
r10 r11 1 1 TFORMMAIN.CAPTION=Attendance 2 2 TFORMMAIN.MENUITEMSYSTEM.CAPTION=System 3 TFORMMAIN.MENUITEM3.CAPTION=Database 3 4 TFORMMAIN.AEXIT.CAPTION=Exit 4 5 TFORMMAIN.AEXIT.HINT=Close application 5 6 TFORMMAIN.ASETTING.CAPTION=Setting 6 7 TFORMMAIN.ASETTING.HINT=Show global setting 8 TFORMMAIN.ACONNECTIONSETTINGS.CAPTION=Connection settings -
trunk/Forms/UFormMain.pas
r10 r11 14 14 15 15 TFormMain = class(TForm) 16 AConnectionSettings: TAction; 16 17 ASetting: TAction; 17 18 AExit: TAction; … … 20 21 MainMenu1: TMainMenu; 21 22 MenuItem1: TMenuItem; 23 MenuItem3: TMenuItem; 24 MenuItem4: TMenuItem; 22 25 MenuItemSystem: TMenuItem; 23 26 MenuItem2: TMenuItem; … … 26 29 ToolBar1: TToolBar; 27 30 ToolButton1: TToolButton; 31 procedure AConnectionSettingsExecute(Sender: TObject); 28 32 procedure AExitExecute(Sender: TObject); 29 33 procedure ASettingExecute(Sender: TObject); … … 47 51 48 52 uses 49 UCore, UFormSetting ;53 UCore, UFormSetting, UFormConnection; 50 54 51 55 {$R *.lfm} … … 108 112 procedure TFormMain.AExitExecute(Sender: TObject); 109 113 begin 110 Exit; 114 Close; 115 end; 116 117 procedure TFormMain.AConnectionSettingsExecute(Sender: TObject); 118 begin 119 FormConnection.LoadFromDatabase(Core.Database); 120 if FormConnection.ShowModal = mrOk then begin 121 FormConnection.SaveToDatabase(Core.Database); 122 Core.Connect; 123 end; 111 124 end; 112 125 -
trunk/Languages/Dochazka.cs.po
r10 r11 5 5 "POT-Creation-Date: \n" 6 6 "PO-Revision-Date: \n" 7 "Last-Translator: Chronos<robie@centrum.cz>\n"7 "Last-Translator: JiÅà Hajda <robie@centrum.cz>\n" 8 8 "Language-Team: \n" 9 9 "MIME-Version: 1.0\n" … … 56 56 msgstr "NastavenÃ" 57 57 58 #: tformconnection.buttoncancel.caption 59 msgctxt "tformconnection.buttoncancel.caption" 60 msgid "Cancel" 61 msgstr "ZruÅ¡it" 62 63 #: tformconnection.buttonconnect.caption 64 msgid "Connect" 65 msgstr "PÅipojit" 66 67 #: tformconnection.caption 68 msgctxt "tformconnection.caption" 69 msgid "Connection settings" 70 msgstr "Nastavenà pÅipojenÃ" 71 72 #: tformconnection.label1.caption 73 #| msgid "Hostname:" 74 msgid "Host:" 75 msgstr "PoÄÃtaÄ:" 76 77 #: tformconnection.label2.caption 78 msgid "User:" 79 msgstr "UÅŸivatel:" 80 81 #: tformconnection.label3.caption 82 msgid "Password:" 83 msgstr "Heslo:" 84 85 #: tformconnection.label4.caption 86 msgid "Schema:" 87 msgstr "Schéma:" 88 58 89 #: tformedit.buttoncancel.caption 90 msgctxt "tformedit.buttoncancel.caption" 59 91 msgid "Cancel" 60 92 msgstr "ZruÅ¡it" … … 134 166 msgstr "PoÄet poloÅŸek: %s" 135 167 168 #: tformmain.aconnectionsettings.caption 169 msgctxt "tformmain.aconnectionsettings.caption" 170 msgid "Connection settings" 171 msgstr "Nastavenà pÅipojenÃ" 172 136 173 #: tformmain.aexit.caption 137 174 msgctxt "tformmain.aexit.caption" … … 157 194 msgstr "Docházka" 158 195 196 #: tformmain.menuitem3.caption 197 msgid "Database" 198 msgstr "Databáze" 199 159 200 #: tformmain.menuitemsystem.caption 160 201 msgctxt "tformmain.menuitemsystem.caption" … … 299 340 msgid "Year" 300 341 msgstr "Rok" 301 -
trunk/Languages/Dochazka.po
r10 r11 47 47 msgstr "" 48 48 49 #: tformconnection.buttoncancel.caption 50 msgctxt "TFORMCONNECTION.BUTTONCANCEL.CAPTION" 51 msgid "Cancel" 52 msgstr "" 53 54 #: tformconnection.buttonconnect.caption 55 msgid "Connect" 56 msgstr "" 57 58 #: tformconnection.caption 59 msgctxt "tformconnection.caption" 60 msgid "Connection settings" 61 msgstr "" 62 63 #: tformconnection.label1.caption 64 msgid "Host:" 65 msgstr "" 66 67 #: tformconnection.label2.caption 68 msgid "User:" 69 msgstr "" 70 71 #: tformconnection.label3.caption 72 msgid "Password:" 73 msgstr "" 74 75 #: tformconnection.label4.caption 76 msgid "Schema:" 77 msgstr "" 78 49 79 #: tformedit.buttoncancel.caption 80 msgctxt "tformedit.buttoncancel.caption" 50 81 msgid "Cancel" 51 82 msgstr "" … … 124 155 msgstr "" 125 156 157 #: tformmain.aconnectionsettings.caption 158 msgctxt "TFORMMAIN.ACONNECTIONSETTINGS.CAPTION" 159 msgid "Connection settings" 160 msgstr "" 161 126 162 #: tformmain.aexit.caption 127 163 msgctxt "TFORMMAIN.AEXIT.CAPTION" … … 147 183 msgstr "" 148 184 185 #: tformmain.menuitem3.caption 186 msgid "Database" 187 msgstr "" 188 149 189 #: tformmain.menuitemsystem.caption 150 190 msgctxt "TFORMMAIN.MENUITEMSYSTEM.CAPTION"
Note:
See TracChangeset
for help on using the changeset viewer.