00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef DIALOGTHEME_H
00029 #define DIALOGTHEME_H
00030
00031 #include ".\ComponentTheme.h"
00032 #include "..\..\util\Color.h"
00033 #include "..\..\util\GradientColor.h"
00034 #include "..\..\border\BevelBorder.h"
00035 #include "..\..\event\WindowListener.h"
00036 #include "..\..\event\WindowEvent.h"
00037 #include "..\..\event\MouseListener.h"
00038 #include "..\..\event\MouseEvent.h"
00039
00040
00041 namespace ui
00042 {
00043 namespace theme
00044 {
00045 namespace defaulttheme
00046 {
00047 class DialogTheme : public ComponentTheme, public event::WindowListener, public event::MouseAdapter
00048 {
00049 public:
00050 DialogTheme();
00051 void installTheme(Component *comp);
00052 void deinstallTheme(Component *comp);
00053
00054 private:
00055 void windowClosed(const event::WindowEvent &e);
00056 void windowOpened(const event::WindowEvent &e);
00057 void windowActivated(const event::WindowEvent &e);
00058 void windowDeactivated(const event::WindowEvent &e);
00059 border::BevelBorder border;
00060 void paint(Graphics &g, Component *comp);
00061
00062 void mouseReleased(const event::MouseEvent &e);
00063
00064 util::GradientColor activeBackground;
00065 util::GradientColor inactiveBackground;
00066 util::Color shadow;
00067 };
00068 }
00069 }
00070 }
00071
00072 #endif