StatusWindow.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * This file is part of Runyu.
  3. *
  4. * Runyu is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * Runyu is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with Runyu. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef _STATUSWINDOW_H
  18. #define _STATUSWINDOW_H
  19. #include <Window.h>
  20. #include <GroupLayout.h>
  21. #include <StatusBar.h>
  22. static const uint32 kMessageProgressUpdate = 'prgu';
  23. class StatusWindow : public BWindow {
  24. public:
  25. StatusWindow(BRect frame);
  26. virtual ~StatusWindow();
  27. virtual void MessageReceived(BMessage* message);
  28. virtual bool QuitRequested();
  29. void SetProgress(int progress, const char* status);
  30. private:
  31. BGroupLayout* fLayout;
  32. BStatusBar* fProgressBar;
  33. };
  34. #endif