git-svn-id: https://xournal.svn.sourceforge.net/svnroot/xournal/trunk/xournalpp@185 9fe2bcd3-a095-4d8b-a836-9b85dc8d7627
parent
19bb6a08dd
commit
dbbbfa2163
3 changed files with 81 additions and 1 deletions
@ -0,0 +1,43 @@ |
||||
#include "ToolbarColorNames.h" |
||||
|
||||
ToolbarColorNames::ToolbarColorNames() { |
||||
XOJ_INIT_TYPE(ToolbarColorNames) ; |
||||
initPredefinedColors(); |
||||
} |
||||
|
||||
ToolbarColorNames::~ToolbarColorNames() { |
||||
XOJ_CHECK_TYPE(ToolbarColorNames); |
||||
// TODO !!!!!!!!!!! implement
|
||||
|
||||
XOJ_RELEASE_TYPE(ToolbarColorNames); |
||||
} |
||||
|
||||
void ToolbarColorNames::loadFile(const char * file) { |
||||
XOJ_CHECK_TYPE(ToolbarColorNames); |
||||
|
||||
// TODO !!!!!!!!!!! implement
|
||||
} |
||||
|
||||
void ToolbarColorNames::saveFile(const char * file) { |
||||
XOJ_CHECK_TYPE(ToolbarColorNames); |
||||
|
||||
// TODO !!!!!!!!!!! implement
|
||||
} |
||||
|
||||
void ToolbarColorNames::adddColor(int color, String name, bool predefined) { |
||||
XOJ_CHECK_TYPE(ToolbarColorNames); |
||||
|
||||
// TODO !!!!!!!!!!! implement
|
||||
} |
||||
|
||||
String ToolbarColorNames::getColorName(int color) { |
||||
XOJ_CHECK_TYPE(ToolbarColorNames); |
||||
|
||||
// TODO !!!!!!!!!!! implement
|
||||
} |
||||
|
||||
void ToolbarColorNames::initPredefinedColors() { |
||||
XOJ_CHECK_TYPE(ToolbarColorNames); |
||||
|
||||
// TODO !!!!!!!!!!! implement
|
||||
} |
||||
@ -0,0 +1,37 @@ |
||||
/*
|
||||
* Xournal++ |
||||
* |
||||
* Names for the toolbar color items (e.g. 0xff000 is called red) |
||||
* |
||||
* @author Xournal Team |
||||
* http://xournal.sf.net
|
||||
* |
||||
* @license GPL |
||||
*/ |
||||
|
||||
#ifndef __TOOLBARCOLORNAMES_H__ |
||||
#define __TOOLBARCOLORNAMES_H__ |
||||
|
||||
#include <XournalType.h> |
||||
|
||||
class ToolbarColorNames { |
||||
public: |
||||
ToolbarColorNames(); |
||||
virtual ~ToolbarColorNames(); |
||||
|
||||
public: |
||||
void loadFile(const char * file); |
||||
void saveFile(const char * file); |
||||
|
||||
void adddColor(int color, String name, bool predefined); |
||||
|
||||
String getColorName(int color); |
||||
|
||||
private: |
||||
void initPredefinedColors(); |
||||
|
||||
private: |
||||
XOJ_TYPE_ATTRIB; |
||||
}; |
||||
|
||||
#endif /* __TOOLBARCOLORNAMES_H__ */ |
||||
Loading…
Reference in new issue