mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
dc9f782ba5
commit
4a1c627474
2823 changed files with 619073 additions and 0 deletions
17
uppdev/Jims/Jims.h
Normal file
17
uppdev/Jims/Jims.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef _Jims_Jims_h
|
||||
#define _Jims_Jims_h
|
||||
|
||||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
#define LAYOUTFILE <Jims/Jims.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
|
||||
|
||||
class Jims : public WithJimsLayout<TopWindow> {
|
||||
public:
|
||||
typedef Jims CLASSNAME;
|
||||
Jims();
|
||||
};
|
||||
|
||||
#endif
|
||||
4
uppdev/Jims/Jims.lay
Normal file
4
uppdev/Jims/Jims.lay
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
LAYOUT(JimsLayout, 200, 100)
|
||||
|
||||
END_LAYOUT
|
||||
12
uppdev/Jims/Jims.upp
Normal file
12
uppdev/Jims/Jims.upp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
"Jims.h"
|
||||
, main.cpp
|
||||
, "Jims.lay"
|
||||
|
||||
;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
64
uppdev/Jims/Jims_Medical.h
Normal file
64
uppdev/Jims/Jims_Medical.h
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
#ifndef _Jims_Medical_Jims_Medical_h
|
||||
#define _Jims_Medical_Jims_Medical_h
|
||||
|
||||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
#define LAYOUTFILE <Jims_Medical/Jims_Medical.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
|
||||
|
||||
class Jims_Medical : public WithJims_MedicalLayout<TopWindow> {
|
||||
MenuBar menu;
|
||||
StatusBar status;
|
||||
|
||||
void Save_to_Text();
|
||||
void FileMenu(Bar& bar);
|
||||
|
||||
void About();
|
||||
void HelpMenu(Bar& bar);
|
||||
public:
|
||||
typedef Jims_Medical CLASSNAME;
|
||||
Jims_Medical();
|
||||
};
|
||||
|
||||
void Jims_Medical::Save_to_Text()
|
||||
{
|
||||
PromptOK("This is an imcomplete feature. "
|
||||
"When completed, this feature will convert input data to a nicely formatted RichText file.");
|
||||
}
|
||||
|
||||
void Jims_Medical::FileMenu(Bar& bar)
|
||||
{
|
||||
bar.Add("Save to text...", THISBACK(Save_to_Text));
|
||||
bar.Separator();
|
||||
bar.Add("Exit\tAlt+F4", THISBACK(Close));
|
||||
}
|
||||
|
||||
void Jims_Medical::About()
|
||||
{
|
||||
PromptOK("When completed, this program will take sets of medical input values and "
|
||||
"convert them into a medical document which will be nicely formatted for "
|
||||
"efficiency and legibility.");
|
||||
}
|
||||
|
||||
void Jims_Medical::HelpMenu(Bar& bar)
|
||||
{
|
||||
bar.Add("About", THISBACK(About));
|
||||
}
|
||||
|
||||
Jims_Medical::Jims_Medical()
|
||||
{
|
||||
CtrlLayout(*this, "Medical Information Input");
|
||||
Sizeable().MinimizeBox().MaximizeBox();
|
||||
|
||||
AddFrame(menu);
|
||||
AddFrame(status);
|
||||
|
||||
menu.Add("File", THISBACK(FileMenu));
|
||||
menu.Add("Help", THISBACK(HelpMenu));
|
||||
status="Medical information input utility...";
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
11
uppdev/Jims/Jims_Medical.lay
Normal file
11
uppdev/Jims/Jims_Medical.lay
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
LAYOUT(Jims_MedicalLayout, 336, 184)
|
||||
ITEM(Label, lbldate, SetLabel(t_("Date:")).LeftPosZ(12, 52).TopPosZ(8, 19))
|
||||
ITEM(EditDate, txtdate, LeftPosZ(120, 72).TopPosZ(8, 19))
|
||||
ITEM(Label, lblbld_press, SetLabel(t_("Blood Pressure:")).LeftPosZ(12, 76).TopPosZ(40, 19))
|
||||
ITEM(EditInt, txtbld_press, LeftPosZ(120, 72).TopPosZ(40, 19))
|
||||
ITEM(Label, lblbld_sug, SetLabel(t_("Bloodsugar Level:")).HSizePosZ(12, 240).TopPosZ(72, 19))
|
||||
ITEM(EditInt, txtbld_sug, LeftPosZ(120, 72).TopPosZ(72, 19))
|
||||
ITEM(Button, bttncancel, SetLabel(t_("Cancel")).LeftPosZ(232, 80).VCenterPosZ(28, 22))
|
||||
ITEM(Button, bttndone, SetLabel(t_("Done")).LeftPosZ(232, 80).TopPosZ(48, 24))
|
||||
ITEM(Button, bttnnext_ent, SetLabel(t_("Next Entry >>")).LeftPosZ(232, 80).TopPosZ(12, 28))
|
||||
END_LAYOUT
|
||||
6
uppdev/Jims/main.cpp
Normal file
6
uppdev/Jims/main.cpp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include "Jims_Medical.h"
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
Jims_Medical().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue