Fixed build under Dano.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16969 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,33 +1,13 @@
|
|||||||
/*****************************************************************************/
|
/*
|
||||||
// Expander
|
* Copyright 2004-2006, Haiku, Inc. All Rights Reserved.
|
||||||
// Written by Jérôme Duval
|
* Distributed under the terms of the MIT License.
|
||||||
//
|
*
|
||||||
// ExpanderWindow.h
|
* Authors:
|
||||||
//
|
* Jérôme Duval
|
||||||
//
|
*/
|
||||||
// Copyright (c) 2004 OpenBeOS Project
|
#ifndef EXPANDER_WINDOW_H
|
||||||
//
|
#define EXPANDER_WINDOW_H
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
// copy of this software and associated documentation files (the "Software"),
|
|
||||||
// to deal in the Software without restriction, including without limitation
|
|
||||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
// and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
// Software is furnished to do so, subject to the following conditions:
|
|
||||||
//
|
|
||||||
// The above copyright notice and this permission notice shall be included
|
|
||||||
// in all copies or substantial portions of the Software.
|
|
||||||
//
|
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
// DEALINGS IN THE SOFTWARE.
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef _ExpanderWindow_h
|
|
||||||
#define _ExpanderWindow_h
|
|
||||||
|
|
||||||
#include <CheckBox.h>
|
#include <CheckBox.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
@@ -37,58 +17,61 @@
|
|||||||
#include "DirectoryFilePanel.h"
|
#include "DirectoryFilePanel.h"
|
||||||
#include "ExpanderRules.h"
|
#include "ExpanderRules.h"
|
||||||
|
|
||||||
|
class BMenu;
|
||||||
|
|
||||||
class ExpanderThread;
|
class ExpanderThread;
|
||||||
class ExpanderPreferences;
|
class ExpanderPreferences;
|
||||||
|
|
||||||
|
|
||||||
class ExpanderWindow : public BWindow {
|
class ExpanderWindow : public BWindow {
|
||||||
public:
|
public:
|
||||||
ExpanderWindow(BRect frameRect, const entry_ref *ref, BMessage *settings);
|
ExpanderWindow(BRect frameRect, const entry_ref *ref, BMessage *settings);
|
||||||
virtual ~ExpanderWindow();
|
virtual ~ExpanderWindow();
|
||||||
|
|
||||||
virtual void FrameResized(float width, float height);
|
virtual void FrameResized(float width, float height);
|
||||||
virtual void MessageReceived(BMessage *msg);
|
virtual void MessageReceived(BMessage *msg);
|
||||||
virtual bool QuitRequested();
|
virtual bool QuitRequested();
|
||||||
|
|
||||||
void SetRef(const entry_ref *ref);
|
|
||||||
void RefsReceived(BMessage *msg);
|
|
||||||
|
|
||||||
private:
|
void SetRef(const entry_ref *ref);
|
||||||
bool CanQuit();
|
void RefsReceived(BMessage *msg);
|
||||||
// returns true if the window can be closed safely, false if not
|
|
||||||
void CloseWindowOrKeepOpen();
|
|
||||||
void OpenDestFolder();
|
|
||||||
void AutoListing();
|
|
||||||
void AutoExpand();
|
|
||||||
void StartExpanding();
|
|
||||||
void StopExpanding();
|
|
||||||
void StartListing();
|
|
||||||
void StopListing();
|
|
||||||
|
|
||||||
BFilePanel *fSourcePanel;
|
private:
|
||||||
DirectoryFilePanel *fDestPanel;
|
bool CanQuit();
|
||||||
BMenuBar *fBar;
|
// returns true if the window can be closed safely, false if not
|
||||||
BMenu *fMenu;
|
void CloseWindowOrKeepOpen();
|
||||||
entry_ref fSourceRef;
|
void OpenDestFolder();
|
||||||
entry_ref fDestRef;
|
void AutoListing();
|
||||||
bool fSourceChanged;
|
void AutoExpand();
|
||||||
|
void StartExpanding();
|
||||||
|
void StopExpanding();
|
||||||
|
void StartListing();
|
||||||
|
void StopListing();
|
||||||
|
|
||||||
|
BFilePanel *fSourcePanel;
|
||||||
|
DirectoryFilePanel *fDestPanel;
|
||||||
|
BMenuBar *fBar;
|
||||||
|
BMenu *fMenu;
|
||||||
|
entry_ref fSourceRef;
|
||||||
|
entry_ref fDestRef;
|
||||||
|
bool fSourceChanged;
|
||||||
|
|
||||||
BButton *fSourceButton, *fDestButton, *fExpandButton;
|
BButton *fSourceButton, *fDestButton, *fExpandButton;
|
||||||
BMenuItem *fExpandItem, *fShowItem, *fStopItem,
|
BMenuItem *fExpandItem, *fShowItem, *fStopItem,
|
||||||
*fSourceItem, *fDestItem, *fPreferencesItem;
|
*fSourceItem, *fDestItem, *fPreferencesItem;
|
||||||
BCheckBox *fShowContents;
|
BCheckBox *fShowContents;
|
||||||
BTextControl *fSourceText, *fDestText;
|
BTextControl *fSourceText, *fDestText;
|
||||||
BTextView *fExpandedText, *fListingText;
|
BTextView *fExpandedText, *fListingText;
|
||||||
BScrollView *fListingScroll;
|
BScrollView *fListingScroll;
|
||||||
|
|
||||||
ExpanderThread *fListingThread;
|
ExpanderThread *fListingThread;
|
||||||
bool fListingStarted;
|
bool fListingStarted;
|
||||||
|
|
||||||
ExpanderThread *fExpandingThread;
|
ExpanderThread *fExpandingThread;
|
||||||
bool fExpandingStarted;
|
bool fExpandingStarted;
|
||||||
|
|
||||||
BMessage fSettings;
|
BMessage fSettings;
|
||||||
ExpanderPreferences *fPreferences;
|
ExpanderPreferences *fPreferences;
|
||||||
ExpanderRules fRules;
|
ExpanderRules fRules;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _ExpanderWindow_h */
|
#endif /* EXPANDER_WINDOW_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user