a99  V32.6
allegro Windows Hauptprogramm
 Alle Klassen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
winx.h
gehe zur Dokumentation dieser Datei
1 // winx.h : Nichtmodales Indexfenster
2 // Anbindung an andere Dialoge oder Views:
3 // siehe Kommentare Winx in a99.cpp und .h
4 
5 // Copyright 2011 Universitätsbibliothek Braunschweig, more see bottom
6 
7 #if !defined(AFX_IXDIALOG_H__9310B281_2459_11D2_A2B9_0080C885B6AB__INCLUDED_)
8 #define AFX_IXDIALOG
9 
10 #if _MSC_VER >= 1000
11 #pragma once
12 #endif // _MSC_VER >= 1000
13 // Winx.h : header file
14 //
15 
16 #include "abase.hpp"
17 #include "aListBox.h"
18 #include "aCombo.h"
19 
20 // fuer Message an a99
21 #define WM_GOODBYE WM_USER + 5
22 
23 #define NULL 0
24 
25 /////////////////////////////////////////////////////////////////////////////
26 // Winx dialog
27 
28 class Winx : public CDialog
29 {
30 // Construction
31 private:
32  CView* m_iView; // parent is view
33  CWnd* m_dView; // parent is dialog
34  bool afl; // activity flag, true==accessing index, false=idle
35  int focw; // focus: 0=list, 1=input
36  int fox; // 1: rueckkehr aus Hauptprogramm
37  int wPar; // 10 for i and 11 for j
38  char xstring[260]; // auxiliary
39  char auxil[260]; // auxiliary
40  int filllist(char *); // fill list with index lines
41  void ShowReg(char *);
42  void SwitchReg(int);
43 public:
44  ABASE *Bank; // database
45  int ix; // active index
46  int trunc; // truncation point
47  char trp; // truncator character
48  int thr; // threshold
49  int tmd; // top mode
50  int onflag; // how many times hit Enter
51  char subs[32]; // substring ("Nur Zeilen mit ...")
52  char prf[32]; // prefix
53  int prl; // prefix length
54  int pri; // number of index for current prefix
55 
56  Winx(CWnd* pParent = NULL); // standard constructor
57 
58  Winx(CView* iView);
59 
60  BOOL Create(ABASE *,int);
61  void ShowWindow(int);
62 // Dialog Data
63  //{{AFX_DATA(Winx)
64  enum { IDD = IDD_WINX }; // see IDD_WINX in a99.rc
65  CEdit m_itrp;
66  CEdit m_ithr;
67  CEdit m_isub;
68  CButton m_trp;
69  CButton m_thr;
70  CButton m_sub;
71  CButton m_ilist;
72  CButton m_copy;
73  CButton m_chg;
74  CButton m_showr;
75  CButton m_retr;
76  CButton m_setr;
77  CEdit m_rset;
78  CButton m_inb;
79  CButton m_and;
80  CButton m_or;
81  CButton m_not;
82  CButton m_resdel;
83  CComboBox m_combo;
84  CEdit m_com;
85  CEdit m_headline;
89  //}}AFX_DATA
91 
92 
93 // Overrides
94  // ClassWizard generated virtual function overrides
95  //{{AFX_VIRTUAL(Winx)
96 // protected:
97  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
98  //}}AFX_VIRTUAL
99 
100 // Implementation
101  HICON m_hIcon;
102 
103  // Generated message map functions
104  //{{AFX_MSG(Winx)
105  virtual void OnCancel();
106 //protected:
107  virtual void OnOK(); // Enter was pressed
108  afx_msg void OnSetIxl();
109  afx_msg void OnSetIn();
110  afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
111  afx_msg void OnB2();
112  afx_msg void OnB1();
113  afx_msg void OnB3();
114  afx_msg void OnB4();
115  afx_msg void OnB5();
116  afx_msg void OnB6();
117  afx_msg void OnB7();
118  afx_msg void OnB8();
119  afx_msg void OnB9();
120  afx_msg void OnB10();
121  afx_msg void OnDoubIxl();
122  afx_msg void OnMinimize();
123  afx_msg void OnSelch();
124  afx_msg void OnCopyLine();
125  afx_msg void OnSelchangeCombo1();
126  afx_msg void OnEnter();
127  afx_msg void OnBChg();
128  afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
129  afx_msg void OnList();
130  afx_msg void OnAnd();
131  afx_msg void OnOr();
132  afx_msg void OnNot();
133  afx_msg void OnShowr();
134  afx_msg void OnZ();
135  afx_msg void OnBsub();
136  afx_msg void OnBthr();
137  afx_msg void OnBtrp();
138  afx_msg void OnFocTrp();
139  afx_msg void OnFocSub();
140  afx_msg void OnFocThr();
141  afx_msg void OnButret();
142  afx_msg void OnFlop();
143  afx_msg void OnResdel();
144  afx_msg void OnIUp();
145  afx_msg void OnIDwn();
146  afx_msg void OnRsave();
147  afx_msg void SpeclHelp();
148  afx_msg void OnSize(UINT nType, int cx, int cy);
149  afx_msg LRESULT OnGood(WPARAM wParam, LPARAM lParam);
150  //}}AFX_MSG
151  DECLARE_MESSAGE_MAP()
152 };
153 
154 //{{AFX_INSERT_LOCATION}}
155 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
156 
157 #endif // !defined(AFX_IXDIALOG_H__9310B281_2459_11D2_A2B9_0080C885B6AB__INCLUDED_)
158 
159 /*
160  Copyright 2011 Universitätsbibliothek Braunschweig
161 
162  Licensed under the Apache License, Version 2.0 (the "License");
163  you may not use this file except in compliance with the License.
164  You may obtain a copy of the License at
165 
166  http://www.apache.org/licenses/LICENSE-2.0
167 
168  Unless required by applicable law or agreed to in writing, software
169  distributed under the License is distributed on an "AS IS" BASIS,
170  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
171  See the License for the specific language governing permissions and
172  limitations under the License.
173 */
174 
175