xref: /aoo4110/main/soldep/inc/soldep/soldlg.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _FMRWRK_SOLDLG_HXX
25 #define _FMRWRK_SOLDLG_HXX
26 
27 #include <tools/wintypes.hxx>
28 #include <vcl/button.hxx>
29 #include <vcl/dialog.hxx>
30 #include <vcl/msgbox.hxx>
31 #include <vcl/edit.hxx>
32 #include <svtools/svmedit.hxx>
33 #include <svtools/prgsbar.hxx>
34 #include <vcl/fixed.hxx>
35 #include <vcl/lstbox.hxx>
36 #include <vcl/group.hxx>
37 #include <vcl/combobox.hxx>
38 
39 // forwards
40 class GenericInformationList;
41 
42 //
43 // class SolNewProjectDlg
44 //
45 
46 class SolNewProjectDlg : public ModalDialog
47 {
48 public:
49 	OKButton			maOkButton;
50 	CancelButton		maCancelButton;
51 	FixedText			maFTName;
52 	Edit				maEName;
53 	FixedText			maFTShort;
54 	Edit				maEShort;
55 	FixedText			maFTDeps;
56 	Edit				maEDeps;
57 
58 	SolNewProjectDlg( Window* pParent, const ResId& rResId );
59 	DECL_LINK( OkHdl, Button* pOkBtn );
60 	DECL_LINK( CancelHdl, Button* pCancelBtn );
61 };
62 
63 //
64 // SolNewDirectoryDlg
65 //
66 
67 class SolNewDirectoryDlg : public ModalDialog
68 {
69 public:
70 	OKButton			maOkButton;
71 	CancelButton		maCancelButton;
72 	FixedText			maFTName;
73 	Edit				maEName;
74 	FixedText			maFTFlag;
75 	Edit				maEFlag;
76 	FixedText			maFTDeps;
77 	Edit				maEDeps;
78 	FixedText			maFTAction;
79 	Edit				maEAction;
80 	FixedText			maFTEnv;
81 	Edit				maEEnv;
82 
83 	SolNewDirectoryDlg( Window* pParent, const ResId& rResId );
84 	DECL_LINK( OkHdl, Button* pOkBtn );
85 	DECL_LINK( CancelHdl, Button* pCancelBtn );
86 };
87 
88 //
89 // SolHelpDlg
90 //
91 
92 class SolHelpDlg : public ModalDialog
93 {
94 public:
95 	OKButton			maOkButton;
96 	MultiLineEdit		maMLEHelp;
97 
98 	SolHelpDlg( Window* pParent, const ResId& rResId );
99 	DECL_LINK( OkHdl, Button* pOkBtn );
100 };
101 
102 //
103 // class SolSelectVersionDlg
104 //
105 
106 class SolSelectVersionDlg : public ModalDialog
107 {
108 private:
109 	ListBox maVersionListBox;
110 	GroupBox maVersionGroupBox;
111 	Edit	 maMinorEditBox;
112 	GroupBox maMinorGroupBox;
113 	OKButton maOKButton;
114 	CancelButton maCancelButton;
115 	ByteString msVersionMajor;
116     ByteString msVersionMinor;
117 
118 public:
119 	SolSelectVersionDlg( Window *pParent, GenericInformationList *pStandLst );
120 	ByteString GetVersionMajor();
121     ByteString GetVersionMinor();
122 	DECL_LINK( DoubleClickHdl, ListBox * );
123 };
124 
125 class SolAutoarrangeDlg : public ModelessDialog
126 {
127 private:
128 	GroupBox maGroupBox;
129 	FixedText maModuleText;
130 	FixedText maOverallText;
131 	ProgressBar maModuleBar;
132 	ProgressBar maOverallBar;
133 
134 public:
135 	SolAutoarrangeDlg( Window *pParent );
136 
GetSubBar()137 	ProgressBar *GetSubBar() { return &maModuleBar; }
GetMainBar()138 	ProgressBar *GetMainBar() { return &maOverallBar; }
139 
GetSubText()140 	FixedText *GetSubText() { return &maModuleText; }
GetMainText()141 	FixedText *GetMainText() { return &maOverallText; }
142 };
143 
144 class SolFindProjectDlg : public ModalDialog
145 {
146 private:
147     ComboBox maCombobox;
148     OKButton maOKButton;
149     CancelButton maCancelButton;
150 
151 public:
152     SolFindProjectDlg( Window *pParent, ObjWinList* pObjList );
153     ByteString GetProject();
154 };
155 
156 #endif	// _FMRWRK_SOLDLG_HXX
157