OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / build / ja-jp / formdesigner / mainwindow / formdesignergeneral.ring
1 /*
2 **      Project : Form Designer 
3 **      File Purpose :  Form Designer General
4 **      Date : 2017.04.29
5 **      Author :  Mahmoud Fayed <msfclipper@yahoo.com>
6 */
7
8 package formdesigner
9
10 Class FormDesignerGeneral
11
12         oCursor =  new qCursor()
13
14         func oCursorA
15                 oCursor.setShape(Qt_ArrowCursor)
16                 return oCursor
17
18         func oCursorF
19                 oCursor.setShape(Qt_SizeFDiagCursor)
20                 return oCursor
21
22         func oCursorB
23                 oCursor.setShape(Qt_SizeBDiagCursor)
24                 return oCursor
25
26         func oCursorH
27                 oCursor.setShape(Qt_SizeHorCursor)
28                 return oCursor
29
30         func oCursorV
31                 oCursor.setShape(Qt_SizeVerCursor)
32                 return oCursor
33
34         func SelectColor
35                 oColor = new qColorDialog()
36                 aColor = oColor.GetColor()
37                 oColor.delete()
38                 r=hex(acolor[1]) g=hex(acolor[2]) b=hex(acolor[3])
39                 if len(r) < 2 { r = "0" + r }
40                 if len(g) < 2 { g = "0" + g }
41                 if len(b) < 2 { b = "0" + b }
42                 cColor = "#" + r + g + b
43                 return cColor
44
45         func SelectFont
46                 cFont = ""
47                 oFontDialog = new qfontdialog() {
48                         aFont = getfont()
49                 }
50                 oFontDialog.delete()
51                 if aFont[1] != NULL {
52                         cFont = aFont[1]
53                 }
54                 return cFont
55
56         func SelectFile oDesigner
57                 oFileDialog = new qfiledialog(oDesigner.oView.win) {
58                         cInputFileName = getopenfilename(oDesigner.oView.win,"Open File",currentdir(),"*.*")
59                 }
60                 oFileDialog.delete()
61                 return cInputFileName
62