ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/VTBFileUtil2/DiscBrowse.h
(Generate patch)

Comparing:
trunk/VTBFileUtil2/DiscBrowse.h (file contents), Revision 283 by douglas, 2003-08-28T21:16:30-07:00 vs.
VTBFileUtil2/DiscBrowse.h (file contents), Revision 368 by douglas, 2008-08-23T02:44:00-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: DiscBrowse.h,v 1.4 2003/08/29 04:16:30 douglas Exp $
5 > // $Id: DiscBrowse.h,v 1.7 2003/09/03 22:58:37 douglas Exp $
6  
7   #ifndef _DiscBrowse_h_
8   #define _DiscBrowse_h_
# Line 12 | Line 12
12   class DiscBrowse
13   {
14   private:
15 +        struct Thing
16 +        {
17 +                int index;
18 +                bool order;
19 +                HWND list;
20 +        };
21          PROPSHEETPAGE wizard[2];
16        string disc;
22          string discDir;
23 <        int numberWidth;
19 <        int nameWidth;
20 <        int fileWidth;
21 <        int sizeWidth;
23 >        bool sortFile, sortNumber, sortName, sortSize;
24          static map<HWND, DiscBrowse*> windows;
25          void loadDir(void);
26          void saveDir(void);
27          void setDiscDir(HWND parent = NULL);
28 +        void populate(HWND parent);
29          static DiscBrowse* which(HWND window);
30          static DiscBrowse* which(HWND window, LPARAM l);
31          static int CALLBACK browse(HWND dialog, UINT msg, LPARAM l, LPARAM d);
32 +        static int CALLBACK sort(LPARAM first, LPARAM second, LPARAM l);
33          static INT_PTR CALLBACK start(HWND dialog, UINT msg, WPARAM w, LPARAM l);
34          static INT_PTR CALLBACK browse(HWND dialog, UINT msg, WPARAM w, LPARAM l);
35   protected:
36          string title;
37          HMENU popup;
38          unsigned number;
39 +        string tail(const string& path) { return path + (path[path.length() - 1] !=
40 +                '\\' ? "\\" : ""); }
41          static unsigned count;
42          static map<unsigned, DiscBrowse*> browsers;
43   public:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines