1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-10-02 19:14:10 +03:00
gmenu2x/src/linkapp.h
2010-05-02 14:38:16 +02:00

110 lines
3.3 KiB
C++

/***************************************************************************
* Copyright (C) 2006 by Massimiliano Torromeo *
* massimiliano.torromeo@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef LINKAPP_H
#define LINKAPP_H
#include <string>
#include <iostream>
#include "link.h"
using std::string;
class GMenu2X;
/**
Parses links files.
@author Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
*/
class LinkApp : public Link {
private:
string sclock, svolume;
int iclock, ivolume;
//G
string sgamma;
string sbacklight;
//G
int igamma;
int ibacklight;
string exec, params, workdir, manual, selectordir, selectorfilter, selectorscreens;
bool selectorbrowser, useRamTimings;
void drawRun();
string aliasfile;
public:
LinkApp(GMenu2X *gmenu2x, const char* linkfile);
virtual const string &searchIcon();
const string &getExec();
void setExec(const string &exec);
const string &getParams();
void setParams(const string &params);
const string &getWorkdir();
void setWorkdir(const string &workdir);
const string &getManual();
void setManual(const string &manual);
const string &getSelectorDir();
void setSelectorDir(const string &selectordir);
bool getSelectorBrowser();
void setSelectorBrowser(bool value);
bool getUseRamTimings();
void setUseRamTimings(bool value);
const string &getSelectorScreens();
void setSelectorScreens(const string &selectorscreens);
const string &getSelectorFilter();
void setSelectorFilter(const string &selectorfilter);
const string &getAliasFile();
void setAliasFile(const string &aliasfile);
string file;
int clock();
const string &clockStr(int maxClock);
void setClock(int mhz);
int volume();
const string &volumeStr();
void setVolume(int vol);
//G
int gamma();
const string &gammaStr();
void setGamma(int gamma);
int backlight();
const string &backlightStr();
void setBacklight(int val);
// /G
bool wrapper;
bool dontleave;
bool save();
void run();
void showManual();
void selector(int startSelection=0, const string &selectorDir="");
void launch(const string &selectedFile="", const string &selectedDir="");
bool targetExists();
};
#endif