1 | /*
|
---|
2 | * This file is (C) Chris Wohlgemuth 2001
|
---|
3 | */
|
---|
4 | /*
|
---|
5 | * This program is free software; you can redistribute it and/or modify
|
---|
6 | * it under the terms of the GNU General Public License as published by
|
---|
7 | * the Free Software Foundation; either version 2, or (at your option)
|
---|
8 | * any later version.
|
---|
9 | *
|
---|
10 | * This program is distributed in the hope that it will be useful,
|
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | * GNU General Public License for more details.
|
---|
14 | *
|
---|
15 | * You should have received a copy of the GNU General Public License
|
---|
16 | * along with this program; see the file COPYING. If not, write to
|
---|
17 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
18 | */
|
---|
19 |
|
---|
20 | #ifndef LAUNCHPAD_H_INCLUDED
|
---|
21 | #define LAUNCHPAD_H_INCLUDED
|
---|
22 |
|
---|
23 | #pragma SOMAsDefault(on)
|
---|
24 | #include <som.hh>
|
---|
25 | #include <somcls.hh>
|
---|
26 | #pragma SOMNoMangling(on)
|
---|
27 |
|
---|
28 | #include "wpfolder.hh"
|
---|
29 |
|
---|
30 | #pragma SOMAsDefault(off)
|
---|
31 |
|
---|
32 | class LPObject;
|
---|
33 | class launchPad;
|
---|
34 | class LPList;
|
---|
35 |
|
---|
36 | class LPList
|
---|
37 | {
|
---|
38 | public:
|
---|
39 | LPList *lplNext;
|
---|
40 | launchPad * lpPad;
|
---|
41 | void lplRefreshAllPads();
|
---|
42 | };
|
---|
43 |
|
---|
44 | class LPObject
|
---|
45 | {
|
---|
46 | public:
|
---|
47 | LPObject(HPOINTER hptr);
|
---|
48 | ~LPObject(void);
|
---|
49 | LPObject* lpoNext;
|
---|
50 | WPObject *wpObject;
|
---|
51 | HOBJECT hObject;
|
---|
52 | HPOINTER hPtr;
|
---|
53 | char chrName[CCHMAXPATH];
|
---|
54 | launchPad* lpParent;
|
---|
55 | };
|
---|
56 |
|
---|
57 | class launchPad
|
---|
58 | {
|
---|
59 | public:
|
---|
60 | launchPad(HWND hwndParent,HWND hwndOwner, BOOL bVisible, WPFolder *wpParent, LPList** lpList, HWND hwndPrev, ULONG ulFl);
|
---|
61 | ~launchPad();
|
---|
62 | BOOL lpFillPad();
|
---|
63 | BOOL lpClearPad();
|
---|
64 | BOOL lpAddButton(WPObject* wpObject, int iAfter);
|
---|
65 | BOOL lpRemoveButton(LPObject *lpObject);
|
---|
66 | void lpRefreshLaunchPad();
|
---|
67 | // WPObject* lpQueryButtonObject(USHORT usButtonID);
|
---|
68 | WPFolder* lpQueryParentFolder();
|
---|
69 | //BOOL lpShowLaunchPad(BOOL bShow);
|
---|
70 | BOOL lpSetLaunchPadPos(HWND hwndInsertBehind, LONG x, LONG y, LONG cx, LONG cy, ULONG fl);
|
---|
71 | BOOL lpSetConfiguration(char * chrTarget, char * chrConfigID_);
|
---|
72 | void lpFreeObjectList();
|
---|
73 | virtual BOOL lpReBuildObjectList();
|
---|
74 | ULONG lpQueryNumObjects(void) {return ulNumObjects;};
|
---|
75 | BOOL lpSetFlyOverText(char* chrText);
|
---|
76 | PSZ lpQueryFlyOverText(void);
|
---|
77 | private:
|
---|
78 | HWND hwndLaunchPad; /* This is the frame window handle of the launchpad */
|
---|
79 | WPFolder *wpParentFolder;
|
---|
80 | LPObject* lpoObjectList;
|
---|
81 | ULONG ulNumObjects;
|
---|
82 | HWND hwndPrevious;
|
---|
83 | LPList** lpList;
|
---|
84 | ULONG fl;
|
---|
85 | char chrConfigTarget[CCHMAXPATH];
|
---|
86 | char chrConfigID[CCHMAXPATH];
|
---|
87 | char chrFlyOverText[250];/* Text for fly over help */
|
---|
88 | virtual BOOL lpBuildObjectList(char * chrFolderID);
|
---|
89 | virtual BOOL lpSaveObjectList();
|
---|
90 | };
|
---|
91 |
|
---|
92 | #pragma SOMAsDefault(pop)
|
---|
93 |
|
---|
94 | #define LP_USEOBJECTASPARAM 0x00000001
|
---|
95 | #define LP_NODROPONPAD 0x00000002
|
---|
96 |
|
---|
97 | #endif
|
---|